Skip to contentSkip to conversation

package/libsolv: new package

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Feb 21, 2023

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=93ce3c1be0753189d6af3ee9968b935037519c25
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Required by micromamba.

[Thomas:
- rework shared/static lib handling
- don't pass ENABLE_CONDA=ON based on BR2_PACKAGE_MICROMAMBA=y as it's weird that a dependency does something different depending on which of its reverse dependencies is enabled]

---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/libsolv/Config.in    |  9 +++++++++
 package/libsolv/libsolv.hash |  3 +++
 package/libsolv/libsolv.mk   | 27 +++++++++++++++++++++++++++
 5 files changed, 41 insertions(+)
DEVELOPERS +1 -0
index 220a326adc..e8ddad71cd 100644
@@ -2788,6 +2788,7 @@ F:	package/most/
 
 N:	TIAN Yuanhao <[email protected]>
 F:	package/cli11/
+F:	package/libsolv/
 F:	package/open-isns/
 F:	package/termcolor/
 F:	package/tl-expected/
package/Config.in +1 -0
index fa0713c311..6ca4c61959 100644
@@ -2085,6 +2085,7 @@ menu "Other"
 	source "package/libshdata/Config.in"
 	source "package/libsigc/Config.in"
 	source "package/libsigsegv/Config.in"
+	source "package/libsolv/Config.in"
 	source "package/libspatialindex/Config.in"
 	source "package/libtalloc/Config.in"
 	source "package/libtasn1/Config.in"
package/libsolv/Config.in new file +9 -0
new file mode 100644
index 0000000000..1415d2bc2b
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBSOLV
+	bool "libsolv"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_ZLIB
+	help
+	  A free package dependency solver using a satisfiability
+	  algorithm.
+
+	  https://github.com/openSUSE/libsolv
package/libsolv/libsolv.hash new file +3 -0
new file mode 100644
index 0000000000..162e46e54d
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  968aef452b5493751fa0168cd58745a77c755e202a43fe8d549d791eb16034d5  libsolv-0.7.22.tar.gz
+sha256  57f15acfb29fbef7749779e096a5885c60b716633e34484a21bb717554c0198f  LICENSE.BSD
package/libsolv/libsolv.mk new file +27 -0
new file mode 100644
index 0000000000..144ce68a83
@@ -0,0 +1,27 @@
+################################################################################
+#
+# libsolv
+#
+################################################################################
+
+LIBSOLV_VERSION = 0.7.22
+LIBSOLV_SITE = $(call github,openSUSE,libsolv,$(LIBSOLV_VERSION))
+LIBSOLV_LICENSE = BSD-3-Clause
+LIBSOLV_LICENSE_FILES = LICENSE.BSD
+LIBSOLV_INSTALL_STAGING = YES
+LIBSOLV_DEPENDENCIES = zlib
+LIBSOLV_CONF_OPTS = -DCMAKE_CXX_COMPILER_FORCED=ON
+
+ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+LIBSOLV_CONF_OPTS += -DENABLE_STATIC=ON
+else
+LIBSOLV_CONF_OPTS += -DDISABLE_STATIC=ON
+endif
+
+ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+LIBSOLV_CONF_OPTS += -DENABLE_SHARED=ON
+else
+LIBSOLV_CONF_OPTS += -DDISABLE_SHARED=ON
+endif
+
+$(eval $(cmake-package))

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