diff options
Diffstat (limited to 'meta/recipes-extended/libsolv')
3 files changed, 64 insertions, 31 deletions
diff --git a/meta/recipes-extended/libsolv/libsolv/0001-utils-Conside-musl-when-wrapping-qsort_r.patch b/meta/recipes-extended/libsolv/libsolv/0001-utils-Conside-musl-when-wrapping-qsort_r.patch new file mode 100644 index 0000000000..da93a12ed5 --- /dev/null +++ b/meta/recipes-extended/libsolv/libsolv/0001-utils-Conside-musl-when-wrapping-qsort_r.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From e1db3c41fa84391b7ab299f7351f58b413ed2994 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 28 Oct 2021 22:28:45 -0700 | ||
4 | Subject: [PATCH] utils: Conside musl when wrapping qsort_r | ||
5 | |||
6 | musl now has implemented qsort_r, the signature however matches glibc | ||
7 | and not BSD, current check makes it such that it falls into BSD case | ||
8 | when building for musl, which clearly is wrong, therefore instead of | ||
9 | just checking for glibc check for linux to decide which qsort_r | ||
10 | signature to use. This covers both glibc and musl | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | src/util.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/util.c b/src/util.c | ||
20 | index 72426e09..8f29bc5a 100644 | ||
21 | --- a/src/util.c | ||
22 | +++ b/src/util.c | ||
23 | @@ -159,7 +159,7 @@ solv_setcloexec(int fd, int state) | ||
24 | |||
25 | see also: http://sources.redhat.com/ml/libc-alpha/2008-12/msg00003.html | ||
26 | */ | ||
27 | -#if (defined(__GLIBC__) || defined(__NEWLIB__)) && (defined(HAVE_QSORT_R) || defined(HAVE___QSORT_R)) | ||
28 | +#if (defined(__linux__) || defined(__NEWLIB__)) && (defined(HAVE_QSORT_R) || defined(HAVE___QSORT_R)) | ||
29 | |||
30 | void | ||
31 | solv_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *compard) | ||
diff --git a/meta/recipes-extended/libsolv/libsolv_0.7.17.bb b/meta/recipes-extended/libsolv/libsolv_0.7.17.bb deleted file mode 100644 index 8597ea3edb..0000000000 --- a/meta/recipes-extended/libsolv/libsolv_0.7.17.bb +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | SUMMARY = "Library for solving packages and reading repositories" | ||
2 | HOMEPAGE = "https://github.com/openSUSE/libsolv" | ||
3 | BUGTRACKER = "https://github.com/openSUSE/libsolv/issues" | ||
4 | SECTION = "devel" | ||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE.BSD;md5=62272bd11c97396d4aaf1c41bc11f7d8" | ||
7 | |||
8 | DEPENDS = "expat zlib" | ||
9 | |||
10 | SRC_URI = "git://github.com/openSUSE/libsolv.git \ | ||
11 | " | ||
12 | |||
13 | SRCREV = "4bc791c0d235eb14bfe4c5da607206bfdfa6983d" | ||
14 | |||
15 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit cmake | ||
20 | |||
21 | PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGE_CLASSES','package_rpm','rpm','',d)}" | ||
22 | PACKAGECONFIG[rpm] = "-DENABLE_RPMMD=ON -DENABLE_RPMDB=ON -DENABLE_RPMDB_BDB=ON,,rpm" | ||
23 | |||
24 | EXTRA_OECMAKE = "-DMULTI_SEMANTICS=ON -DENABLE_COMPLEX_DEPS=ON" | ||
25 | |||
26 | PACKAGES =+ "${PN}-tools ${PN}ext" | ||
27 | |||
28 | FILES_${PN}-tools = "${bindir}/*" | ||
29 | FILES_${PN}ext = "${libdir}/${PN}ext.so.*" | ||
30 | |||
31 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-extended/libsolv/libsolv_0.7.29.bb b/meta/recipes-extended/libsolv/libsolv_0.7.29.bb new file mode 100644 index 0000000000..ff0bd2d174 --- /dev/null +++ b/meta/recipes-extended/libsolv/libsolv_0.7.29.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | SUMMARY = "Library for solving packages and reading repositories" | ||
2 | DESCRIPTION = "This is libsolv, a free package dependency solver using a satisfiability algorithm for solving packages and reading repositories" | ||
3 | HOMEPAGE = "https://github.com/openSUSE/libsolv" | ||
4 | BUGTRACKER = "https://github.com/openSUSE/libsolv/issues" | ||
5 | SECTION = "devel" | ||
6 | LICENSE = "BSD-3-Clause" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE.BSD;md5=62272bd11c97396d4aaf1c41bc11f7d8" | ||
8 | |||
9 | DEPENDS = "expat zlib zstd" | ||
10 | |||
11 | SRC_URI = "git://github.com/openSUSE/libsolv.git;branch=master;protocol=https \ | ||
12 | file://0001-utils-Conside-musl-when-wrapping-qsort_r.patch \ | ||
13 | " | ||
14 | |||
15 | SRCREV = "9c2b1a84b5a7ce0dc6e74226bdeb9527d6706791" | ||
16 | |||
17 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | inherit cmake | ||
22 | |||
23 | PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGE_CLASSES','package_rpm','rpm','',d)}" | ||
24 | PACKAGECONFIG[rpm] = "-DENABLE_RPMMD=ON -DENABLE_RPMDB=ON,,rpm" | ||
25 | |||
26 | EXTRA_OECMAKE = "-DMULTI_SEMANTICS=ON -DENABLE_COMPLEX_DEPS=ON -DENABLE_ZSTD_COMPRESSION=ON" | ||
27 | |||
28 | PACKAGES =+ "${PN}-tools ${PN}ext" | ||
29 | |||
30 | FILES:${PN}-tools = "${bindir}/*" | ||
31 | FILES:${PN}ext = "${libdir}/${PN}ext.so.*" | ||
32 | |||
33 | BBCLASSEXTEND = "native nativesdk" | ||