From: Khem Raj <raj.khem@gmail.com>
To: "Piotr Łobacz" <p.lobacz@welotec.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-Core][PATCH v13 2/8] package_ipk.bbclass: add support for ACLs and xattr
Date: Tue, 22 Aug 2023 17:25:06 -0700 [thread overview]
Message-ID: <a218d04b-47bf-4c3e-a2cb-8dbe13ccb9fe@gmail.com> (raw)
In-Reply-To: <CAMKF1sp0R3i5Tq_3AJ38BnBA8bij7BqTPxv1pDs2=cjOxpNzyg@mail.gmail.com>
OK I have narrowed down the problem a bit more
It seems to trigger with poky master + this patch series on archlinux
build host ( it has glibc 2.38 natively ) . It works ok with nodistro (
I guess its because nodistro does not use uninative but its just a guess )
Add following at the end of conf/local.conf
PACKAGE_CLASSES = "package_ipk"
then run
bitbake python3
On 8/22/23 10:03, Khem Raj wrote:
> On Tue, Aug 22, 2023 at 8:58 AM Khem Raj <raj.khem@gmail.com> wrote:
>>
>> On Thu, Aug 17, 2023 at 5:47 AM Piotr Łobacz <p.lobacz@welotec.com> wrote:
>>>
>>> Extend OPKGBUILDCMD variable, with additional parameters, depending
>>> on target distro features, in order to support ACLs and xattr.
>>>
>>> With fix pushed to the opkg-devel:
>>> https://groups.google.com/g/opkg-devel/c/dYNHrLjDwg8
>>> opkg-build is able to create tar archives with ACLs and xattr.
>>>
>>> Signed-off-by: Piotr Łobacz <p.lobacz@welotec.com>
>>> ---
>>> meta/classes-global/package_ipk.bbclass | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meta/classes-global/package_ipk.bbclass b/meta/classes-global/package_ipk.bbclass
>>> index b4b7bc9ac2..a0f106e4ad 100644
>>> --- a/meta/classes-global/package_ipk.bbclass
>>> +++ b/meta/classes-global/package_ipk.bbclass
>>> @@ -15,7 +15,7 @@ IPKGCONF_SDK_TARGET = "${WORKDIR}/opkg-sdk-target.conf"
>>> PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
>>>
>>> # Program to be used to build opkg packages
>>> -OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}"'
>>> +OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}" ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}'
>>
>> I wonder if it should be an append instead, because these are
>> dependent on DISTRO_FEATURES anyway and it does not work if distro
>> features are
>> enabled and these options are removed from opkg-build cmdline. So
>> these are required if distro features are enabled. It will also help
>> the distros overriding OPKGBUILDCMD
>>
>
> btw. I am encountering packaging failures in several packages using
> zstd compression instead of xz e.g.
> https://snips.sh/f/R42MbTZryH
>
> Here is my OPKGBUILDCMD
>
> OPKGBUILDCMD = 'opkg-build -Z zstd -a "--threads=${ZSTD_THREADS}"
> ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)}
> ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}'
>
>
>>>
>>> OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
>>> OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
>>> --
>>> 2.34.1
>>>
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> View/Reply Online (#186307): https://lists.openembedded.org/g/openembedded-core/message/186307
>>> Mute This Topic: https://lists.openembedded.org/mt/100799493/1997914
>>> Group Owner: openembedded-core+owner@lists.openembedded.org
>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>
next prev parent reply other threads:[~2023-08-23 0:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 12:46 [OE-Core][PATCH v13 1/8] path.py: add support for ACLs and all additional attributes Piotr Łobacz
2023-08-17 12:46 ` [OE-Core][PATCH v13 2/8] package_ipk.bbclass: add support for ACLs and xattr Piotr Łobacz
2023-08-22 15:58 ` Khem Raj
2023-08-22 17:03 ` Khem Raj
2023-08-23 0:25 ` Khem Raj [this message]
2023-08-23 1:00 ` Khem Raj
2023-09-06 7:16 ` Piotr Łobacz
2023-08-17 12:46 ` [OE-Core][PATCH v13 3/8] package.bbclass: " Piotr Łobacz
2023-08-17 12:46 ` [OE-Core][PATCH v13 4/8] sstate.bbclass: " Piotr Łobacz
2023-08-17 12:46 ` [OE-Core][PATCH v13 5/8] sstatesig.py: fix hash calculation for timestamp Piotr Łobacz
2023-08-17 13:33 ` Richard Purdie
2023-08-17 12:46 ` [OE-Core][PATCH v13 6/8] opkg-utils: add acl and xattr support Piotr Łobacz
2023-08-17 12:46 ` [OE-Core][PATCH v13 7/8] opkg: add options to enable support for acl and xattr Piotr Łobacz
2023-08-17 12:46 ` [OE-Core][PATCH v13 8/8] opkg: set locale from system environment variables Piotr Łobacz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a218d04b-47bf-4c3e-a2cb-8dbe13ccb9fe@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=p.lobacz@welotec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.