summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-06-30 15:44:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-03 10:40:17 +0100
commit83fb170a0933a397d9a24445e2ca3fb3908ddc21 (patch)
tree2310bfc3d364174ff7c4f9654a3bd7f9bf117ed9 /meta
parent2d900c3061e1215b85cc41d6e0de8c196c4c85c2 (diff)
downloadpoky-83fb170a0933a397d9a24445e2ca3fb3908ddc21.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: 12539d529c6af3d4a56ff4f1e1420e7e4d169804) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 be059995e7..892233054b 100644
--- a/meta/recipes-extended/mingetty/mingetty_1.08.bb
+++ b/meta/recipes-extended/mingetty/mingetty_1.08.bb
@@ -15,7 +15,7 @@ EXTRA_OEMAKE = "CC='${CC}' \
15 CFLAGS='${CFLAGS} -D_GNU_SOURCE'" 15 CFLAGS='${CFLAGS} -D_GNU_SOURCE'"
16 16
17do_install(){ 17do_install(){
18 sed -i -e "s;SBINDIR=/sbin;SBINDIR=$base_sbindir;" ${S}/Makefile 18 sed -i -e "/^SBINDIR=/c SBINDIR=$base_sbindir" ${S}/Makefile
19 install -d ${D}${mandir}/man8 ${D}/${base_sbindir} 19 install -d ${D}${mandir}/man8 ${D}/${base_sbindir}
20 oe_runmake install DESTDIR=${D} 20 oe_runmake install DESTDIR=${D}
21} 21}