From owner-freebsd-pkg@freebsd.org Sun Jun 21 08:24:54 2020 Return-Path: Delivered-To: freebsd-pkg@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EDD90346A2E for ; Sun, 21 Jun 2020 08:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49qQZZ65rMz4YLl for ; Sun, 21 Jun 2020 08:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id CFBC2346A2D; Sun, 21 Jun 2020 08:24:54 +0000 (UTC) Delivered-To: pkg@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CF8D3346A2C for ; Sun, 21 Jun 2020 08:24:54 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qQZZ59swz4YJh for ; Sun, 21 Jun 2020 08:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 A89FB1A62B for ; Sun, 21 Jun 2020 08:24:54 +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 05L8OsJG098120 for ; Sun, 21 Jun 2020 08:24:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05L8OsU6098117 for pkg@FreeBSD.org; Sun, 21 Jun 2020 08:24:54 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 247456] ports-mgmt/pkg use of .note.tag to determine osname Date: Sun, 21 Jun 2020 08:24:54 +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 Some People X-Bugzilla-Who: dewayne@heuristicsystems.com.au 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 MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2020 08:24:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247456 Bug ID: 247456 Summary: ports-mgmt/pkg use of .note.tag to determine osname Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au Assignee: pkg@FreeBSD.org Flags: maintainer-feedback?(pkg@FreeBSD.org) When the innocuous define of NOTE_FREEBSD_VENDOR is changed from #define NOTE_FREEBSD_VENDOR "FreeBSD" in=20 /usr/src/lib/csu/common/notes.h to contain something other than FreeBSD (I'm storing build/date details) AND=20 there is no ABI statement explicit in /usr/local/etc/pkg.conf these messages are emitted from a 'pkg info -oa' pkg: failed to get the note section pkg: failed to get the note section pkg: Unable to determine ABI pkg: Cannot parse configuration file! This was a major surprise when I upgraded the OS. What broke the pkg syste= m as a result of upgrading stable 12.1 to a later revision?? Explicitly stating the ABI in /usr/local/etc/pkg.conf as=20 ABI =3D "freebsd:12:x86:64"; enabled pkg to function. However every invocation of pkg now results in=20 pkg: failed to get the note section pkg: failed to get the note section Suggestions 1) that a dependency notice appear in /usr/src/lib/csu/common/notes.h to ad= vise that changing NOTE_FREEBSD_VENDOR will impact the pkg's OS detection mechan= ism which will require maintenance of the ABI in /usr/local/etc/pkg.conf. 2) pkg suppresses the failure notice as the explicit use of the ABI is sufficient. 3) I would think that a variable named NOTE_FREEBSD_VENDOR could be used by vendors in a manner of their choosing. Though perhaps a better approach wou= ld be to add an ELF section explicit for pkg to utilize (something like) #define PKG_OS FreeBSD=20 in /usr/src/lib/csu/common/notes.h if elf section checking is the best route (?) (And yes, I know that the latter (3) is no small task) :-( --=20 You are receiving this mail because: You are the assignee for the bug.=