package/exiv2: fix gettext detection, part II
PATCH v2 1/1 package/exiv2: fix gettext detection, part II
It seems getting the gettext stuff right on all platforms is not that easy, this patch bumps exiv2 to include all gettext (and pthreads) patches applied upstream.
To reproduce the problem gettext has to be built before exiv2 so we make gettext an optional dependency when NLS support is used.
Fixes
http://autobuild.buildroot.net/results/a56/a56c8a8a4c76b7c359ca7f5252be93fd70c6a4c1/
---
v2: bumped to latest git head
package/exiv2/0001-cmake-fix-gettext-support.patch | 72 ---------------------- ...s-depend-on-threads-not-only-in-the-xmp-c.patch | 59 ------------------ package/exiv2/exiv2.hash | 4 +- package/exiv2/exiv2.mk | 8 ++- 4 files changed, 6 insertions(+), 137 deletions(-) delete mode 100644 package/exiv2/0001-cmake-fix-gettext-support.patch delete mode 100644 package/exiv2/0002-cmake-always-depend-on-threads-not-only-in-the-xmp-c.patch
package/exiv2/0001-cmake-fix-gettext-support.patch deleted +0 -72
@@ -1,72 +0,0 @@ -From 3af0d1a6b2c12b7f62a293d19bdf235db75d6b07 Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Sat, 3 Jun 2017 17:18:24 +0200 -Subject: [PATCH] cmake: fix gettext support - -Building exiv2 with uclibc and gettext fails currently as detected -by the buildroot autobuilders: -http://autobuild.buildroot.net/results/def/defcdd3dd57b031c31bb16c0075f079a482bf52d/build-end.log - -Patch sent upstream: https://github.com/Exiv2/exiv2/pull/6 - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - config/CMakeChecks.txt | 12 ++++++++++-- - src/CMakeLists.txt | 6 +++--- - 2 files changed, 13 insertions(+), 5 deletions(-) - -diff --git a/config/CMakeChecks.txt b/config/CMakeChecks.txt -index b3a888f2..f7621a92 100644 ---- a/config/CMakeChecks.txt -+++ b/config/CMakeChecks.txt -@@ -95,8 +95,16 @@ ELSE( EXIV2_ENABLE_SHARED ) - ENDIF( EXIV2_ENABLE_SHARED ) - - IF( EXIV2_ENABLE_NLS ) -- #FIND_PACKAGE(Intl REQUIRED) -- #INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS}) -+ FIND_PACKAGE(Intl) -+ if(Intl_FOUND) -+ INCLUDE_DIRECTORIES(${Intl_INCLUDE_DIRS}) -+ find_library(LIBINTL_LIBRARY NAMES intl libintl) -+ if(libintl_FOUND) -+ SET(LIBINTL_LIBRARIES ${LIBINTL_LIBRARY}) -+ else(libintl_FOUND) -+ SET(LIBINTL_LIBRARIES) -+ endif() -+ endif() - IF( NOT LOCALEDIR ) - SET( LOCALEDIR "${CMAKE_INSTALL_LOCALEDIR}" ) - IF( WIN32 ) -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index aecd6215..e2904c6f 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -316,13 +316,13 @@ msvc_runtime_configure(${EXIV2_ENABLE_SHARED} ${EXIV2_ENABLE_DYNAMIC_RUNTIME}) - # ****************************************************************************** - # exiv2 application - ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} ${EXIV2_HDR} ) --TARGET_LINK_LIBRARIES( exiv2 exiv2lib ) -+TARGET_LINK_LIBRARIES( exiv2 exiv2lib ${LIBINTL_LIBRARIES} ) - INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} ) - - # ****************************************************************************** - # connection test application - ADD_EXECUTABLE( conntest ${CONNTEST} ) --TARGET_LINK_LIBRARIES( conntest ${PRIVATE_VAR} exiv2lib ${CURL_LIBRARIES} ${SSH_LIBRARIES}) -+TARGET_LINK_LIBRARIES( conntest ${PRIVATE_VAR} exiv2lib ${CURL_LIBRARIES} ${SSH_LIBRARIES} ${LIBINTL_LIBRARIES} ) - - # ****************************************************************************** - # exifprint application -@@ -332,7 +332,7 @@ TARGET_LINK_LIBRARIES( conntest ${PRIVATE_VAR} exiv2lib ${CURL_LIBRARIES} ${SSH - # ****************************************************************************** - # remotetest application - ADD_EXECUTABLE( remotetest ${REMOTETEST} ) --TARGET_LINK_LIBRARIES( remotetest exiv2lib ) -+TARGET_LINK_LIBRARIES( remotetest exiv2lib ${LIBINTL_LIBRARIES} ) - - # ****************************************************************************** - # Headers --- -2.11.0 -
package/exiv2/0002-cmake-always-depend-on-threads-not-only-in-the-xmp-c.patch deleted +0 -59
59 lines not on this page · raw message
package/exiv2/exiv2.hash +1 -3
@@ -1,4 +1,2 @@ -# From http://www.exiv2.org/download.html -md5 f936d2ca5cbe1e18c71ca2baa5e84fb4 exiv2-0.26-trunk.tar.gz # Locally calculated -sha256 0c625cbeb494aa1b9221280a5b053b54d0c9720d48fa9120cef7c6f93efd4dc3 exiv2-0.26-trunk.tar.gz +sha256 290cb6208f143b9bd5074d790fc8924409f28e5813356c143d739a3311d8ad76 exiv2-910f3507795e1930ae216c9febee0bf9a88e99c0.tar.gz
package/exiv2/exiv2.mk +5 -3
@@ -4,9 +4,8 @@ # ################################################################################ -EXIV2_VERSION = 0.26 -EXIV2_SITE = http://www.exiv2.org/builds -EXIV2_SOURCE = exiv2-$(EXIV2_VERSION)-trunk.tar.gz +EXIV2_VERSION = 910f3507795e1930ae216c9febee0bf9a88e99c0 +EXIV2_SITE = $(call github,Exiv2,exiv2,$(EXIV2_VERSION)) EXIV2_INSTALL_STAGING = YES EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
@@ -45,6 +44,9 @@ endif ifeq ($(BR2_ENABLE_LOCALE),y) EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=ON +ifeq ($(BR2_PACKAGE_GETTEXT),y) +EXIV2_DEPENDENCIES += gettext +endif else EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=OFF endif
Signature · 1 line
2.11.0
Thomas Petazzoni
AppliedPATCH v2 1/1 package/exiv2: fix gettext detection, part II
Hello,
Quoted 7 lines · Bernd Kuhls
It seems getting the gettext stuff right on all platforms is not that easy, this patch bumps exiv2 to include all gettext (and pthreads) patches applied upstream.
To reproduce the problem gettext has to be built before exiv2 so we make gettext an optional dependency when NLS support is used.
Quoted 6 lines
Fixes
http://autobuild.buildroot.net/results/a56/a56c8a8a4c76b7c359ca7f5252be93fd70c6a4c1/Signed-off-by Bernd Kuhls <[email protected]>---
v2: bumped to latest git head
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com