summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-07-02 09:51:23 +0800
committerSteve Sakoman <steve@sakoman.com>2025-07-17 13:57:58 -0700
commita98403f2bf5b539b80d1171b1deacaa4fa6f81f5 (patch)
treef7ac6c481f1180a8459ddc7ffb14c2309c6ab3e9
parent639a93a76b71955c750af6f84a87ca7af712996d (diff)
downloadpoky-a98403f2bf5b539b80d1171b1deacaa4fa6f81f5.tar.gz
mingetty: fix do_package warning
Reproduce steps(Under the same project dir): 1. enable DISTRO_FEATURES usrmerge, bitbake mingetty 2. disable DISTRO_FEATURES usrmerge, bitbake mingetty Result in step 2: 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 In step1, Line SBINDIR=/sbin is replaced to SBINDIR=/usr/sbin, in step2, since do_fetch does not rerun, Makefile still has SBINDIR=/usr/sbin, so sed not works as expected, SBINDIR still equal to /usr/sbin when disable usrmerge. And cause above two warnings. (From OE-Core rev: 3efb82f1f51cbfa04f74626531615526e10bd2b2) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-extended/mingetty/mingetty_1.08.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/mingetty/mingetty_1.08.bb b/meta/recipes-extended/mingetty/mingetty_1.08.bb
index 00d2564257..5aa19f6c8f 100644
--- a/meta/recipes-extended/mingetty/mingetty_1.08.bb
+++ b/meta/recipes-extended/mingetty/mingetty_1.08.bb
@@ -16,7 +16,7 @@ EXTRA_OEMAKE = "CC='${CC}' \
16 CFLAGS='${CFLAGS} -D_GNU_SOURCE'" 16 CFLAGS='${CFLAGS} -D_GNU_SOURCE'"
17 17
18do_install(){ 18do_install(){
19 sed -i -e "s;SBINDIR=/sbin;SBINDIR=$base_sbindir;" ${S}/Makefile 19 sed -i -e "/^SBINDIR=/c SBINDIR=$base_sbindir" ${S}/Makefile
20 install -d ${D}${mandir}/man8 ${D}/${base_sbindir} 20 install -d ${D}${mandir}/man8 ${D}/${base_sbindir}
21 oe_runmake install DESTDIR=${D} 21 oe_runmake install DESTDIR=${D}
22} 22}