Skip to contentSkip to conversation

package/exiv2: fix gettext support

PATCH New Bernd Kuhls 2 participants 4 messages Jun 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/exiv2: fix gettext support

Fixes
http://autobuild.buildroot.net/results/def/defcdd3dd57b031c31bb16c0075f079a482bf52d

---
 package/exiv2/0001-cmake-fix-gettext-support.patch | 72 ++++++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 package/exiv2/0001-cmake-fix-gettext-support.patch
package/exiv2/0001-cmake-fix-gettext-support.patch new file +72 -0
new file mode 100644
index 000000000..874553d9a
@@ -0,0 +1,72 @@
+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 1/1] 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
+
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 package/exiv2: fix glibc pthread detection

Patch ported from librtlsdr:
https://git.busybox.net/buildroot/commit/?id=4c6eace6f756d15ae9639a503c9245d1e7fb12a9

Fixes
http://autobuild.buildroot.net/results/6c0/6c0264bf35c4cc0c4afaf6001930fdbd6125029d/

---
 package/exiv2/exiv2.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/exiv2/exiv2.mk +3 -1
index f56e86122..e68abb710 100644
@@ -9,7 +9,9 @@ EXIV2_SITE = http://www.exiv2.org/builds
 EXIV2_SOURCE = exiv2-$(EXIV2_VERSION)-trunk.tar.gz
 EXIV2_INSTALL_STAGING = YES
 
-EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
+EXIV2_CONF_OPTS += \
+	-DEXIV2_ENABLE_BUILD_SAMPLES=OFF \
+	-DTHREADS_PTHREAD_ARG=OFF
 
 ifeq ($(BR2_PACKAGE_EXIV2_LENSDATA),)
 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_LENSDATA=OFF
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/2 package/exiv2: fix glibc pthread detection

Hello,

Quoted 2 lines · Bernd Kuhls

Patch ported from librtlsdr:
https://git.busybox.net/buildroot/commit/?id=4c6eace6f756d15ae9639a503c9245d1e7fb12a9

Could you explain a bit more? This commit is about fixing a static linking issue...

Quoted 2 lines

Fixes
http://autobuild.buildroot.net/results/6c0/6c0264bf35c4cc0c4afaf6001930fdbd6125029d/

... but this configuration is not a static linking one.

package/exiv2/exiv2.mk EXIV2_SITE = http://www.exiv2.org/builds · line 14

Quoted 4 lines
package/exiv2/exiv2.mk +3 -1
-EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
+EXIV2_CONF_OPTS += \
+	-DEXIV2_ENABLE_BUILD_SAMPLES=OFF \
+	-DTHREADS_PTHREAD_ARG=OFF

Clearly this needs a comment in the .mk file, as one could understand this as "let's disable thread support".

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 package/exiv2: fix gettext support

In reply to Bernd Kuhls

Hello,

Quoted 8 lines · Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/def/defcdd3dd57b031c31bb16c0075f079a482bf52d

---
 package/exiv2/0001-cmake-fix-gettext-support.patch | 72 ++++++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 package/exiv2/0001-cmake-fix-gettext-support.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com