Bug#870383: gpgme1.0: FTBFS on hurd-i386: hardinging flags mismatch w.r.t. Qt5

2020-06-26 Thread Gianfranco Costamagna
control: tags -1 patch
Hello,

the patch from Ubuntu seems enough to do the trick, can you please forward 
upstream?
I'm still waiting for my account to get accepted on dev.gnupg.org (I just 
registered)
diff -pruN 1.13.1-7/debian/patches/0006-PIC-and-shared.patch 
1.13.1-7ubuntu2/debian/patches/0006-PIC-and-shared.patch
--- 1.13.1-7/debian/patches/0006-PIC-and-shared.patch   1970-01-01 
00:00:00.0 +
+++ 1.13.1-7ubuntu2/debian/patches/0006-PIC-and-shared.patch2017-05-12 
07:22:23.0 +
@@ -0,0 +1,19 @@
+Description: Use -fPIC instead of -fpic.
+Author: Adam Conrad 
+Last-Update: 2017-05-12
+
+Index: gpgme1.0-1.8.0/m4/qt.m4
+===
+--- gpgme1.0-1.8.0.orig/m4/qt.m4
 gpgme1.0-1.8.0/m4/qt.m4
+@@ -24,8 +24,9 @@ AC_DEFUN([FIND_QT],
+ [have_qt5test_libs="no"])
+ 
+   if ! test "$have_w32_system" = yes; then
++GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -shared"
+ if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q 
"reduce_relocations"; then
+-  GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
++  GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fPIC"
+ fi
+   fi
+   if test "$have_qt5_libs" = "yes"; then
diff -pruN 1.13.1-7/debian/patches/series 1.13.1-7ubuntu2/debian/patches/series
--- 1.13.1-7/debian/patches/series  2020-01-30 16:37:46.0 +
+++ 1.13.1-7ubuntu2/debian/patches/series   2020-02-14 00:43:13.0 
+
@@ -5,3 +5,4 @@
 0005-tests-json-Bravo-key-does-not-have-secret-key-materi.patch
 0006-gpg-Send-with-keygrip-when-listing-keys.patch
 0007-use-FULL_PATH_NAMES-NO-for-reproducible-doxygen-docu.patch
+0006-PIC-and-shared.patch

thanks

Gianfranco



Bug#870383: gpgme1.0: FTBFS on hurd-i386: hardinging flags mismatch w.r.t. Qt5

2020-06-29 Thread Gianfranco Costamagna
control: forwarded -1 https://dev.gnupg.org/T4982

thanks

G.



Bug#870383: gpgme1.0: FTBFS on hurd-i386: hardinging flags mismatch w.r.t. Qt5

2017-08-01 Thread Andreas Beckmann
Source: gpgme1.0
Version: 1.8.0-3
Severity: important

Hi,

gpgme1.0 FTBFS on hurd-i386:
https://buildd.debian.org/status/fetch.php?pkg=gpgme1.0&arch=hurd-i386&ver=1.8.0-3&stamp=1486062988&raw=0

configure:19582: checking whether a simple qt program can be built
configure:19593: g++ -o conftest -g -O2 -fdebug-prefix-map=/<>=. 
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat 
-Werror=format-security -I/usr/include/i386-gnu/qt5/QtCore 
-I/usr/include/i386-gnu/qt5 -fpic -specs=/usr/share/dpkg/pie-link.specs 
-Wl,-z,relro -Wl,-z,now conftest.cpp -lQt5Core >&5
In file included from /usr/include/i386-gnu/qt5/QtCore/qcoreapplication.h:43:0,
 from /usr/include/i386-gnu/qt5/QtCore/QCoreApplication:1,
 from conftest.cpp:32:
/usr/include/i386-gnu/qt5/QtCore/qglobal.h:1113:4: error: #error "You must 
build your code with position independent code if Qt was built with 
-reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
 #  error "You must build your code with position independent code if Qt was 
built with -reduce-relocations. "\


Andreas