It does not matter, the problem is due to this line:

OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}" 
"${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)}" 
"${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}"'

For some reason these '' from both acl and xattr are being packed into "", but 
I wanted it to be threated as empty strings which would be actually not being 
passed to this command.

I have finally reproduced the error on my side:

ERROR: run-postinsts-1.0-r10 do_package_write_ipk: Fatal errors occurred in 
subprocesses:
Command 
'PATH="/work/build/yocto/openembedded-core/scripts:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin/allarch-WelotecGmbH-linux:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot/usr/bin/crossscripts:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/sbin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/sbin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/bin:/work/build/yocto/bitbake/bin:/work/build/tmp-glibc/hosttools"
 opkg-build -Z xz -a "--memlimit=50% --threads=16" "" "-X" run-postinsts 
/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/deploy-ipks/all'
 returned non-zero exit status 1.
Subprocess output:Usage: 
/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin/opkg-build
 [-A] [-X] [-c] [-C] [-Z compressor] [-a compressor_args] [-O] [-o owner] [-g 
group] <pkg_directory> [<destination_directory>]
Command 
'PATH="/work/build/yocto/openembedded-core/scripts:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin/allarch-WelotecGmbH-linux:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot/usr/bin/crossscripts:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/sbin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/sbin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/bin:/work/build/yocto/bitbake/bin:/work/build/tmp-glibc/hosttools"
 opkg-build -Z xz -a "--memlimit=50% --threads=16" "" "-X" run-postinsts-dbg 
/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/deploy-ipks/all'
 returned non-zero exit status 1.
Subprocess output:Usage: 
/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin/opkg-build
 [-A] [-X] [-c] [-C] [-Z compressor] [-a compressor_args] [-O] [-o owner] [-g 
group] <pkg_directory> [<destination_directory>]
Command 
'PATH="/work/build/yocto/openembedded-core/scripts:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin/allarch-WelotecGmbH-linux:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot/usr/bin/crossscripts:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/sbin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/sbin:/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/bin:/work/build/yocto/bitbake/bin:/work/build/tmp-glibc/hosttools"
 opkg-build -Z xz -a "--memlimit=50% --threads=16" "" "-X" run-postinsts-dev 
/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/deploy-ipks/all'
 returned non-zero exit status 1.
Subprocess output:Usage: 
/work/build/tmp-glibc/work/all-WelotecGmbH-linux/run-postinsts/1.0-r10/recipe-sysroot-native/usr/bin/opkg-build
 [-A] [-X] [-c] [-C] [-Z compressor] [-a compressor_args] [-O] [-o owner] [-g 
group] <pkg_directory> [<destination_directory>]

when I have just removed entirely acl from DISTRO_FEATURES.

So, in principle I just need to fix this command and that will be all, 
hopefully.
________________________________
Od: Alexandre Belloni <[email protected]>
Wysłane: sobota, 22 lipca 2023 14:45
Do: Piotr Łobacz <[email protected]>
DW: [email protected] 
<[email protected]>
Temat: Re: ODP: ODP: [OE-Core][PATCH v7][master-next 1/5] package_ipk.bbclass: 
add support for ACLs and xattr

On 22/07/2023 11:42:39+0000, Piotr Łobacz wrote:
> OK, finally discovered why in my case removing of acl from DISTRO_FEATURES 
> didn't work for me. We have our own DISTRO_FEATURES:append in which acl is 
> being appended and I just removed it from there.
>
> Unfortunately, there is this file:
> yocto/openembedded-core/meta/conf/distro/include/default-distrovars.inc:19:DISTRO_FEATURES_DEFAULT
>  ?= "acl alsa argp bluetooth debuginfod ext2 ipv4 ipv6 largefile pcmcia 
> usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 vfat seccomp"
> which I was not aware of....
>

Note that the failing packages are nativesdk- so I suspect
DISTRO_FEATURES_FILTER_NATIVESDK may have something to do with this.

