From nobody Wed Mar 08 06:35:27 2023 X-Original-To: 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 4PWjHb2NKbz3xCwj for ; Wed, 8 Mar 2023 06:35:39 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4PWjHb1yStz3jYj; Wed, 8 Mar 2023 06:35:39 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678257339; 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=zHKNqsS3m2YZjnlJJ5gN+JHKG39aXVTU33DCRqn2sbw=; b=n/EPPMIy6dEovN69gG8kiZ3OIj+3zpwhx09h5gppTTRXFytnknfqN2xUJZ/66aPILcJ6ih OJkN1qeuVAREbEor79eazMHSRWybOnBj8E6opuye4MQtDIqpBl0FU0ly8Hv83nlTNXVfms vQaW/lTBGKUWsrKiUMbFjybem5eEdeng1ksBGZv10dkk8yxFjRe7cE0QavnE/mCE4JxPmA G3dJ1jEe5Kw3WV98e4AD5wi7OD9RbFZjrHyzRupmneZE0iIoe1khLAQYpZMKN7a3/i5UBa 3vrmz0MF0TjBelBtXRQqjnwK9voX7in7nMrWNJrEC60IauVZyTxmofDpwVxasA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678257339; 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=zHKNqsS3m2YZjnlJJ5gN+JHKG39aXVTU33DCRqn2sbw=; b=X8H/NhGkAKch0SXE/aWjDWoetE45BMv9y7F5geSOIzHNBTQH/mMuw39d8W4e0Al1Eap/0O gNm1M70iJBiJfkzN4qsLvBrwcU8AFe5VgxD5ThGjsxmY6iFt4zWqqpyoWVeCMDrCfa2Ry8 Bf49IyvpxLbVtSmNI067VVt2SVs6xArnTss/V2h8XpNN7DAdVGd7vMFmMvLpvDfkDWg7eN wCEjCMdM+VCiwTQQDSRUqz/M5IQas44UjUC8k6t5xg9QwQE2kXZ9i7HGwJ0rzVbC6a49iC 6asJfrj7KWewYr8iIbDKEkWO7pN8Cj8B/HHPV5lr62JV+FZ/5mmCQGUXIYEAFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678257339; a=rsa-sha256; cv=none; b=lx4mrNi4ApMsC2ipbNxydcCfOktYxtcUbE98FxNeak0iNOt0mS9VRbKlW8+efx3tAJROeM 7COm6Q7xImhloFCp2wPAdqpoKOdPNdihGi6e7EMHOKe0SKjmPtWUtsOD2Y4KI9gwJ4SUlq z53Fp17Bv2jLSwAK1hGjIVBdTbMp+3AbdL5CU9PkpTtSXVcU9oiZ0xpKPEtJP/AlLp68vt dxjPZk6ktGcdFIusre5RLtQPrW1paPIfTyahVV5ZDgS0ANyplRn0Bv0YIG+lKhnRqRVWi+ gtvSUgoiZQD9dAVkqFD9LFcmJuVX4GeLhrLfAsoXPxNbdI4hc2MvkWnd7nGXBQ== Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PWjHb0zlCzt9l; Wed, 8 Mar 2023 06:35:39 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f174.google.com with SMTP id p12so5312710qki.1; Tue, 07 Mar 2023 22:35:39 -0800 (PST) X-Gm-Message-State: AO0yUKVatUwK20qfnINMzUY2wACN3oSdwG3NYFUtjSJ/+1WYQ8p9uep1 PxaG28+G1aWDSLnDL2PIaAzuVIEXZQcLx6fEkE4= X-Google-Smtp-Source: AK7set9U1zIb1jVba/I3ZvGhJvddfxvJ4ZkUcztpjPVtyXUWd8BcPHR7yTaHxobdz/z8KuG/YsGeuLsMK3z7F90V6XI= X-Received: by 2002:a05:620a:16ae:b0:741:8fa2:73ff with SMTP id s14-20020a05620a16ae00b007418fa273ffmr3675109qkj.14.1678257338415; Tue, 07 Mar 2023 22:35:38 -0800 (PST) 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: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> <713f867d-653d-a7a8-b9c0-86a7c08c2653@bluerosetech.com> In-Reply-To: <713f867d-653d-a7a8-b9c0-86a7c08c2653@bluerosetech.com> From: Kyle Evans Date: Wed, 8 Mar 2023 00:35:27 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How do I determine the ABI string used by pkg? To: Mel Pilgrim Cc: Tatsuki Makino , ports@freebsd.org, Baptiste Daroussin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-ThisMailContainsUnwantedMimeParts: N On Tue, Mar 7, 2023 at 11:34=E2=80=AFPM Mel Pilgrim 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