From nobody Thu Apr 04 16:02:22 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 4V9RGN5QPSz5FW7G for ; Thu, 4 Apr 2024 16:02:36 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9RGM6r0mz4VgT for ; Thu, 4 Apr 2024 16:02:35 +0000 (UTC) (envelope-from tingox@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=jo7uEKRI; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of tingox@gmail.com designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=tingox@gmail.com Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2a28b11db68so751780a91.2 for ; Thu, 04 Apr 2024 09:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712246554; x=1712851354; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hbVRyYpaLUoFuPMwNQAV/Dtz7n0B0VKI3+pSUHvxHt4=; b=jo7uEKRIxSBqfYGhi54BXzn48p77YQARVMy2vYR0n4bhThwxrjB0hfEcRPcJu5jbg6 S8w9Ig/mRbQxoksFOftl8C5If1lekX3HBW3cB/qSrj6chAcKrSyW3D6TokEaBT+GFSVJ FuvpT7xo6O2/ntN6dYu5u0YiIyjwqs2lKiNEmzgy1nnha/56zV3ynmXXksdZkNSX/QlA /B3vZyFETJqt0HWGvdMh7RF+2DEUCFzvt2AVV0bZ3DBy7vGCGrlOpbLuBWiKz0ba4XZV Si3TBBcRnZdCwGZvGJexw5MYsJeAWbMZU/j2WCQSE2QN+zYPNE138pLqMP3lM70XZwan JQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712246554; x=1712851354; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hbVRyYpaLUoFuPMwNQAV/Dtz7n0B0VKI3+pSUHvxHt4=; b=AOXv6cX6smqUsjxoCDQu1tNjeYfoi3rX4MJckEfpuudCU2Xg1LbeFWnD3JOYBIVu6E I6w9lEI9oMbM8+Pf9Ta2VuwMeORDlacdPYWE+d+IH/mYzGfcdzpG6M8kxwY9KatXbu6Y AmiHaK10RrMSHQeHiHIDTZy06RoOV8oHryZPJPNQd9nYarT7wXsQwuLPtB5GB/pk/JnC AtNfLWBymMgZhLGXONYPEAfJLVsNqsc3pBFY1OseASRPNl+z+49G0OTCSd9HomBrHhj9 XH5/HfS+RgEaxL7StIiyoQiqqE/P36iiQ6kvU//VSycdYu1dyGeFH6dcK0Kuu18AytTn 4Hwg== X-Gm-Message-State: AOJu0Yyqw69CSzPwaVT3GCh6LV/MUqe+dn5ZvJhSpdiPmjG7+a4AZucE mwa9HDSZbanHDHJ7I1gEO2hcqh0ik6m/7m6gVHcB2TUiAQmt3f+Fic8ALrH9OSb3ctAKQrNTIZY su7diDDn+yWztCCrXxCd1H/eAq7ZaS1ww X-Google-Smtp-Source: AGHT+IHbHNZSnJkuVsw7Smxu5eG+rfdkT8cBC00wPscHwzbGAdhK5+i0O2W5eWIKsWnV5z0xQHpYtHPjL66U3f1MboI= X-Received: by 2002:a17:90a:70c7:b0:2a0:718a:8e49 with SMTP id a7-20020a17090a70c700b002a0718a8e49mr2695734pjm.39.1712246554316; Thu, 04 Apr 2024 09:02:34 -0700 (PDT) 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 References: <20240404.202624.2016737165801435957.yasu@FreeBSD.org> In-Reply-To: <20240404.202624.2016737165801435957.yasu@FreeBSD.org> From: Torfinn Ingolfsen Date: Thu, 4 Apr 2024 18:02:22 +0200 Message-ID: Subject: Re: `pkg autoremove` uninstalls pkg itself To: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.84 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.84)[-0.842]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102c:from] X-Rspamd-Queue-Id: 4V9RGM6r0mz4VgT On Thu, Apr 4, 2024 at 1:27=E2=80=AFPM Yasuhiro Kimura w= rote: > > Hello, > > I tried following steps. > > 1. Make clean install of 14.0-RELEASE amd64. > 2. Login as root > 3. pkg install git-tiny > 4. cd /usr/ports > 5. git clone https://git.freebsd.org/ports.git . > 6. pkg delete -afy > 7. cd security/sudo (Probably any other ports are OK expect ports-mgmt/pk= g) > 8. make install > 9. pkg-static autoremove -y > > Then step 9 uninstalls pkg package itself. And it is a bit surprising > for me. > > Then is it expected behavior? Yes, this is the expected behavior. Bonus points for figuring out how to install pkg on a system that doesn't have it. :-) --=20 Regards, Torfinn Ingolgfsen