From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Sven Püschel" <s.pueschel@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] libsolv: New package
Date: Fri, 17 Oct 2025 10:21:00 +0200 [thread overview]
Message-ID: <20251017082100.3112920-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20251013141237.2372882-1-s.pueschel@pengutronix.de>
Thanks, applied as e004b8e7dddbafc8e01a0a2deb91da048efe7d28.
Michael
[sent from post-receive hook]
On Fri, 17 Oct 2025 10:21:00 +0200, Sven Püschel <s.pueschel@pengutronix.de> wrote:
> libsolv is a package dependency solving library used by some
> package managers.
>
> Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
> Message-Id: <20251013141237.2372882-1-s.pueschel@pengutronix.de>
> [mol: add cmake options to host package and enable MULTI_SEMANTICS for
> working opkg]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/host-libsolv.in b/rules/host-libsolv.in
> new file mode 100644
> index 000000000000..1b3f57fc488d
> --- /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 000000000000..cdabbc5e7c87
> --- /dev/null
> +++ b/rules/host-libsolv.make
> @@ -0,0 +1,55 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2025 by Sven Püschel <s.pueschel@pengutronix.de>
> +#
> +# 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
> +
> +HOST_LIBSOLV_CONF_TOOL := cmake
> +HOST_LIBSOLV_CONF_OPT := \
> + $(HOST_CMAKE_OPT) \
> + -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=ON \
> + -DUSE_VENDORDIRS=OFF \
> + -DWITHOUT_COOKIEOPEN=OFF \
> + -DWITH_LIBXML2=OFF \
> + -DWITH_SYSTEM_ZCHUNK=OFF
> +
> +# vim: syntax=make
> diff --git a/rules/libsolv.in b/rules/libsolv.in
> new file mode 100644
> index 000000000000..99855749912d
> --- /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 000000000000..2bfdea36fda3
> --- /dev/null
> +++ b/rules/libsolv.make
> @@ -0,0 +1,93 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2025 by Sven Püschel <s.pueschel@pengutronix.de>
> +#
> +# 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=ON \
> + -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 <s.pueschel@pengutronix.de>")
> + @$(call install_fixup, libsolv,DESCRIPTION,missing)
> +
> + @$(call install_lib, libsolv, 0, 0, 0644, libsolv)
> +
> + @$(call install_finish, libsolv)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
prev parent reply other threads:[~2025-10-17 8:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 14:12 [ptxdist] [PATCH 1/2] " Sven Püschel
2025-10-13 14:12 ` [ptxdist] [PATCH 2/2] opkg: version bump 0.7.0 -> 0.9.0 Sven Püschel
2025-10-17 8:21 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-10-17 8:21 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251017082100.3112920-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=s.pueschel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox