From nobody Thu Aug 29 02:39:58 2024 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 4WvQVQ3z0lz5Svhw for ; Thu, 29 Aug 2024 02:39:58 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WvQVQ1kzQz4YLN for ; Thu, 29 Aug 2024 02:39:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724899198; a=rsa-sha256; cv=none; b=ui5KDV/nfwU8QullAFYFEdF11hvTo1VcapkoR2sXB20pS2wf3B2Asy7q1yqdw5iJmmfQuc 1A92AprtnotpqyBruWR4wC6G6PfFnzVt/i/s9jN8xRimyl29kjUPX72QdoLUVYBke0cRbT 5MtmeFirNqyv9RsBXuwgMF5nPlAbybUC23AE5tf7aMMx6KRcD23bUnZ72hcKdteitzdB4V nHdpb5LQsZQT5xJdYDx0STRHHWerz3DlbMwJbY/j4boBHDVQcGm+mpi93WLxv3a07SPj1v TQ87GAe7bqDchveuslYYIxCosUyWdT0sWXFBYBdlr5iwsGqEx5YuF8divpFxDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724899198; 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=3XzQ3NV2/2pq8disbC3ihfRMtxdW/xA+GsA90sRafag=; b=OTHXZeVahyZZHojbhxk1tXfSBTMMzpxaULTA1AFZxmLpzC9+vjJNHKFjyYZw0Mnok5gam0 4WPkF+eyUaJ4SPzf1YEWyUCpFDh18uC2rT/3EZzfQlZCDPAyFmn3Zge3bM05B4d1K5TMbX TAwgjaOQirKgLFwZQrvUf0hd/yy/WtcpswlISWKJBi7CEJwT2aX6Y43umS13DPAouSiBo2 alRBBD2u1S4m+q9pJBkzy5urHGshitzbAH3Gt3vHW2H9/cNwD1BKNQSM3Uphy2cqEK+IOk g+lf5IzYUbghwWyL6R0TpOE6yZJ0TKB070lM19/KUQtamgNerAhqn4YbnKD+Nw== 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 4WvQVQ1LbQz10KY for ; Thu, 29 Aug 2024 02:39:58 +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 47T2dwdt073131 for ; Thu, 29 Aug 2024 02:39:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47T2dwXF073126 for bugs@FreeBSD.org; Thu, 29 Aug 2024 02:39:58 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 281119] pkg(7) bootstrap treats file URLs differently than pkg(8) Date: Thu, 29 Aug 2024 02:39:58 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: darius@dons.net.au 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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281119 Bug ID: 281119 Summary: pkg(7) bootstrap treats file URLs differently than pkg(8) Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: darius@dons.net.au A user on Discord reported (https://discord.com/channels/727023752348434432/756248834635464935/1278354= 826908139584) they had trouble with pkg bootstrap and the issue ended up that they had a = URL like "file://my/pkg/repo" rather than "file:///my/pkg/repo" (ie only 2 /s a= fter file:) pkg(7) uses libfetch which I think must treat this as a relative URL, where= as pkg(8) just strips off "file:" from the URL and uses the rest as a path. I am not sure if the solution is to change libfetch to always treat file UR= Ls as absolute (ie add an implicit / at the start), or change pkg(7) to treat = file URLs the same as pkg(8), or have pkg(7) reject non-absolute file URLs. In any case they should behave the same or give an error message to make it easier to debug. --=20 You are receiving this mail because: You are the assignee for the bug.=