diff mbox series

[1/1] package/opkg: add optional libsolv dependency

Message ID 20241104211536.640566-1-ju.o@free.fr
State New
Headers show
Series [1/1] package/opkg: add optional libsolv dependency | expand

Commit Message

Julien Olivain Nov. 4, 2024, 9:15 p.m. UTC
opkg configure script supports the --with-libsolv option since v0.3.2.
See [1].

Note that the opkg internal statisfaction solver is beeing deprecated as
of v0.7.0. See the note in changelog [2].

[1] https://git.yoctoproject.org/opkg/commit?id=bc2d3413e7dd61dd0001cc30b7785880c26eada4
[2] https://git.yoctoproject.org/opkg/tree/CHANGELOG.md?h=v0.7.0#n12

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested (compilation only) at:
https://gitlab.com/jolivain/buildroot/-/pipelines/1526813066
---
 package/opkg/opkg.mk | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/package/opkg/opkg.mk b/package/opkg/opkg.mk
index 0323a49f0b..9daa38c1f1 100644
--- a/package/opkg/opkg.mk
+++ b/package/opkg/opkg.mk
@@ -44,6 +44,13 @@  else
 OPKG_CONF_OPTS += --disable-bzip2
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSOLV),y)
+OPKG_DEPENDENCIES += libsolv
+OPKG_CONF_OPTS += --with-libsolv
+else
+OPKG_CONF_OPTS += --without-libsolv
+endif
+
 ifeq ($(BR2_PACKAGE_LZ4),y)
 OPKG_DEPENDENCIES += lz4
 OPKG_CONF_OPTS += --enable-lz4