That is odd.
Are you running your OE build within a container environment? I wonder
if the OE rootfs/ workspace is on a mount point which doesn't support
xattrs or has some other confounding settings, versus the unarchive
destination you're using to do your manual testing.
On 4/4/23 17:16, Piotr Łobacz wrote:
> BTW. I do not know what has happened but for some reason when I'm
> posting message to the subject they are being deleted...
I'm not sure what you mean.
>
> śr., 5 kwi 2023 o 00:10 Piotr Łobacz <
pio.l...@gmail.com> napisał(a):
>
> Hi Alex thanks for your quick response,
> I have run it with -V4 for debuging I have also applied
> verification of extract_flags being set and the output looks like
> this:
>
> root@681efe99d9ed:/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/welotec-base-image-1.0#
> opkg install --nodeps -o
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs
> -V4 aziotctl_1.4.3.0+cfa39b58ec-r0_core2-64.ipk
> opkg_conf_parse_file: Loading conf file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs//etc/opkg/arch.conf.
> opkg_conf_parse_file: Supported arch all priority (1)
> opkg_conf_parse_file: Supported arch any priority (6)
> opkg_conf_parse_file: Supported arch noarch priority (11)
> opkg_conf_parse_file: Supported arch x86_64 priority (16)
> opkg_conf_parse_file: Supported arch core2-64 priority (21)
> opkg_conf_parse_file: Supported arch eg600 priority (26)
> opkg_conf_parse_file: Loading conf file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs//etc/opkg/opkg.conf.
> pkg_hash_load_feeds:
> pkg_hash_load_status_files:
> opkg_install_cmd: aziotctl_1.4.3.0+cfa39b58ec-r0_core2-64.ipk
> opkg_prepare_file_for_install: Package aziotctl provided by file
> 'aziotctl_1.4.3.0+cfa39b58ec-r0_core2-64.ipk'.
> pkg_vec_insert_merge: Adding new pkg=aziotctl
> version=1.4.3.0+cfa39b58ec arch=core2-64.
> pkg_info_preinstall_check: Updating file owner list.
> libsolv_solver_set_arch_policy: libsolv arch policy:
> eg600>core2-64>x86_64>noarch>any>all
> Package marked for install: aziotctl - 1.4.3.0+cfa39b58ec-r0
> Installing aziotctl (1.4.3.0+cfa39b58ec) on root
> opkg_install_pkg: Calling pkg_arch_supported.
> pkg_arch_supported: Arch core2-64 (priority 21) supported for pkg
> aziotctl.
> print_paths: Extracting '/tmp/opkg-L1JopR/aziotctl-u0byle/control'.
> print_paths: Extracting '/tmp/opkg-L1JopR/aziotctl-u0byle/preinst'.
> ar->extract_flags: 255
> update_file_ownership: update_file_ownership: new_pkg=aziotctl
> wants file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/etc/,
> from owner=<NULL>
> update_file_ownership: update_file_ownership: new_pkg=aziotctl
> wants file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/etc/aziot/,
> from owner=<NULL>
> update_file_ownership: update_file_ownership: new_pkg=aziotctl
> wants file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/etc/aziot/config.toml,
> from owner=<NULL>
> update_file_ownership: update_file_ownership: new_pkg=aziotctl
> wants file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/usr/,
> from owner=<NULL>
> update_file_ownership: update_file_ownership: new_pkg=aziotctl
> wants file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/usr/bin/,
> from owner=<NULL>
> update_file_ownership: update_file_ownership: new_pkg=aziotctl
> wants file
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/usr/bin/aziotctl,
> from owner=<NULL>
> pkg_run_script: Offline root mode: not running aziotctl.preinst.
> ar->extract_flags: 255
> opkg_install_pkg: Installing maintainer scripts.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs//var/lib/opkg/info/aziotctl.control'.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs//var/lib/opkg/info/aziotctl.preinst'.
> opkg_install_pkg: Installing data files for aziotctl.
> install_data_files: Extracting data files to
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/.
> ar->extract_flags: 255
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/etc/'.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/etc/aziot/'.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/etc/aziot/config.toml'.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/usr/'.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/usr/bin/'.
> print_paths: Extracting
> '/work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs/usr/bin/aziotctl'.
> install_data_files: Calling pkg_write_filelist.
> pkg_write_filelist: Creating
> /work/build/tmp-glibc/work/eg600-WelotecGmbH-linux/welotec-base-image/1.0-r0/rootfs//var/lib/opkg/info/aziotctl.list
> file for pkg aziotctl.
> ar->extract_flags: 255
> opkg_install_pkg: Resolving conf files for aziotctl
> opkg_install_pkg: pkg=aziotctl old_state_flag=10 state_flag=0
> opkg_configure_packages: Offline root mode: not configuring
> unpacked packages.
> write_status_files_if_changed: Writing status file.
> pkg_write_changed_filelists: Saving changed filelists.
> hash_table: pkg-hash, 24576 bytes
> n_buckets=1024, n_elements=11, n_collisions=0
> max_bucket_len=0, n_used_buckets=11, ave_bucket_len=1.00
> n_hits=2, n_misses=13
> hash_table: file-hash, 24576 bytes
> n_buckets=1024, n_elements=6, n_collisions=0
> max_bucket_len=0, n_used_buckets=6, ave_bucket_len=1.00
> n_hits=2, n_misses=12
> hash_table: obs-file-hash, 1536 bytes
> n_buckets=64, n_elements=0, n_collisions=0
> max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
> n_hits=0, n_misses=6
>
> As you can see extract_flags are 255 so I am absolutely sure that
> they are set properly ARCHIVE_EXTRACT_ACL, ARCHIVE_EXTRACT_FFLAGS
> and ARCHIVE_EXTRACT_XATTR attributes.
>
> IMHO this is really odd I do not see even this warning you have
> given. Additionally as i said calling *ar -x
> aziotctl_1.4.3.0+cfa39b58ec-r0_core2-64.ipk* and than calling *tar
> --acls --xattrs -xpp data.tar.xz -C rootfs* works.
>
> BR
> Piotr
> <
https://urldefense.com/v3/__https://git.yoctoproject.org/opkg/tree/libopkg/opkg_archive.c*n373__;Iw!!FbZ0ZwI3Qg!uSi6BqMd5SzZ6yqJUXgb-0TmiV_Hk2JTJMfSi5oWpvH8W3RzaqOYAbfsiG26gCLideiQtorEa5cnwujzgPQ$>
>
> On 4/4/23 09:59, Piotr Łobacz wrote:
> > OK I have verified that going to devshell for my yocto image
> recipe
> > and extracting this particular ipk package, which has these
> ACLs
> > preserved with *ar -x package.ipk* and than calling *tar --acls
> > --xattrs -xpp data.tar.xz -C rootfs* works.
> >
> > I have also verified the *opkg install -o / package.ipk*
> command on
> > the dedicated device and it does work either.
> >
> > I double checked the opkg-native code and it has my patch
> applied so I
> > really do not know what happens there. Any ideas?
> > wtorek, 4 kwietnia 2023 o 02:10:50 UTC+2 Piotr Łobacz
> napisał(a):
> >
> > Hi team, I'm recently dealing with turning on support
> for acls as
> > libarchive already has it and I have also discovered
> that there
> > is already commented code in
> >
>
https://git.yoctoproject.org/opkg/tree/libopkg/opkg_archive.c#n909
> <
https://urldefense.com/v3/__https://git.yoctoproject.org/opkg/tree/libopkg/opkg_archive.c*n909__;Iw!!FbZ0ZwI3Qg!uSi6BqMd5SzZ6yqJUXgb-0TmiV_Hk2JTJMfSi5oWpvH8W3RzaqOYAbfsiG26gCLideiQtorEa5cnr1pADjg$>
> <
https://urldefense.com/v3/__https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/ipk/__init__.py*n368__;Iw!!FbZ0ZwI3Qg!uSi6BqMd5SzZ6yqJUXgb-0TmiV_Hk2JTJMfSi5oWpvH8W3RzaqOYAbfsiG26gCLideiQtorEa5cn-UfHbe8$>
> <mailto:
opkg-devel%2Bunsu...@googlegroups.com>.
> <
https://urldefense.com/v3/__https://groups.google.com/d/msgid/opkg-devel/71fe2abe-01db-459e-b755-c8c934f579abn*40googlegroups.com__;JQ!!FbZ0ZwI3Qg!uSi6BqMd5SzZ6yqJUXgb-0TmiV_Hk2JTJMfSi5oWpvH8W3RzaqOYAbfsiG26gCLideiQtorEa5cnekGUq3c$>
>
> >
> <
https://urldefense.com/v3/__https://groups.google.com/d/msgid/opkg-devel/71fe2abe-01db-459e-b755-c8c934f579abn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!FbZ0ZwI3Qg!vkxMexF2VxZOP-KnG8Bo-4GUU9z4v9bsMeEuzM_CByCLL-0AmCQl7izjQ8FdICfHCvWoHKpZKhes_8JzGYw$