Skip to contentSkip to conversation

package/tvheadend: Add optional dependency to libiconv

PATCH New Bernd Kuhls 2 participants 2 messages Jun 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/tvheadend: Add optional dependency to libiconv

To get reproducable builds depend on libiconv if needed.

tvheadend configure either shows

checking for cc libiconv ... fail

or

checking for cc libiconv ... ok

depending on the presence of libiconv, and gets linked

output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/tvheadend | grep NEEDED | grep iconv
0x00000001 (NEEDED) Shared library: [libiconv.so.2]

Please note that libiconv is not a hard-dependency.

Tested with minimal defconfig

BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_PACKAGE_LIBICONV=y
BR2_PACKAGE_TVHEADEND=y

---
v2: resend with added note about optional dependency (Peter)

 package/tvheadend/tvheadend.mk |    4 ++++
 1 file changed, 4 insertions(+)
package/tvheadend/tvheadend.mk +4 -0
index c582c07..4d0a16d 100644
@@ -14,6 +14,10 @@ ifeq ($(BR2_PACKAGE_AVAHI),y)
 TVHEADEND_DEPENDENCIES += avahi
 endif
 
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+TVHEADEND_DEPENDENCIES += libiconv
+endif
+
 TVHEADEND_DEPENDENCIES += dtv-scan-tables
 
 define TVHEADEND_CONFIGURE_CMDS
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 package/tvheadend: Add optional dependency to libiconv

Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

To get reproducable builds depend on libiconv if needed. tvheadend configure either shows

checking for cc libiconv ... fail

or

checking for cc libiconv ... ok

depending on the presence of libiconv, and gets linked

output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/tvheadend | grep NEEDED | grep iconv
0x00000001 (NEEDED) Shared library: [libiconv.so.2]

Please note that libiconv is not a hard-dependency.

Tested with minimal defconfig

Quoted 8 lines

BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_PACKAGE_LIBICONV=y
BR2_PACKAGE_TVHEADEND=y

---
v2: resend with added note about optional dependency (Peter)

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard