Bug#914080: med-fichier: autopkgtest fails with ld --as-needed
Logan Rosen
logan at ubuntu.com
Mon Nov 19 02:48:50 GMT 2018
Package: med-fichier
Version: 3.3.1+repack-4
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu disco ubuntu-patch
Dear Maintainer,
The new autopkgtest tests in med-fichier fail to run with ld
--as-needed, which is the default in Ubuntu.
In Ubuntu, the attached patch was applied to achieve the following:
* d/t/build{1,2}: Move -lmedC after file that needs it to fix failure with
ld --as-needed.
Thanks for considering the patch.
Logan Rosen
-- System Information:
Debian Release: buster/sid
APT prefers cosmic-updates
APT policy: (500, 'cosmic-updates'), (500, 'cosmic-security'), (500, 'cosmic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-10-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru med-fichier-3.3.1+repack/debian/tests/build1 med-fichier-3.3.1+repack/debian/tests/build1
--- med-fichier-3.3.1+repack/debian/tests/build1 2018-07-08 11:20:02.000000000 -0400
+++ med-fichier-3.3.1+repack/debian/tests/build1 2018-11-18 21:34:17.000000000 -0500
@@ -217,7 +217,7 @@
EOF
-mpicc -I/usr/include/hdf5/openmpi/ -I/usr/include/hdf5/serial -I/usr/include -lmedC -o usescase usescase.c
+mpicc -I/usr/include/hdf5/openmpi/ -I/usr/include/hdf5/serial -I/usr/include -o usescase usescase.c -lmedC
echo "build: OK"
[ -x usescase ]
./usescase
diff -Nru med-fichier-3.3.1+repack/debian/tests/build2 med-fichier-3.3.1+repack/debian/tests/build2
--- med-fichier-3.3.1+repack/debian/tests/build2 2018-07-08 11:20:13.000000000 -0400
+++ med-fichier-3.3.1+repack/debian/tests/build2 2018-11-18 21:34:32.000000000 -0500
@@ -431,7 +431,7 @@
EOF
-mpicc -I/usr/include/hdf5/openmpi/ -I/usr/include/hdf5/serial -I/usr/include -lmedC -o usescase usescase.c
+mpicc -I/usr/include/hdf5/openmpi/ -I/usr/include/hdf5/serial -I/usr/include -o usescase usescase.c -lmedC
echo "build: OK"
[ -x usescase ]
./usescase
More information about the debian-science-maintainers
mailing list