From nobody Tue Nov 12 20:09:07 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 4XnyDM3wJtz5cWx9 for ; Tue, 12 Nov 2024 20:09:07 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XnyDM2VLsz45qD for ; Tue, 12 Nov 2024 20:09:07 +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=1731442147; 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=oLx9NFNjkbjpOdZ39ICzL5rIdM5YTKYC6fuDqF/Mh+c=; b=E2wopoI3ZRIpK56dw9aOfg9e058Rgc8rKvJNqO+TaiMILjlghbjkgIiBImhlUBtaBBeN/8 z0+x1zWDCbiAlU9L3m3QxVPK7piDv/IJlAL7JwwnIUeTYI0uaPKy7v5gDucwcOoc0llxKz +KSogznYgfeArcvDKmwOdz5Ed+XfqD6rZHxsiAwN5Qcj0qtLEn12VL9XT2+vob0pdFNQDy foMdzSv0O6qMckAMMwR/2PhEOQ4GJ2prG4Q1+Z0ne3O2zsxsZIwYL7eR436/kHukfV/986 0gycPLi67c8B3Y73AD9c15hsGM46ZMIE1xGaud1vOJk0g2IDp5PqA4UN/EC33A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731442147; a=rsa-sha256; cv=none; b=F1O35HE1PD2g5jGTkfh077U8mVDZD8Ii82/bGM/OZhqcpuFJekakFKBZLi0zoay8N4b54l Y1NRQGOmxQgZwbyGhagB/FWzQFf/q06zKdsPYIS8LiaR/hhpUq61fmrBbZoWcZFcuOoOqV tuz+srcRZlWu1Bwdr4GCJhpnRrj1QGnyYViaBPhKLAyz7+Q1gLVjcgNz4Y4HA4RqoT5wa4 7JLuE7jRw0Dz0lQQ89mTwRDe163zUZR4DjnlgteMQyFkaSdHB4VZ0lay0tLyQId7mso1xP xVIBCJn4nCJNI4iF1mz1ZldGYyyMzEODy3dkxDrtBV+yv211o8kX08cHJXC94g== 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 4XnyDM23k3zPdB for ; Tue, 12 Nov 2024 20:09:07 +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 4ACK97Nq024630 for ; Tue, 12 Nov 2024 20:09:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ACK973s024629 for bugs@FreeBSD.org; Tue, 12 Nov 2024 20:09:07 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 269884] [nanoBSD] cust_pkgng() fetches ports-mgmt/pkg from remote regardless of required package Date: Tue, 12 Nov 2024 20:09:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlduran@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D269884 --- Comment #4 from Jose Luis Duran --- Thank you for the bug reports! Please, keep them coming. If I understand correctly, this can be divided in three issues: 1. cust_pkgng() always fetches ports-mgmt/pkg. 2. NANO_PACKAGEDIR cannot be a symbolic link. 3. If TARGET is not the same machine/architecture as the host, because of i= tem (1), it will fail. Let's start with the easy one, number (2): The way I see it, after 9af130ae8c03, cust_pkgng() uses a nullfs mount to s= hare the contents of NANO_PACKAGEDIR inside the chroot (NANO_WORLDDIR). It is mo= re robust, indeed, but it has the drawback that if NANO_PACKAGEDIR is a symlin= k, it will fail. My proposed fix is simply to use the realpath of NANO_PACKAGEDIR. I will also update fill_pkg.sh accordingly. Number (1) and (3) are closely related. From what I can read in the guide "Introduction to NanoBSD", you are supposed to already take care of the differences in architectures, etc. by providing a suitable Pkg directory, b= ut maybe it is not explicit. I do have however experimenting cross-building, and may have a small additi= on to the scripts, but this is outside the scope of this PR. The code reviews take place on GitHub or Phabricator, so I will post my proposed fixes there. If you do not have a Phabricator account, please post your suggestions here, and I will forward them accordingly. The project is aware of this annoyance, and I apologize for the inconvenience. --=20 You are receiving this mail because: You are the assignee for the bug.=