> I will fix that today finally...
>
> BR
> Piotr
> ________________________________
> Od: Alexandre Belloni <[email protected]>
> Wysłane: sobota, 22 lipca 2023 12:19
> Do: Piotr Łobacz <[email protected]>
> DW: [email protected] 
> <[email protected]>
> Temat: Re: ODP: [OE-Core][PATCH v7][master-next 1/5] package_ipk.bbclass: add 
> support for ACLs and xattr
>
> On 21/07/2023 23:33:02+0000, Piotr Łobacz wrote:
> > Alexandre, Is it possible for you to create a docker file or some image 
> > etc. with all commands from autobuilder which will re-create the failure 
> > and pass it to me?
> >
>
> I don't have that but really, those are just bare installation of the
> distro with just what is necessary to start an OE build.
>
> How did you try to reproduce?
>
> The log says that you are trying to execute this:
>
> opkg-build -Z xz -a "--memlimit=5% --threads=8" "" "" 
> nativesdk-glibc-binary-localedata-zu-za 
> /home/pokybuild/yocto-worker/qemuarm-oecore/build/build/tmp-glibc/work/i686-nativesdk-oesdk-linux/nativesdk-glibc-locale/2.37-r1/deploy-ipks/i686-nativesdk'
>
> The error is there, in the logs since I tested v4:
>
> Usage: 
> /home/pokybuild/yocto-worker/qemuarm-oecore/build/build/tmp-glibc/work/i686-nativesdk-oesdk-linux/nativesdk-glibc-locale/2.37-r1/recipe-sysroot-native/usr/bin/opkg-build
>  [-A] [-X] [-c] [-C] [-Z compressor] [-a compressor_args] [-O] [-o owner] [-g 
> group] <pkg_directory> [<destination_directory>]
>
> It is because you changed OPKGBUILDCMD to be:
>
> OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}" 
> "${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)}" 
> "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}"'
>
> Can you see the extra double quotes that create two extra string
> arguments?
>
> Did you test without acl and xattr in DISTRO_FEATURES?
>
> > Because can grope, find nothing and waste our time...
> >
>
> Now, I've spent part of my week-end looking at that, this is time I will
> never get back while you just had to read the errors I reported to you
> on v4 and v5.
> You are demanding this is urgently processed but your patch series is
> not ready.
>
> Also, you HAVE to fix the reproducibility issues, else this will not go
> in.
>
> > Cheers,
> > Piotr
> >
> > ________________________________
> > Od: Alexandre Belloni <[email protected]>
> > Wysłane: sobota, 22 lipca 2023 00:01
> > Do: Piotr Łobacz <[email protected]>
> > DW: [email protected] 
> > <[email protected]>
> > Temat: Re: [OE-Core][PATCH v7][master-next 1/5] package_ipk.bbclass: add 
> > support for ACLs and xattr
> >
> > I confirm this still fails on the autobuilders:
> >
> > This is a-full:
> > https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fautobuilder.yoctoproject.org%2Ftyphoon%2F%23%2Fbuilders%2F83%2Fbuilds%2F5631&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1uDyi%2FU59lOmIhLOGt%2F1H7UT3iWRJwBuyGtvSaaxOA8%3D&reserved=0<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fautobuilder.yoctoproject.org%2Ftyphoon%2F%23%2Fbuilders%2F83%2Fbuilds%2F5631&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1uDyi%2FU59lOmIhLOGt%2F1H7UT3iWRJwBuyGtvSaaxOA8%3D&reserved=0><https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fautobuilder.yoctoproject.org%2Ftyphoon%2F%23%2Fbuilders%2F83%2Fbuilds%2F5631&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1uDyi%2FU59lOmIhLOGt%2F1H7UT3iWRJwBuyGtvSaaxOA8%3D&reserved=0><https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/5631>
> >
> > On 21/07/2023 14:07:19+0200, Piotr Łobacz 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://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fg%2Fopkg-devel%2Fc%2FdYNHrLjDwg8&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vhf4D2Ov8fnMJQgVV4tf3q24O4Z6Hr3sUzvjo%2BocM4I%3D&reserved=0<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fg%2Fopkg-devel%2Fc%2FdYNHrLjDwg8&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vhf4D2Ov8fnMJQgVV4tf3q24O4Z6Hr3sUzvjo%2BocM4I%3D&reserved=0><https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fg%2Fopkg-devel%2Fc%2FdYNHrLjDwg8&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vhf4D2Ov8fnMJQgVV4tf3q24O4Z6Hr3sUzvjo%2BocM4I%3D&reserved=0><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 <[email protected]>
> > > ---
> > >  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..5e151be3cd 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)}"'
> > >
> > >  OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
> > >  OPKG_ARGS += "${@['', 
> > > '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
> > > --
> > > 2.34.1
> > >
> >
> > >
> > > 
> > >
> >
> >
> > --
> > Alexandre Belloni, co-owner and COO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.com%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fy1ewqziBFsp7Tr4YdBZ6RndkaUMe2mH2ClcjsK2ua0%3D&reserved=0<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.com%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fy1ewqziBFsp7Tr4YdBZ6RndkaUMe2mH2ClcjsK2ua0%3D&reserved=0><https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.com%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fy1ewqziBFsp7Tr4YdBZ6RndkaUMe2mH2ClcjsK2ua0%3D&reserved=0><https://bootlin.com/>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.com%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fy1ewqziBFsp7Tr4YdBZ6RndkaUMe2mH2ClcjsK2ua0%3D&reserved=0<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.com%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364321769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fy1ewqziBFsp7Tr4YdBZ6RndkaUMe2mH2ClcjsK2ua0%3D&reserved=0><https://bootlin.com/>

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.com%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7C9c0e0482f5aa4a4aba3508db8ab18a04%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638256267364478020%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2U1vCACo22kIwqtPm3jTzsM2te9i9csAbbM8%2FT%2Fp%2FVo%3D&reserved=0<https://bootlin.com/>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184721): 
https://lists.openembedded.org/g/openembedded-core/message/184721
Mute This Topic: https://lists.openembedded.org/mt/100294558/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to