]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bash-completion.bbclass: put bash-completion package to PACKAGE_BEFORE_PN
authorMing Liu <liu.ming50@gmail.com>
Sat, 22 Nov 2025 12:20:13 +0000 (13:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Nov 2025 10:51:16 +0000 (10:51 +0000)
It was observed when FILES:${PN} contains "${sysconfdir}" or
"${datadir}", the bash-completion files wont be installed to
bash-completion package.

Fix it by putting bash-completion package to PACKAGE_BEFORE_PN, this
ensures bash-completion package get the files packaged before PN.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/classes-recipe/bash-completion.bbclass

index b656e76c09ac0fd30ccd6364697d4c90102c0d88..5371d3e625f30f47a66fe9eaf6d8863f593341da 100644 (file)
@@ -6,7 +6,7 @@
 
 DEPENDS:append:class-target = " bash-completion"
 
-PACKAGES += "${PN}-bash-completion"
+PACKAGE_BEFORE_PN += "${PN}-bash-completion"
 
 FILES:${PN}-bash-completion = "${datadir}/bash-completion ${sysconfdir}/bash_completion.d"