Skip to contentSkip to conversation

package/shadow: fix libsemanage dependency

PATCH Applied Fabrice Fontaine 3 participants 4 messages Mar 18, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/shadow: fix libsemanage dependency

Fix the following build failure raised since the addition of the package in commit f78c5cb5cae93a9e63dad4361d78e1787759382f:

Makefile:576: *** libsemanage is in the dependency chain of shadow that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in. Stop.

Fixes:
- http://autobuild.buildroot.org/results/e528e07874815d7f1cb951084ec985d76fe22d2e

---
 package/shadow/shadow.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/shadow/shadow.mk +1 -1
index d8f913a648..4bc3cce037 100644
@@ -87,7 +87,7 @@ else
 SHADOW_CONF_OPTS += --without-libcrack
 endif
 
-ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+ifeq ($(BR2_PACKAGE_LIBSELINUX)$(BR2_PACKAGE_LIBSEMANAGE),yy)
 SHADOW_CONF_OPTS += --with-selinux
 SHADOW_DEPENDENCIES += libselinux libsemanage
 else
Signature · 6 lines
2.39.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Frabrice,
thanks for the fix. The patch looks good for me.

Besides that, should I not get an email if a build fails in a package, whom I am the developer in DEVELOPERS file?

Thanks,
Raphael Pavlidis

18.03.2023 13:30:13 Fabrice Fontaine <[email protected]>:

Quoted 23 lines

Fix the following build failure raised since the addition of the package in commit f78c5cb5cae93a9e63dad4361d78e1787759382f:

Makefile:576: *** libsemanage is in the dependency chain of shadow that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in.  Stop.

Fixes:
- http://autobuild.buildroot.org/results/e528e07874815d7f1cb951084ec985d76fe22d2e

---
package/shadow/shadow.mk | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
package/shadow/shadow.mk +0 -0
index d8f913a648..4bc3cce037 100644
@@ -87,7 +87,7 @@ else

SHADOW_CONF_OPTS += --without-libcrack
endif

package/shadow/shadow.mk +1 -1
-ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+ifeq ($(BR2_PACKAGE_LIBSELINUX)$(BR2_PACKAGE_LIBSEMANAGE),yy)
Quoted 5 lines

SHADOW_CONF_OPTS += --with-selinux
SHADOW_DEPENDENCIES += libselinux libsemanage
else

Signature · 1 line
2.39.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hello Raphael,

Quoted 2 lines · On Sat, 18 Mar 2023 18:52:27 +0100 (GMT+01:00) Raphael Pavlidis…

Besides that, should I not get an email if a build fails in a package, whom I am the developer in DEVELOPERS file?

In general, yes. Except here the failure (see
http://autobuild.buildroot.org/results/e528e07874815d7f1cb951084ec985d76fe22d2e/build-end.log)
looks like this:

make: Entering directory '/tmp/instance-11/buildroot'
Makefile:576: *** libsemanage is in the dependency chain of shadow that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in. Stop.
make: Leaving directory '/tmp/instance-11/buildroot'

and the autobuild script does not have logic to interpret that as "shadow has an issue", so this build failure is classified as having an "unknown" failure reason.

The autobuild script is able to detect the failing package when the end of the error log looks like this:

make[1]: Leaving directory '/home/thomas/autobuild/instance-1/output-1/build/bluez5_utils-5.66'
make: *** [package/pkg-generic.mk:293: /home/thomas/autobuild/instance-1/output-1/build/bluez5_utils-5.66/.stamp_built] Error 2
make: Leaving directory '/home/thomas/autobuild/instance-1/buildroot'

Of course, this logic could be improved to also understand the "XYZ is in the dependency chain of ABC...". If you're curious, the logic is at
https://gitlab.com/buildroot.org/buildroot-test/-/blob/master/web/import.inc.php#L244.
WARNING: ugly PHP code behind this link, make sure to wear appropriate eye protection equipment before clicking the link and reading the code.

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Fabrice Fontaine
Quoted 5 lines · On Sat, 18 Mar 2023 13:30:10 +0100 Fabrice Fontaine…

Fix the following build failure raised since the addition of the package in commit f78c5cb5cae93a9e63dad4361d78e1787759382f:

Makefile:576: *** libsemanage is in the dependency chain of shadow that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in. Stop.

Quoted 7 lines

Fixes:
- http://autobuild.buildroot.org/results/e528e07874815d7f1cb951084ec985d76fe22d2e

---
 package/shadow/shadow.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot