mdadm: fix usrmerge install path
PATCH 1/2 mdadm: fix usrmerge install path
From: Mingli Yu <[email protected]>
Update /lib to $nonarch_base_libdir to fix
the below error when usrmerge enabled inDISTRO_FEATURES.
ERROR: mdadm-4.0-r0 do_package_qa: QA Issue: mdadm package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge]
--- meta/recipes-extended/mdadm/mdadm_4.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/mdadm/mdadm_4.0.bb +1 -1
@@ -42,7 +42,7 @@ CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__' do_compile() { # Point to right sbindir - sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" ${S}/Makefile + sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" -e "s;UDEVDIR = /lib;UDEVDIR = $nonarch_base_libdir;" ${S}/Makefile oe_runmake SYSROOT="${STAGING_DIR_TARGET}" }
Signature · 1 line
2.7.4
PATCH 2/2 mingetty: fix usrmerge install path
From: Mingli Yu <[email protected]>
Update /sbin to $base_sbindir to fix the
below warning when usrmerge enabled inDISTRO_FEATURES.
WARNING: mingetty-1.08-r3 do_package: mingetty: NOT adding alternative provide /usr/sbin/getty: /usr/sbin/mingetty does not exist
WARNING: mingetty-1.08-r3 do_package: QA Issue: mingetty: Files/directories were installed but not shipped in any package:
/sbin
/usr/sbin
--- meta/recipes-extended/mingetty/mingetty_1.08.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-extended/mingetty/mingetty_1.08.bb +1 -0
@@ -16,6 +16,7 @@ EXTRA_OEMAKE = "CC='${CC}' \ CFLAGS='${CFLAGS} -D_GNU_SOURCE'" do_install(){ + sed -i -e "s;SBINDIR=/sbin;SBINDIR=$base_sbindir;" ${S}/Makefile install -d ${D}${mandir}/man8 ${D}/${base_sbindir} oe_runmake install DESTDIR=${D} }
Signature · 1 line
2.7.4
Ping.
Thanks,
Quoted 27 lines · On 2018年08月17日 14:27, [email protected] wrote:
From: Mingli Yu <[email protected]>
Update /lib to $nonarch_base_libdir to fix
the below error when usrmerge enabled inDISTRO_FEATURES.ERROR: mdadm-4.0-r0
do_package_qa: QA Issue: mdadm package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge]Signed-off-by Mingli Yu <[email protected]>--- meta/recipes-extended/mdadm/mdadm_4.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-extended/mdadm/mdadm_4.0.bb +1
-1@@ -42,7 +42,7 @@ CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__' do_compile() { # Point to right sbindir - sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" ${S}/Makefile + sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" -e "s;UDEVDIR = /lib;UDEVDIR = $nonarch_base_libdir;" ${S}/Makefile oe_runmake SYSROOT="${STAGING_DIR_TARGET}" }