Your message dated Tue, 04 Oct 2016 13:21:43 +0000
with message-id <[email protected]>
and subject line Bug#837424: fixed in portaudio19 19+svn20140130-1.1
has caused the Debian Bug report #837424,
regarding portaudio19: Please build libportaudio.a with -fPIC
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
837424: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837424
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: portaudio19
Version: 19+svn20140130-1
Severity: important
User: [email protected]
Usertags: pie-bindnow-20160906
Justification: makes espeakup FTBFS on amd64 with extra hardening
Affects: espeakup
Dear Maintainers,
During a rebuild of all packages in sid, espeakup failed to build on
amd64 with patched GCC and dpkg. The root cause seems to be that
libportaudio.a is shipped as a non-PIC library.
The rebuild tested if packages are ready for a transition
enabling PIE and bindnow for amd64.
For more information about the changes to sid's dpkg and GCC please
visit:
https://wiki.debian.org/Hardening/PIEByDefaultTransitio
Relevant part of espeakup's build log:
...
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-Wformat -Werror=format-secur
ity -Os -MMD -Wall -c -o stringhandling.o stringhandling.c
cc -u _Unwind_Resume -u __gcc_personality_v0 -u _Unwind_ForcedUnwind -u
_Unwind_GetCFA -u _Unwind_GetB
SP -lgcc_s espeakup.o cli.o espeak.o queue.o signal.o softsynth.o
stringhandling.o /usr/lib/x86_64-l
inux-gnu/libespeak.a /usr/lib/x86_64-linux-gnu/libsonic.a
/usr/lib/x86_64-linux-gnu/libportaudio.a /us
r/lib/x86_64-linux-gnu/libjack.a -lm -lpthread -lasound -lrt -o espeakup
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libportaudio.a(pa_front.o):
relocation R_X86_64_32 against `.ro
data.str1.8' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libportaudio.a(pa_unix_util.o):
relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libportaudio.a(pa_linux_alsa.o):
relocation R_X86_64_32 against
`.rodata.str1.8' can not be used when making a shared object; recompile
with -fPIC
...
The full build log is available from:
https://people.debian.org/~rbalint/build-logs/pie-bindnow-20160906/espeakup_0.80-1_amd64.build.gz
Thanks,
Balint
diff -u binutils-2.27/debian/changelog binutils-2.27/debian/changelog
--- binutils-2.27/debian/changelog
+++ binutils-2.27/debian/changelog
@@ -1,3 +1,10 @@
+binutils (2.27-8+rbalint0) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Build libbfd with -fPIC
+
+ -- Balint Reczey <[email protected]> Sat, 10 Sep 2016 15:53:07 +0200
+
binutils (2.27-8) unstable; urgency=medium
* Fix diversion updates for 32bit x86 targets.
diff -u binutils-2.27/debian/patches/series binutils-2.27/debian/patches/series
--- binutils-2.27/debian/patches/series
+++ binutils-2.27/debian/patches/series
@@ -12,6 +12,7 @@
130_gold_disable_testsuite_build.patch
131_ld_bootstrap_testsuite.patch
135_bfd_version.patch
+136_bfd_pic.patch
157_ar_scripts_with_tilde.patch
#158_ld_system_root.patch
161_gold_dummy_zoption.diff
only in patch2:
unchanged:
--- binutils-2.27.orig/debian/patches/136_bfd_pic.patch
+++ binutils-2.27/debian/patches/136_bfd_pic.patch
@@ -0,0 +1,25 @@
+Author: Balint Reczey <[email protected]>
+Description: Build libbfd with -fPIC to allow linking with PIE binaries
+
+--- ./bfd/Makefile.am.bak 2016-09-10 16:26:46.062371030 +0200
++++ ./bfd/Makefile.am 2016-09-10 16:27:48.913724681 +0200
+@@ -51,7 +51,7 @@
+
+ WARN_CFLAGS = @WARN_CFLAGS@
+ NO_WERROR = @NO_WERROR@
+-AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
++AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -fPIC
+ AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
+ if PLUGINS
+ bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
+--- ./bfd/Makefile.in.bak 2016-09-10 16:26:53.009857349 +0200
++++ ./bfd/Makefile.in 2016-09-10 16:27:31.886983240 +0200
+@@ -387,7 +387,7 @@
+ # case both are empty.
+ ZLIB = @zlibdir@ -lz
+ ZLIBINC = @zlibinc@
+-AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
++AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -fPIC
+ AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
+ @PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
+
--- End Message ---
--- Begin Message ---
Source: portaudio19
Source-Version: 19+svn20140130-1.1
We believe that the bug you reported is fixed in the latest version of
portaudio19, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Balint Reczey <[email protected]> (supplier of updated portaudio19 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 29 Sep 2016 14:34:58 +0200
Source: portaudio19
Binary: libportaudio2 libportaudiocpp0 portaudio19-dev portaudio19-doc
Architecture: source
Version: 19+svn20140130-1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian VoIP Team <[email protected]>
Changed-By: Balint Reczey <[email protected]>
Description:
libportaudio2 - Portable audio I/O - shared library
libportaudiocpp0 - Portable audio I/O C++ bindings - shared library
portaudio19-dev - Portable audio I/O - development files
portaudio19-doc - Portable audio I/O - documentation
Closes: 813990 833950 837424
Changes:
portaudio19 (19+svn20140130-1.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Fix lockups in portaudio after upgrading to alsa-lib 1.1.2
(Closes: #833950)
* Build only PIC objects (Closes: #837424)
* Move portaudio19-dev to section libdevel (Closes: #813990)
Checksums-Sha1:
c81aef15e0e5b7024a41441d9aa98cc3a744728f 2400
portaudio19_19+svn20140130-1.1.dsc
e94a09fcc0480975ee6458da6b80eb5cbe161692 9736
portaudio19_19+svn20140130-1.1.debian.tar.xz
Checksums-Sha256:
509a85cbd2fecb14d45b26222c02ee3abdcd837b1791c28030d493bef3cbe08a 2400
portaudio19_19+svn20140130-1.1.dsc
713bd1e4f1f62b8ed7c8e7a8f3acb424f1bd72e2895c0034ac9ebec97a8a373b 9736
portaudio19_19+svn20140130-1.1.debian.tar.xz
Files:
5d01602ba0113c58995060844c00236b 2400 sound optional
portaudio19_19+svn20140130-1.1.dsc
63f758473ddb80b68cb3a0a3c29eda07 9736 sound optional
portaudio19_19+svn20140130-1.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJX7Qp9AAoJEPZk0la0aRp9lpYP/jhm2lkcyYu+KQ/8IKqvjh8F
vWKD935u/XiR5zWixO9UJQZGGFDuZmKm9Rp5sNfQdjirB3bjHGkk2hUeRFqGM3qG
eh/17j2XVZ3YHkf/MWdTvRSnmj4Yd0nD7hW3GhCS9lQ6WknmXvEKIDgwb/LNOGrj
rJkwVgszsHG8sV4HIRj97FlzPPZ3ips17vWRs6iZFlcfO6hXoLMOEcvxkDD3juRB
8fukAotKMhS436tc8432r635bdm3Wq5UvJK9xOwlpbzUVJnXWrYLAUDNLnVvexZO
+PlxilAIaRTbOQ2D7Z/yjfIPnZw7gO/NJrR4Ybw9/yJEzA+p7nZ3r1t11P8epuuF
7SxLKGBkUlq3TPxq/1OXQnQKPptD8meeczeAD1jt62wqCA4tzdZWwdcVPRpi/hLx
hjffmjmVYFTBOrIkS54NNtdWCf4K3TVLvqBC47l3N9ANKMLv85OebKEUMb7YPIf2
na3v/3Pjle35xT6uzlJwVZLjc/1mH4v2Z9Uw8Z4Qeu0pp3tD9prBRT5Q1xwEyz62
3/+C3oO9AcuLDTDxUKJDKwLAN89syfo5G2XZjmCKCwj1Q/uWhOqbB9waPYwwjzeF
awNhUEbGaqPmDar1an5JephwIN6ePU/jqzGUpswDm/KPtnRuxpSXGcrB6KfkW/KJ
N3L4nf0D8uLU8xXd5Iuz
=9Ido
-----END PGP SIGNATURE-----
--- End Message ---