Skip to contentSkip to conversation

libzip: depend on !BR2_STATIC_LIBS

PATCH Superseded Bartosz Golaszewski 3 participants 3 messages Jul 4, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libzip: depend on !BR2_STATIC_LIBS

Since version 1.2.0 libzip requires dynamic library capabilities.

---
 package/libzip/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/libzip/Config.in +4 -0
index 54de9e5..0414186 100644
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBZIP
 	bool "libzip"
+	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_ZLIB
 	help
 	  C library for reading, creating, and modifying zip archives. This
 	  package also contains zipcmp, ziptorrent and zipmerge utilities.
 
 	  http://www.nih.at/libzip/
+
+comment "libzip needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 libzip: depend on !BR2_STATIC_LIBS

Hi Bartosz,

Quoted 13 lines · Bartosz Golaszewski

Since version 1.2.0 libzip requires dynamic library capabilities.

---
 package/libzip/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/libzip/Config.in +0 -0
index 54de9e5..0414186 100644

package/libzip/Config.in line 3

Quoted 3 lines
package/libzip/Config.in +1 -0
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBZIP
 	bool "libzip"
+	depends on !BR2_STATIC_LIBS

You need to propagate dependencies to packages that select BR2_PACKAGE_LIBZIP, and their reverse dependencies, recursively. In this case libsigrok, sigrok-cli, and pulseview are affected.

baruch

Quoted 9 lines
package/libzip/Config.in +3 -0
 	select BR2_PACKAGE_ZLIB
 	help
 	  C library for reading, creating, and modifying zip archives. This
 	  package also contains zipcmp, ziptorrent and zipmerge utilities.
 
 	  http://www.nih.at/libzip/
+
+comment "libzip needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 libzip: depend on !BR2_STATIC_LIBS

Quoted 11 lines · Baruch Siach

Hi Bartosz,

Quoted 8 lines · Bartosz Golaszewski

Since version 1.2.0 libzip requires dynamic library capabilities.

---
 package/libzip/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
Quoted 12 lines

package/libzip/Config.in line 3

Quoted 8 lines
package/libzip/Config.in +1 -0
index 54de9e5..0414186 100644
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBZIP
 	bool "libzip"
+	depends on !BR2_STATIC_LIBS

You need to propagate dependencies to packages that select BR2_PACKAGE_LIBZIP, and their reverse dependencies, recursively. In this case libsigrok, sigrok-cli, and pulseview are affected.

Also, we usually put the reason in a comment, in this case:

depends on !BR2_STATIC_LIBS # dlsym()

Regards,
Arnout

Quoted 13 lines

baruch

Quoted 9 lines
package/libzip/Config.in +3 -0
 	select BR2_PACKAGE_ZLIB
 	help
 	  C library for reading, creating, and modifying zip archives. This
 	  package also contains zipcmp, ziptorrent and zipmerge utilities.
 
 	  http://www.nih.at/libzip/
+
+comment "libzip needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF