Date: Wed, 8 Mar 2023 00:35:27 -0600 From: Kyle Evans <kevans@freebsd.org> To: Mel Pilgrim <list_freebsd@bluerosetech.com> Cc: Tatsuki Makino <tatsuki_makino@hotmail.com>, ports@freebsd.org, Baptiste Daroussin <bapt@freebsd.org> Subject: Re: How do I determine the ABI string used by pkg? Message-ID: <CACNAnaFYO1HdGUgvaGZF7kFfj0qaea6n39F8W0FEOxh8MbcoPQ@mail.gmail.com> In-Reply-To: <713f867d-653d-a7a8-b9c0-86a7c08c2653@bluerosetech.com> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> <e21a76b6-8f91-754e-d655-9f469ecc28f1@bluerosetech.com> <PSAPR03MB563917320975B946E772C8F3FAB49@PSAPR03MB5639.apcprd03.prod.outlook.com> <713f867d-653d-a7a8-b9c0-86a7c08c2653@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 7, 2023 at 11:34=E2=80=AFPM Mel Pilgrim <list_freebsd@bluerosetech.com> wrote: > > On 2023-03-07 19:56, Tatsuki Makino wrote: > > Hello. > > > > Are you still saying that you are creating another program that does no= t rely on the pkg command? > > Then again, let's look at elf_tables.h. > > It would be necessary to have such a conversion table. > > Yeah basically. It pulls the pkg source as a build dependency and > includes what it needs from there. It's a hack, though. All that's > needed to obviate it entirely would be for the unbootstrapped `pkg -N > -vv` to have functional parity with its bootstrapped counterpart, and > that's slated for my next pet-project time slot. > For the giggles, I implemented[0] a `pkg -N config` that allows executing the equivalent of pkg-config(8), but for the bootstrap. It has a caveat that the bootstrap doesn't actually know about ALTABI, and it can't currently dump the UCL object entries (list/object). It's not really how -N was intended to be used at all, but maybe bapt has a better idea for exposing it (I kind of like the general idea, even if not this exact way to invoke it). Thanks, Kyle Evans [0] https://people.freebsd.org/~kevans/pkg-config.diff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaFYO1HdGUgvaGZF7kFfj0qaea6n39F8W0FEOxh8MbcoPQ>