Date: Sat, 3 May 2025 12:01:41 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: freebsd-pkg@freebsd.org, freebsd-current@freebsd.org Subject: Re: pkg: invalid option --, and pkg: illegal option -- Message-ID: <CAN6yY1uuc4NbTMc5B1uvux86mR7cwZ37rLFn54z6bK4sn-0MFQ@mail.gmail.com> In-Reply-To: <aBZFzh_3B3tPVEye@int21h> References: <c04ba507-9764-4357-b877-cffa57ccc3cc@gmail.com> <aBZFzh_3B3tPVEye@int21h>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sat, May 3, 2025 at 9:36 AM void <void@f-m.fm> wrote: > On Fri, May 02, 2025 at 07:32:34AM +0100, Graham Perrin wrote: > >root@mowa219-gjp4-zbook-freebsd:~ # pkg version -C -vRL= | grep -v > orphaned > >pkg: invalid option -- C > >pkg: invalid option -- v > >pkg: invalid option -- R > >pkg: invalid option -- L > >pkg: invalid option -- = > > 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= | 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. 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. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 [-- Attachment #2 --] <div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">On Sat, May 3, 2025 at 9:36 AM void <<a href="mailto:void@f-m.fm">void@f-m.fm</a>> wrote:</div></div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, May 02, 2025 at 07:32:34AM +0100, Graham Perrin wrote:<br> >root@mowa219-gjp4-zbook-freebsd:~ # pkg version -C -vRL= | grep -v orphaned<br> >pkg: invalid option -- C<br> >pkg: invalid option -- v<br> >pkg: invalid option -- R<br> >pkg: invalid option -- L<br> >pkg: invalid option -- =<br> <br> how odd.<br> <br> I'd try re-making pkg from an updated ports tree.<br> My context builds everything from source. It doesn't use pkg base.<br> <br> % pkg version -C -vRL= | grep -v orphaned<br> %<br> <br> % pkg which /usr/local/sbin/pkg<br> /usr/local/sbin/pkg was installed by package pkg-2.1.2<br> <br> % pkg --version<br> 2.1.2<br> <br> 15.0-CURRENT FreeBSD 15.0-CURRENT #0 n276073-67c1c4dfd1cc: Wed Mar 26 16:26:10 GMT 2025<br> root@redacted.home.arpa:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1500034 1500034</blockquote><div><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">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.</div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif;font-size:small" class="gmail_default">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.</div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kevin Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a href="mailto:rkoberman@gmail.com" target="_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div></div></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uuc4NbTMc5B1uvux86mR7cwZ37rLFn54z6bK4sn-0MFQ>
