From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 13 Oct 2025 16:12:55 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v8JIF-007Oi2-0n for lore@lore.pengutronix.de; Mon, 13 Oct 2025 16:12:55 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1v8JIE-0000af-V7; Mon, 13 Oct 2025 16:12:54 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1v8JI1-0000aE-1Z; Mon, 13 Oct 2025 16:12:41 +0200 From: =?UTF-8?q?Sven=20P=C3=BCschel?= To: ptxdist@pengutronix.de Date: Mon, 13 Oct 2025 16:12:13 +0200 Message-ID: <20251013141237.2372882-1-s.pueschel@pengutronix.de> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 1/2] libsolv: New package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Sven=20P=C3=BCschel?= Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false libsolv is a package dependency solving library used by some package managers. Signed-off-by: Sven Püschel --- rules/host-libsolv.in | 6 +++ rules/host-libsolv.make | 14 +++++++ rules/libsolv.in | 8 ++++ rules/libsolv.make | 93 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 rules/host-libsolv.in create mode 100644 rules/host-libsolv.make create mode 100644 rules/libsolv.in create mode 100644 rules/libsolv.make diff --git a/rules/host-libsolv.in b/rules/host-libsolv.in new file mode 100644 index 000000000..1b3f57fc4 --- /dev/null +++ b/rules/host-libsolv.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt + +config HOST_LIBSOLV + tristate + select HOST_CMAKE + default y if ALLYES diff --git a/rules/host-libsolv.make b/rules/host-libsolv.make new file mode 100644 index 000000000..cd938bbe6 --- /dev/null +++ b/rules/host-libsolv.make @@ -0,0 +1,14 @@ +# -*-makefile-*- +# +# Copyright (C) 2025 by Sven Püschel +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_LIBSOLV) += host-libsolv + +# vim: syntax=make diff --git a/rules/libsolv.in b/rules/libsolv.in new file mode 100644 index 000000000..998557499 --- /dev/null +++ b/rules/libsolv.in @@ -0,0 +1,8 @@ +## SECTION=system_libraries + +menuconfig LIBSOLV + tristate + select HOST_CMAKE + prompt "libsolv" + help + Package dependency solver library diff --git a/rules/libsolv.make b/rules/libsolv.make new file mode 100644 index 000000000..7381d01bf --- /dev/null +++ b/rules/libsolv.make @@ -0,0 +1,93 @@ +# -*-makefile-*- +# +# Copyright (C) 2025 by Sven Püschel +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBSOLV) += libsolv + +# +# Paths and names +# +LIBSOLV_VERSION := 0.7.35 +LIBSOLV_MD5 := 442f8283a03bae0b0591536a9aac4c29 +LIBSOLV := libsolv-$(LIBSOLV_VERSION) +LIBSOLV_SUFFIX := tar.gz +LIBSOLV_URL := https://github.com/openSUSE/libsolv/archive/$(LIBSOLV_VERSION)/$(LIBSOLV).$(LIBSOLV_SUFFIX) +LIBSOLV_SOURCE := $(SRCDIR)/$(LIBSOLV).$(LIBSOLV_SUFFIX) +LIBSOLV_DIR := $(BUILDDIR)/$(LIBSOLV) +LIBSOLV_LICENSE := BSD-3-Clause +LIBSOLV_LICENSE_FILES := \ + file://LICENSE.BSD;md5=62272bd11c97396d4aaf1c41bc11f7d8 \ + file://src/solver.c;startline=1;endline=6;md5=25bead0f383354e6ccfb31ebf9ca8be4 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBSOLV_CONF_TOOL := cmake +LIBSOLV_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DDISABLE_SHARED=OFF \ + -DENABLE_APK=OFF \ + -DENABLE_APPDATA=OFF \ + -DENABLE_ARCHREPO=OFF \ + -DENABLE_BZIP2_COMPRESSION=OFF \ + -DENABLE_COMPS=OFF \ + -DENABLE_CONDA=OFF \ + -DENABLE_CUDFREPO=OFF \ + -DENABLE_DEBIAN=OFF \ + -DENABLE_HAIKU=OFF \ + -DENABLE_HELIXREPO=OFF \ + -DENABLE_LUA=OFF \ + -DENABLE_LZMA_COMPRESSION=OFF \ + -DENABLE_MDKREPO=OFF \ + -DENABLE_PERL=OFF \ + -DENABLE_PUBKEY=OFF \ + -DENABLE_PYTHON=OFF \ + -DENABLE_RPMDB=OFF \ + -DENABLE_RPMDB_BDB=OFF \ + -DENABLE_RPMDB_BYRPMHEADER=OFF \ + -DENABLE_RPMDB_LIBRPM=OFF \ + -DENABLE_RPMMD=OFF \ + -DENABLE_RPMPKG=OFF \ + -DENABLE_RPMPKG_LIBRPM=OFF \ + -DENABLE_RUBY=OFF \ + -DENABLE_STATIC=OFF \ + -DENABLE_STATIC_BINDINGS=OFF \ + -DENABLE_STATIC_TOOLS=OFF \ + -DENABLE_SUSEREPO=OFF \ + -DENABLE_TCL=OFF \ + -DENABLE_ZCHUNK_COMPRESSION=OFF \ + -DENABLE_ZSTD_COMPRESSION=OFF \ + -DMULTI_SEMANTICS=OFF \ + -DUSE_VENDORDIRS=OFF \ + -DWITHOUT_COOKIEOPEN=OFF \ + -DWITH_LIBXML2=OFF \ + -DWITH_SYSTEM_ZCHUNK=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libsolv.targetinstall: + @$(call targetinfo) + + @$(call install_init, libsolv) + @$(call install_fixup, libsolv,PRIORITY,optional) + @$(call install_fixup, libsolv,SECTION,base) + @$(call install_fixup, libsolv,AUTHOR,"Sven Püschel ") + @$(call install_fixup, libsolv,DESCRIPTION,missing) + + @$(call install_lib, libsolv, 0, 0, 0644, libsolv) + + @$(call install_finish, libsolv) + + @$(call touch) + +# vim: syntax=make -- 2.47.3