From nobody Mon Sep 8 12:04:47 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 4cL5H33GjWz66Wqd for ; Mon, 08 Sep 2025 12:04:47 +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 4cL5H32gRMz3xNx for ; Mon, 08 Sep 2025 12:04:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757333087; 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=AmeSJGiYZyfmhP1S/1YYMvQOi+Xtgu8yigzmXFIAzdo=; b=EhIG5T+fxdSnsd5B8sEUEEHQsmNr09Tb7yHx3ExbszjiULLHbkJQi2R7tulOcbvNT1Drlb PM+Mcce7y6w98+Lt7iMUHgguKkz+AfhvEC+vq9M/1cWpGZJyosrUWVmf1MU481Oa/tLht6 lxoLyHwxCeIxJzHd4wqilk5UyZSUczXe+iy2vLByLZuQ4BA8LUr4fBWAqryE174MveJwhM wjMVCruI64w1PCgJ/iEru0zvzombHvZg9kQzD8aaQhCmjBir+qwUYnqIPinOVvxdvvB5IA ffjQ99uegIRuZurTxfueg8qWqYUnqjhkab6lplIl7Cq9zYe+phYlNqKYQUSTSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757333087; 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=AmeSJGiYZyfmhP1S/1YYMvQOi+Xtgu8yigzmXFIAzdo=; b=ZVsQa1DjrsArsLANp7G0rti5DNPGVHCBFwRgKhn2NH5UsY/+IW1qmnXiuYEWQfOQuhxBRj ChmfuPuEtDoRAd+rI/Hy4QsSq+pTz1GmrgyokDS/2yWOSiV/1F+92Qhx3EU85Qckn2PbhG MPvCmKU11X8k3Pyt8v2TgT+U1otvOIfGznxn4wcXSaBXOb9WBW5t9cMsF91ZqznasJdKg+ 1EeI/29yOuhZ1/sAHVauEgmAWlx4qneFaV0DO6nU5aW4fZKe0FGQTCXMIfXwiWkiAO36h0 +SeaT/RJVknGy3Dd0k4kU0QSa/By0E05D3OYO58PCDrMATJUbd9ZgUkdatNtfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757333087; a=rsa-sha256; cv=none; b=utzz1ZlveRcUwl/Fxi13qdNGsyWAtswt8j4FARiGgcIdbP+3lyFidvlFBVC09/zFDX5rox 9QhKc5g/HXF+RsFpPr+cWQwYN/DO2rQabZ2wCiLfNjB10IyflrCf9KrocqZBe3a4j+Ea7V xHkWTwZHpq2Dn5xksuqhu7PZ3cDhXddXm6hAx/BQB5Le3DnSgQJeSlYfcs3HDE0h/gla0v Z6ulLs+iCROC6wH5uDXVcZFHEfuuxaXRZsJpRMG+t7vw2cEDFzwSx1YkuTSYTkIIhDowj0 7Hwmqa8xAsUyP25CJloOJ1xuAYr17rp5Go0eZ3Qw08IvLaiMs4LInZJshcdxAg== 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 4cL5H32CTTz145l for ; Mon, 08 Sep 2025 12:04:47 +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 588C4l01042031 for ; Mon, 8 Sep 2025 12:04:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 588C4lvP042030 for pkgbase@FreeBSD.org; Mon, 8 Sep 2025 12:04:47 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 12:04:47 +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: cc 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 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #3 from Mark Millard --- (In reply to Dave Cottlehuber from comment #2) The below does not define BASEDIR to be a nonempty path if it is initially undefined or is empty? check_pkgbase then expands it to nothing, not even t= o an explicit empty string? pkg -c -N and pkg -c which result? #### Entry point # Make sure we find utilities from the base system export PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:${PATH} # Set a pager if the user doesn't if [ -z "$PAGER" ]; then PAGER=3D/usr/bin/less fi # Set LC_ALL in order to avoid problems with character ranges like [A-Z]. export LC_ALL=3DC # Clear environment variables that may affect operation of tools that we us= e. unset GREP_OPTIONS # Disallow use with packaged base. check_pkgbase get_params $@ for COMMAND in ${COMMANDS}; do cmd_${COMMAND} done --=20 You are receiving this mail because: You are on the CC list for the bug.=