]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
mingetty: fix do_package warning
authorChangqing Li <changqing.li@windriver.com>
Mon, 30 Jun 2025 07:44:42 +0000 (15:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2025 09:38:25 +0000 (10:38 +0100)
commit12539d529c6af3d4a56ff4f1e1420e7e4d169804
tree7c1d6ef82c270f9b0844489857b9f850e047c494
parent39f72147ef402bea54a66abf984315c1f93aa141
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.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/mingetty/mingetty_1.08.bb