All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/minizip: fix static build of demos with openssl
@ 2020-06-14 16:49 Fabrice Fontaine
  2020-06-18 20:16 ` Thomas Petazzoni
  2020-07-15 20:53 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2020-06-14 16:49 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/2f11b237a3577df55bc1ee139ed4d51f3ee4e08d
 - http://autobuild.buildroot.org/results/b54b625751a45d3b449fffcdfaa06fb9209b4652

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...s.txt-use-pkg-config-to-find-openssl.patch | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 package/minizip/0001-CMakeLists.txt-use-pkg-config-to-find-openssl.patch

diff --git a/package/minizip/0001-CMakeLists.txt-use-pkg-config-to-find-openssl.patch b/package/minizip/0001-CMakeLists.txt-use-pkg-config-to-find-openssl.patch
new file mode 100644
index 0000000000..8b44a17712
--- /dev/null
+++ b/package/minizip/0001-CMakeLists.txt-use-pkg-config-to-find-openssl.patch
@@ -0,0 +1,44 @@
+From 1fdf5da78369305164313610dbb1ec868233ba08 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 14 Jun 2020 14:04:03 +0200
+Subject: [PATCH] CMakeLists.txt: use pkg-config to find openssl
+
+Use pkg-config to find openssl libraries otherwise minizip will fail to
+retrieve openssl static dependencies such as -latomic and build of
+test_cmd will fail on:
+
+[100%] Linking C executable test_cmd
+/home/test/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/8.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /home/test/autobuild/run/instance-3/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(bio_lib.o): in function `BIO_free':
+bio_lib.c:(.text+0x510): undefined reference to `__atomic_fetch_sub_4'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/b54b625751a45d3b449fffcdfaa06fb9209b4652
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/nmoinvaz/minizip/pull/499]
+---
+ CMakeLists.txt | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b789f62..7a81e32 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -140,7 +140,13 @@ endif()
+ 
+ # Check to see if openssl installation is present
+ if(MZ_OPENSSL)
+-    find_package(OpenSSL)
++    find_package(PkgConfig)
++    if(PKGCONFIG_FOUND)
++        pkg_check_modules(OPENSSL openssl)
++    endif()
++    if(NOT OPENSSL_FOUND)
++        find_package(OpenSSL)
++    endif()
+     if (OPENSSL_FOUND)
+         message(STATUS "Using OpenSSL ${OPENSSL_VERSION}")
+ 
+-- 
+2.26.2
+
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/minizip: fix static build of demos with openssl
  2020-06-14 16:49 [Buildroot] [PATCH 1/1] package/minizip: fix static build of demos with openssl Fabrice Fontaine
@ 2020-06-18 20:16 ` Thomas Petazzoni
  2020-07-15 20:53 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-06-18 20:16 UTC (permalink / raw)
  To: buildroot

On Sun, 14 Jun 2020 18:49:25 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/2f11b237a3577df55bc1ee139ed4d51f3ee4e08d
>  - http://autobuild.buildroot.org/results/b54b625751a45d3b449fffcdfaa06fb9209b4652
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...s.txt-use-pkg-config-to-find-openssl.patch | 44 +++++++++++++++++++
>  1 file changed, 44 insertions(+)
>  create mode 100644 package/minizip/0001-CMakeLists.txt-use-pkg-config-to-find-openssl.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/minizip: fix static build of demos with openssl
  2020-06-14 16:49 [Buildroot] [PATCH 1/1] package/minizip: fix static build of demos with openssl Fabrice Fontaine
  2020-06-18 20:16 ` Thomas Petazzoni
@ 2020-07-15 20:53 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-07-15 20:53 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fixes:
 >  - http://autobuild.buildroot.org/results/2f11b237a3577df55bc1ee139ed4d51f3ee4e08d
 >  - http://autobuild.buildroot.org/results/b54b625751a45d3b449fffcdfaa06fb9209b4652

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2020.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-15 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14 16:49 [Buildroot] [PATCH 1/1] package/minizip: fix static build of demos with openssl Fabrice Fontaine
2020-06-18 20:16 ` Thomas Petazzoni
2020-07-15 20:53 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.