From nobody Thu Apr 04 16:17:04 2024 X-Original-To: freebsd-ports@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 4V9Rb55m7sz5FX3S for ; Thu, 4 Apr 2024 16:17:05 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9Rb5533Pz4YbJ; Thu, 4 Apr 2024 16:17:05 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712247425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ysSChiUwVsrQJA9J397oUrPNU4rmGj3ldhULkRrL77I=; b=vYHj3rqaLRbYLJ6TzARzRGkMmzqAMV6FZDp2u6brgs0braWCM7YDVc/qQcY8Q9dxWi4B70 06JUPWF72mO7l8mUnTZ+MBfUo6eG9WB3sh9KDU0TNaysOwcR8noC6klFllXtaoudD7A+jT 0/4VkhTAZTayrmqlxQAXd9V3IhnHPesByy3+szWJPChm+CinrIFznM6Co8IDRh89qp+o3F 5KbjPcF+YOYoluLKiDoTVcd3nQ7LGBb4l+bRO2vdRdbCMaRcjhQlGyx1gNx7tZ6X6ZxQwh +uLPoday8FqiS46IgQt+UcyWjKCiGPuDA5GmuEnng9JngLDqDmqyXAhM8Jzg5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712247425; a=rsa-sha256; cv=none; b=kd64BTO0LpY8lm18xGtsQsXj789k2VioEtiB/EDBBclDWCpggC5hEf9D8Vw35J/hmMiO1s Ywt8EQgx3ohvUo1lvJTxYgEHgcJ+mjOMdj/3brmUTNAsP3zHgNZEOh7osaOfWnzn0utymg GHgEMTPp5INYeeRL+vg8JNzsVlMAnCJ+gY5VsNjXPnEshQMeysAvctZQuynfaIUbrM3bJu 6ymu8AcleKHYAhJBqpMj7//9CSjkLZ6LpcblS0IZZqnuAPbw2jW3ofoCkSdChN1SYZjp7R 0erqf7jzMvVn5SUm/HHEfkZDJmraVqadq+FdzaS10pzx4GgUEM+FQxBW2e5+ow== 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=1712247425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ysSChiUwVsrQJA9J397oUrPNU4rmGj3ldhULkRrL77I=; b=rQ9y/3x/Vw7NANJbdQWq/mI2/l3rB2xYbQm19HhcKBhICN0M6a4f3dSf4gv2Y+UzQKLm9G omoeTPYPBpzJVHYm0GLbRKdPssHWWsd4647NyAkwwgPs1XtpBaH2NHqmduKTMe11PGzB/a v+Z8QWpZE844TnCzKhsOBiI4+v7poLMlbzGyC6jLpFbzWpB+n77/q8oXq8UkbxkS8qQ5bL sMeoKGqmQgG63TdrSM0qnCSJVQv8lKWbhFq4Et8FmdTyUZPZWwClgOH/Uw1dtuyWpkqGG9 AFLyU5CViXVKlXdeOz85hWjMqYyHZ9nWYAJZdahah5lWT5OsVamECTCNKl1Axw== Received: from ltc.des.dev (163.23.65.37.rev.sfr.net [37.65.23.163]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4V9Rb53tyVzTBZ; Thu, 4 Apr 2024 16:17:05 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 5976F79F; Thu, 04 Apr 2024 18:17:04 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Yasuhiro Kimura Cc: freebsd-ports@freebsd.org Subject: Re: `pkg autoremove` uninstalls pkg itself In-Reply-To: <20240404.202624.2016737165801435957.yasu@FreeBSD.org> (Yasuhiro Kimura's message of "Thu, 04 Apr 2024 20:26:24 +0900 (JST)") References: <20240404.202624.2016737165801435957.yasu@FreeBSD.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 04 Apr 2024 18:17:04 +0200 Message-ID: <86sf016r27.fsf@ltc.des.dev> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yasuhiro Kimura writes: > 1. Make clean install of 14.0-RELEASE amd64. > 2. Login as root > 3. pkg install git-tiny Since you didn't already have pkg, it was bootstrapped here, and marked it as non-automatic. > 4. cd /usr/ports > 5. git clone https://git.freebsd.org/ports.git . > 6. pkg delete -afy This deleted pkg even though it was marked as non-automatic, because that's what the -f flag does, cf. pkg-delete(8). > 7. cd security/sudo (Probably any other ports are OK expect ports-mgmt/pk= g) > 8. make install This installed pkg as a build dependency of sudo, and marked it as automatic. > 9. pkg-static autoremove -y This removed pkg because it was marked as automatic and had no dependents. > Then is it expected behavior? Yes, it did exactly what you asked it to do. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org