From nobody Tue Mar 28 14:44:38 2023 X-Original-To: pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PmCBZ3NZhz421hB for ; Tue, 28 Mar 2023 14:44:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PmCBZ290Xz3H5r for ; Tue, 28 Mar 2023 14:44:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680014678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Cpqq48Na4kMPk/Xci+CAG5APWMyU6t5KzZC0gFcsesE=; b=OdlPRK/ilrIsJK0RbMbMC2PKjgiuh18SVZvPYD3yPfEtPI78KE6HB+4QeO2Q3r30zhvU48 FL7ijUNrsQ7lIDEqzrCD2TaiQy6XrRxTWFMgxmgIG1PndyqSyhoBcZ2TnWHARJ4Y3N0sm2 sF2xFOlOTA16GpTyFeqenLcNN46pchmigXL5G9UL+fO5jPPCs+74E36suZ9xungUkCVqZI 3mi7PPSyQP9IE/iLvyjNK9iBSNB7QrMSAe18qvtf8pnzd5rrV8Zr2LTfeS8IiaL1HGoFGO NaPGITnYxS+2gQqV6K4wjauI+V/z2sqrbSNJ7YbAO2yRBUYYAXcPdWphdT/NIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680014678; a=rsa-sha256; cv=none; b=JAoWdNZ210fberN2yYtVhM0EeIXbzZobsG+wSM/P1lXydJYJZUqpcAqLk98Rol5zNlghmM 2NkbCUp3oUCnW09IEc4IboXcotbIiAQcryq5OIAQwxV8aG3nazYq944OHZE2fgekYgtWi0 uhbG/qtfU7ndemj0SqkZCbCtmErv8Twl3kM3eJxSbIoVjLP4jg7+9CJFAf34G/IgJDIZjP e06AQrqXAqRSkydQQL0tKjcKrVivXompCWq+63qkKdhHNoJJkYUPj5MxMj3ZBui8lFgbqP cLWmGIi0A1gCuTkrOaOFtXOSSODqdUhokwRVzVfoBwhs/Ba3yZfA/AqubHKYLA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PmCBZ1D8gz17Xx for ; Tue, 28 Mar 2023 14:44:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 32SEicxJ083155 for ; Tue, 28 Mar 2023 14:44:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32SEickw083154 for pkg@FreeBSD.org; Tue, 28 Mar 2023 14:44:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 270496] ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE Date: Tue, 28 Mar 2023 14:44:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: einar@isnic.is X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270496 Bug ID: 270496 Summary: ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: einar@isnic.is Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org We're using a fork of the pkgng module in ansible. Our fork uses '-o EVENT_PIPE' to parse the output from pkg. Our module sometimes fails with a JSONDecodeError and I've tracked it down = to this output from pkg: '{ "type": "INFO_INSTALL_FINISHED", "data": { "pkgname": "php81-sysvsem", "pkgversion": "8.1.17", "message": "[{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-sysvsem.ini","type":"install"}]"}}' I assume the problem is the quotes around the array in data.message --=20 You are receiving this mail because: You are the assignee for the bug.=