Bug 14211 - nativesdk-shadow And nativesdk-libglib-2.0-0 fail
Summary: nativesdk-shadow And nativesdk-libglib-2.0-0 fail
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.3
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-02-01 19:25 UTC by pharaon2502
Modified: 2021-04-15 14:31 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Log from sdk from populate step (77.60 KB, application/octet-stream)
2021-02-01 19:25 UTC, pharaon2502
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pharaon2502 2021-02-01 19:25:28 UTC
Created attachment 4768 [details]
Log from sdk from populate step

dpkg: error processing package nativesdk-shadow (--configure):
 installed nativesdk-shadow package post-installation script subprocess returned error exit status 1

work/vs_icx500-poky-linux/vs-icx500-container-image/1.0-r0/sdk/image/var/lib/dpkg/info/nativesdk-libglib-2.0-0.postinst: line 4: /postinst_intercept: No such file or directory
dpkg: error processing package nativesdk-libglib-2.0-0 (--configure):
 installed nativesdk-libglib-2.0-0 package post-installation script subprocess returned error exit status 127


------
nativesdk-shadow.postinst
------------
#!/bin/sh
set -e
if [ "x$D" != "x" ]; then
    $INTERCEPT_DIR/postinst_intercept update_gio_module_cache nativesdk-libglib-2.0-0 \
            mlprefix=nativesdk- \
            binprefix=nativesdk- \
            libdir=/opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/lib \
            libexecdir=/opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/libexec \
            base_libdir=/opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/lib \
            bindir=/opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin
else
    /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/libexec/nativesdk-gio-querymodules /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/lib/gio/modules/
fi
if [ x"$D" = "x" ]; then
	if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
fi


------
nativesdk-shadow.postinst
------------
#!/bin/sh
set -e
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/passwd passwd /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/passwd.shadow 200
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/chfn chfn /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/chfn.shadow 200
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/chsh chsh /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/chsh.shadow 200
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/chpasswd chpasswd /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/usr/bin/chpasswd.shadow 200
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/sbin/vipw vipw /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/sbin/vipw.shadow 200
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/sbin/vigr vigr /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/sbin/vigr.shadow 200
	update-alternatives --install /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/sbin/nologin nologin /opt/distro-icx500-container-image/3.2.1/sysroots/x86_64-vs_station_sdk-linux/sbin/nologin.shadow 200
Comment 1 pharaon2502 2021-02-02 10:35:51 UTC
First 

------
nativesdk-shadow.postinst
------------
#!/bin/sh
set -e
if [ "x$D" != "x" ]; then
.....



Should be 
------
nativesdk-libglib-2.0-0.postinst
------------


btw, tested also for core-image-minimal, same errors.
Tested for qoriq-arm64, imx-arm64 and imx-arm
Comment 2 Randy MacLeod 2021-02-04 15:47:14 UTC
Our dppk support is in need of attention so you might switch to rpm and do another full build to build the sdk (it shouldn't matter for the sdk) even if you're using dpkg on target.
Comment 3 pharaon2502 2021-02-05 08:40:25 UTC
I had that solution 1 year ago, just a separate distro which sets it to IPK package manager... but then dpkg problems got solved... But I guess I will revert! thanks!
Comment 4 Ross Burton 2021-04-15 14:31:35 UTC
Reported says the issue has been resolved.