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 4PmCBZ3H3Rz4221c 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 4PmCBZ0vslz3GwF 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: in-reply-to:in-reply-to:references:references; bh=YO0Hsjddqr+VCiIHeLJ1zNHq9AXjLi+7elPkdp4vEPs=; b=IaVYckKGrXAgvh1qvVFEZLn6Muuuf97VTBFhfSE5cqXr5yYmr7Ub24h7/4KgfHvsAlcrIg EQA4TxX8Dispw3E66mpmYvcljrt4HQGJyhEyr+RRyXs+x/xpN1RDV0ROdM5DV2Fukq5yRk 2b5VwIaR6V4rfHVnlYZghiw1kt1lIO9r0DFv1ZItiDtzSxGEAy2wcJGEzmxe0QGdjlUj2c 8hd3B8esnouHxXNexSAnX5TH6H3ZNYH0mr+V4v7sy5TaqkklNA35e/gMC5mhPgWUmv2k3B tGWYaHY6/LtQbnmrwzJbLPJt35dyTCb8DVNdzDxFMO0e736i/qmJPU1DiXHBIg== 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=G7x2tIBizz1HOF58hm/TZT6H3NikQeOzFWujaFrmIZBQc23gpnbak7EeaRCxrwKjHlUbwj zjPhR2wNrFVeesUcGWAwJwgElF0HMMYyovQjUePUWzKKh+sDreoFZ6neGnu2W2KhB0if/f XgMpnG0rzo2K9hYJSjeAApa932/BjxF/wYjm47LvQ9t2+IP+FauTHuK+1Ov75NAWruaC5n 5Ka0LYvv8J0LwUEjcG9F2qQBHrLLM4lfhM94QUXlYeWBSWCN1qMz83o6iM+qtVYeHkjLzs JbOeAxMRM32pnV0hYIWs5y23ZRdhvDxMd9TfS8FOxd8px6yBRxIYBwypLJpJ4g== 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 4PmCBY758Nz17KC for ; Tue, 28 Mar 2023 14:44:37 +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 32SEibAG083151 for ; Tue, 28 Mar 2023 14:44:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32SEibJ0083150 for pkg@FreeBSD.org; Tue, 28 Mar 2023 14:44:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 270496] ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE Date: Tue, 28 Mar 2023 14:44:38 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked freebsd-pkg (Nobody) for maintainer-feedback: Bug 270496: ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270496 --- Description --- 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