From nobody Thu Dec 16 08:20:38 2021 X-Original-To: bugs@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 401B418FA7C6 for ; Thu, 16 Dec 2021 08:20: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 4JF4n16n17z3npv for ; Thu, 16 Dec 2021 08:20:37 +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 CA0C12C81E for ; Thu, 16 Dec 2021 08:20: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 1BG8Kb7a030387 for ; Thu, 16 Dec 2021 08:20:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BG8KbVB030386 for bugs@FreeBSD.org; Thu, 16 Dec 2021 08:20:37 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: bugs@FreeBSD.org Subject: [Bug 260467] /usr/sbin/pkg cannot add ports-mgmt/pkg via directory path (breaks nanobsd) Date: Thu, 16 Dec 2021 08:20:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: 606u@dir.bg X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639642838; 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=uaW0t93e4hPjkafsgbOqT8L/srenypbD86QJh5SUeYM=; b=b/Kw7Is+Jc93FIx5QcPWrbYMY/Cgc6SqZLDL5Dy30kxovhMLA2vw1PVMD9fXT6j2jDInpU jXZmUzLI7zPUeLSRbr9Zr0+/+AeJgct+sVgfWt4m7UARAvxPxEwwJhzpRTVb6ISTIJdNQ6 e1kFL/IJXZpqCDHmsWmWAYTDZJHQ/CzghqsruMMdOUI7ZilS3Z8qx/dXWbj2bBo45Zysoj u3POcy1VmaHboTEOrlkUq57tkVckKxHxcK01Lr/xspGBIyAKW2+piNNO+obLu0Jinpj2RR YDb0geitblMqNrHeA5xjKFUUJ+ijFfb3UHKcLSNzOuYIMcxJ4S1uZKdVk2W0hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639642838; a=rsa-sha256; cv=none; b=SeATn/GaQeqL/mKQg/2+dQniWRBFjKOJyoEAMLIYr6CsrwxLqm40S1kcuZwxRgEnQea7Be LJXYjeqGkl8YU8BrBPGqwt6ZOXfiX8mq7WLCC/mt1kihAzVx9wFk9a/J5uCEd1XOl2uYng OZa0ca4cDjgd+m4PO3FN2r8q5fijueA5cIJWVvuQOR3ErugoCZE5bhBy6lPrhqB4Xqlzov goef0F2CPB5Rf/h24v71c2uZAx7Altg/kXurhAfK8wDrNuQd1Ytv25F08Fx24GJAzoHPUl uAfTlr0WuMjWPwtrr735hWK/twUf9VndaTIuDhbOY40c8qjQ14+rYFf7r/hpsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260467 Bug ID: 260467 Summary: /usr/sbin/pkg cannot add ports-mgmt/pkg via directory path (breaks nanobsd) Product: Base System Version: 12.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: 606u@dir.bg Created attachment 230168 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230168&action= =3Dedit Fix Basically /usr/sbin/pkg add -f -y pkg-1.2.3.pkg works correctly, whereas /usr/sbin/pkg add -f -y /path/to/pkg-1.2.3.pkg does not, due to the way `pkg_is_pkg_pkg()` tests if package is ports-mgmt/= pkg. This behaviour breaks nanobsd scripts, as well. --=20 You are receiving this mail because: You are the assignee for the bug.=