From nobody Mon Sep 8 13:04:22 2025 X-Original-To: pkgbase@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 4cL6bp6HkYz66ZhV for ; Mon, 08 Sep 2025 13:04:22 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cL6bp5Qggz42jW for ; Mon, 08 Sep 2025 13:04:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757336662; 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=UnxyWKBbPiFVZGc6QU85CNn8AOuI+WQ7hrUmhFxBY5s=; b=ZoAt0ZIkoaletFXhJKrW/JXI4LdpAQugnLQNbvx32BBJACdm9LXFeHOiWq+wx6CiAZp7R7 ntlF4kyVEC5cLoggjZsuU9OWo6RjnSp5RXbG0mWVQj1yU1CV7DD47Z1sGiubCh9HuuA3Ll KuP1NrGnY5eb1x+hZmUjOfYdT/hdncFmfflLjpEPIZAa9PzlPQMYTylir3IL/06Mke9pP3 McogltuvD8RyNnqggM90QpNI8bDU7b9v/zzct927xGU/LrfkComa+2WlNoemcRD477YgTz KAblsA5H6FpIJjftsD+zwn1VpKVI8tCym/nZGWNVtvvtLpglqowR+lim5U+lLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757336662; 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=UnxyWKBbPiFVZGc6QU85CNn8AOuI+WQ7hrUmhFxBY5s=; b=KUmQf+JDU/SrDfrQ3Oxv9xjG0hv9QsQdNoSvDgwGzBkqORe7nYqtHwuXQ6m6XYIzAZosYD 0vw6S2e0WuBZ2J4SjnRsRUT6hO51bKwPmz9xdGjusErtqhQ4RxQkh5DZyDesVrgDLfi1NH K97h/1EvNN8IE6UOA1hNikzTXmoR41CAkUXYFLw0JYg40UDifzGaj0fZERLaUDYBq7Spdu 3ykRRGJDMPlTSoCDhirxhhVL3IkETzsrf9A9D8Zs5FCNjTnCK8w/SJYVtDTlAaXZrJXKb/ afPcCVZImDHh4nRyuoZrzxy4I+TKS0sB+J08sMMy1iHA2GjMin6sOFmEdeSYXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757336662; a=rsa-sha256; cv=none; b=i7AD1N729sSdLhz4Oh82ug1r4dy6TwL1gX0FYF9hEfivH/nNTN/sEWPeCOVGFWm0Hc/BO6 Y1rRJTPTkYyk2Awkme7HJ734kiqS/M0cz7sYr+UxH4G6HKoOlQuWE7o62meO6ktnxx2YI2 OhwQgB+9mh7Tz1bjE2t0ts783cZOyPhzRzAR2J3SaWC7drf9PEneVpDiCTO8bHnXmNzYkY fL+FahcOij4mBWL9eOncOfvVvb1Sh2w41hhl+SsTXEYvQs2lu/5dIzpSZ9OFj2JqMk+vIo S829hSei/R/sZcffhM0jwsZ5Rribr3l3Z+ORW+/WXZWh0FE18N22V98hiVz3Cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cL6bp4bBvz16kv for ; Mon, 08 Sep 2025 13:04:22 +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 588D4Mr6036681 for ; Mon, 8 Sep 2025 13:04:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 588D4MQI036680 for pkgbase@FreeBSD.org; Mon, 8 Sep 2025 13:04:22 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: pkgbase@FreeBSD.org Subject: [Bug 289368] If $BASEDIR is undefined, then refusal to run freebsd-update is ineffective on a pkgbase system Date: Mon, 08 Sep 2025 13:04:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: needs-qa, pkgbase X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dch@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289368 --- Comment #6 from Mark Millard --- (In reply to Ed Maste from comment #4) (In reply to Dave Cottlehuber from comment #2) # sh -x /usr/sbin/freebsd-update fetch + CONFIGOPTIONS=3D'KEYPRINT WORKDIR SERVERNAME MAILTO ALLOWADD ALLOWDELETE KEEPMODIFIEDMETADATA COMPONENTS IGNOREPATHS UPDATEIFUNMODIFIED BASEDIR VERBOSELEVEL TARGETRELEASE STRICTCOMPONENTS MERGECHANGES IDSIGNOREPATHS BACKUPKERNEL BACKUPKERNELDIR BACKUPKERNELSYMBOLFILES' + export 'PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lo= cal/sbin:/usr/local/bin:/usr/home/root/bin' + [ -z less ] + export 'LC_ALL=3DC' + unset GREP_OPTIONS + check_pkgbase + pkg -c -N + return . . . Note the lack of anything between the -c and the -N in the pkg command executed by check_pkgbase . Note: This was executed on pkgbase'd stable/14 chroot. For reference: # uname -apKU FreeBSD 7950X3D-ZFS 15.0-PRERELEASE FreeBSD 15.0-PRERELEASE main-n279819-6ea7e1f92882 GENERIC-NODEBUG amd64 amd64 1500063 1403506 The cotnrast with main 15 is calling get_params before calling check_pkgbase : . . . # Parse command line options and the configuration file. get_params "$@" # Disallow use with packaged base. if check_pkgbase; then cat <