Skip to contentSkip to conversation

package/sane-airscan: propagate dependencies of selects

PATCH In review Thomas Petazzoni via buildroot 2 participants 2 messages May 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sane-airscan: propagate dependencies of selects

When the sane-airscan package was introduced in f78280bf262ceb1c1abbdade9de77fcc4add74ae, the depends on of options that is selects were not properly accounted for, so let's fix this.

Fixes:

WARNING: unmet direct dependencies detected for BR2_PACKAGE_GNUTLS
Depends on [n]: !BR2_STATIC_LIBS [=n] && BR2_USE_WCHAR [=n] Selected by [y]:
- BR2_PACKAGE_SANE_AIRSCAN [=y]

---
 package/sane-airscan/Config.in | 9 +++++++++
 1 file changed, 9 insertions(+)
package/sane-airscan/Config.in +9 -0
index f35e244ea6..b7cf224741 100644
@@ -1,5 +1,9 @@
 config BR2_PACKAGE_SANE_AIRSCAN
 	bool "sane-airscan"
+	depends on !BR2_STATIC_LIBS # avahi, gnutls, sane-backends
+	depends on BR2_TOOLCHAIN_HAS_THREADS # avahi, dbus
+	depends on BR2_USE_WCHAR # avahi, gnutls
+	depends on BR2_USE_MMU # dbus, sane-backends
 	select BR2_PACKAGE_AVAHI
 	select BR2_PACKAGE_AVAHI_DAEMON # needed to get avahi-client
 	select BR2_PACKAGE_DBUS # needed by avahi to get avahi-client
@@ -18,3 +22,8 @@ config BR2_PACKAGE_SANE_AIRSCAN
 	  support "driverless" scanning.
 
 	  https://github.com/alexpevzner/sane-airscan
+
+comment "sane-airscan needs a toolchain w/ wchar, dynamic library, threads"
+	depends on BR2_USE_MMU
+	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
+		!BR2_TOOLCHAIN_HAS_THREADS
Signature · 6 lines
2.49.0

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

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

When the sane-airscan package was introduced in f78280bf262ceb1c1abbdade9de77fcc4add74ae, the depends on of options that is selects were not properly accounted for, so let's fix this.

Quoted 8 lines

Fixes:

WARNING: unmet direct dependencies detected for BR2_PACKAGE_GNUTLS
Depends on [n]: !BR2_STATIC_LIBS [=n] && BR2_USE_WCHAR [=n] Selected by [y]:
- BR2_PACKAGE_SANE_AIRSCAN [=y]

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot