* [Buildroot] [PATCH 1/1] package/zlib-ng: fix version in zlib.pc when building statically
@ 2022-05-31 19:10 Fabrice Fontaine
2022-06-01 12:29 ` Thomas Petazzoni via buildroot
2022-06-07 12:21 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-05-31 19:10 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following static build failure with transmission:
checking for ZLIB... configure: error: Package requirements (zlib >= 1.2.3) were not met:
Package dependency requirement 'zlib >= 1.2.3' could not be satisfied.
Package 'zlib' has version '', required version is '>= 1.2.3'
Fixes:
- http://autobuild.buildroot.org/results/b3b882482f517726e5c780ba4c37818bd379df82
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...ix-version-in-zlib.pc-when-building-.patch | 53 +++++++++++++++++++
1 file changed, 53 insertions(+)
create mode 100644 package/zlib-ng/0002-CMakeLists.txt-fix-version-in-zlib.pc-when-building-.patch
diff --git a/package/zlib-ng/0002-CMakeLists.txt-fix-version-in-zlib.pc-when-building-.patch b/package/zlib-ng/0002-CMakeLists.txt-fix-version-in-zlib.pc-when-building-.patch
new file mode 100644
index 0000000000..749c45ddca
--- /dev/null
+++ b/package/zlib-ng/0002-CMakeLists.txt-fix-version-in-zlib.pc-when-building-.patch
@@ -0,0 +1,53 @@
+From 9fcc446306f27eb253545540ce28403874b899fa Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 27 May 2022 23:25:21 +0200
+Subject: [PATCH] CMakeLists.txt: fix version in zlib.pc when building
+ statically
+
+When building statically (i.e. with BUILD_SHARED_LIBS=OFF),
+ZLIB_FULL_VERSION is not set resulting in an empty version in zlib.pc
+and the following build failure with transmission:
+
+checking for ZLIB... configure: error: Package requirements (zlib >= 1.2.3) were not met:
+
+Package dependency requirement 'zlib >= 1.2.3' could not be satisfied.
+Package 'zlib' has version '', required version is '>= 1.2.3'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/b3b882482f517726e5c780ba4c37818bd379df82
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/zlib-ng/zlib-ng/pull/1278]
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a62a95e..6a26d59 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -150,8 +150,10 @@ if(ZLIB_COMPAT)
+ add_definitions(-DZLIB_COMPAT)
+ set(WITH_GZFILEOP ON)
+ set(SUFFIX "")
++ set(ZLIB_FULL_VERSION ${ZLIB_HEADER_VERSION}.zlib-ng)
+ else()
+ set(SUFFIX "-ng")
++ set(ZLIB_FULL_VERSION ${ZLIBNG_HEADER_VERSION})
+ endif()
+
+ if(WITH_GZFILEOP)
+@@ -1068,10 +1070,8 @@ if(NOT DEFINED BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
+ set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
+
+ if(ZLIB_COMPAT)
+- set(ZLIB_FULL_VERSION ${ZLIB_HEADER_VERSION}.zlib-ng)
+ set_target_properties(zlib PROPERTIES SOVERSION 1)
+ else()
+- set(ZLIB_FULL_VERSION ${ZLIBNG_HEADER_VERSION})
+ set_target_properties(zlib PROPERTIES SOVERSION 2)
+ endif()
+
+--
+2.35.1
+
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/zlib-ng: fix version in zlib.pc when building statically
2022-05-31 19:10 [Buildroot] [PATCH 1/1] package/zlib-ng: fix version in zlib.pc when building statically Fabrice Fontaine
@ 2022-06-01 12:29 ` Thomas Petazzoni via buildroot
2022-06-07 12:21 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-06-01 12:29 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Tue, 31 May 2022 21:10:36 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following static build failure with transmission:
>
> checking for ZLIB... configure: error: Package requirements (zlib >= 1.2.3) were not met:
>
> Package dependency requirement 'zlib >= 1.2.3' could not be satisfied.
> Package 'zlib' has version '', required version is '>= 1.2.3'
>
> Fixes:
> - http://autobuild.buildroot.org/results/b3b882482f517726e5c780ba4c37818bd379df82
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...ix-version-in-zlib.pc-when-building-.patch | 53 +++++++++++++++++++
> 1 file changed, 53 insertions(+)
> create mode 100644 package/zlib-ng/0002-CMakeLists.txt-fix-version-in-zlib.pc-when-building-.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/zlib-ng: fix version in zlib.pc when building statically
2022-05-31 19:10 [Buildroot] [PATCH 1/1] package/zlib-ng: fix version in zlib.pc when building statically Fabrice Fontaine
2022-06-01 12:29 ` Thomas Petazzoni via buildroot
@ 2022-06-07 12:21 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-06-07 12:21 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following static build failure with transmission:
> checking for ZLIB... configure: error: Package requirements (zlib >= 1.2.3) were not met:
> Package dependency requirement 'zlib >= 1.2.3' could not be satisfied.
> Package 'zlib' has version '', required version is '>= 1.2.3'
> Fixes:
> - http://autobuild.buildroot.org/results/b3b882482f517726e5c780ba4c37818bd379df82
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-07 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-31 19:10 [Buildroot] [PATCH 1/1] package/zlib-ng: fix version in zlib.pc when building statically Fabrice Fontaine
2022-06-01 12:29 ` Thomas Petazzoni via buildroot
2022-06-07 12:21 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox