From nobody Sun May 4 04:59:38 2025 X-Original-To: freebsd-current@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 4Zqss95Zdcz5vHvD; Sun, 04 May 2025 04:59:41 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta004.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zqss93bj9z48mc; Sun, 04 May 2025 04:59:41 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTPS id BA1TubcMK5MqyBRS0uh6gF; Sun, 04 May 2025 04:59:40 +0000 Received: from spqr.komquats.com ([70.66.136.217]) by cmsmtp with ESMTPSA id BRRzunDsRQwcXBRRzufWIo; Sun, 04 May 2025 04:59:40 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=DaW0qetW c=1 sm=1 tr=0 ts=6816f43c a=h7br+8Ma+Xn9xscxy5znUg==:117 a=h7br+8Ma+Xn9xscxy5znUg==:17 a=kj9zAlcOel0A:10 a=dt9VzEwgFbYA:10 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=pGLkceISAAAA:8 a=YxBL1-UpAAAA:8 a=M-XknVrTB9mP2qjjhV0A:9 a=CjuIK1q_8ugA:10 a=wxjwxRg-BxsA:10 a=LK5xJRSDVpKd5WXXoEvA:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 8F1127C; Sat, 03 May 2025 21:59:38 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 71917AE; Sat, 03 May 2025 21:59:38 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Kevin Oberman cc: freebsd-pkg@freebsd.org, freebsd-current@freebsd.org Subject: Re: pkg: invalid option --, and pkg: illegal option -- In-reply-to: References: Comments: In-reply-to Kevin Oberman message dated "Sat, 03 May 2025 12:01:41 -0700." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 May 2025 21:59:38 -0700 Message-Id: <20250504045938.71917AE@slippy.cwsent.com> X-CMAE-Envelope: MS4xfIryOKWrV8ZSsUwt7sSu2HtckCBrQXDlGF6j0nvXW12nxleTXivNFhiiz/ALJUi/PRQEU7jVcAu3M8iK7mp+c3iMq75dkcmuhpRSgdCSogDDEvHgUyE0 rwI9s+1pYP9xRppgR28PEhVZo90wok7IloWfDCmHk3DdKzwf8oWlcCIp1O+NtITDk3akEAtx3IPGKgLJV1xpt+SqiCwxe8VpGo6X6X1VMx2OKNHnxiuQdekH HlYJ7u2uUa/HbIr4t7kmtH8RXY+gg9Tz7sXUklOSS00= X-Rspamd-Queue-Id: 4Zqss93bj9z48mc X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Spamd-Bar: ---- In message , Kevin Oberman writes: > --000000000000a8e5f306343fe6e8 > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Sat, May 3, 2025 at 9:36=E2=80=AFAM void wrote: > > > On Fri, May 02, 2025 at 07:32:34AM +0100, Graham Perrin wrote: > > >root@mowa219-gjp4-zbook-freebsd:~ # pkg version -C -vRL=3D | grep -v > > orphaned > > >pkg: invalid option -- C > > >pkg: invalid option -- v > > >pkg: invalid option -- R > > >pkg: invalid option -- L > > >pkg: invalid option -- =3D > > > > how odd. > > > > I'd try re-making pkg from an updated ports tree. > > My context builds everything from source. It doesn't use pkg base. > > > > % pkg version -C -vRL=3D | grep -v orphaned > > % > > > > % pkg which /usr/local/sbin/pkg > > /usr/local/sbin/pkg was installed by package pkg-2.1.2 > > > > % pkg --version > > 2.1.2 > > > > 15.0-CURRENT FreeBSD 15.0-CURRENT #0 n276073-67c1c4dfd1cc: Wed Mar 26 > > 16:26:10 GMT 2025 > > root@redacted.home.arpa:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG > > amd64 1500034 1500034 > > > I see the same thing, but only after updating the system (not ports) to > main-n276966-46adaf3642cf: Fri May 2 21:35:20 PDT. rebuilding the port > made no difference. It looks like the issue is in the base system, not > port, or the interaction between /usr/sbin/ports. Likely be61deae0aa2. > > As a workaround, I will also mention that the error messages do not appear > if I directly run /usr/local/sbin/pkg. By aliasing pkg to > /usr/local/sbin/pkg, the issue disappears. > --=20 > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0