Your message dated Sun, 11 Dec 2011 20:48:05 +0000
with message-id <[email protected]>
and subject line Bug#651672: fixed in code-saturne 2.1.0-4
has caused the Debian Bug report #651672,
regarding code-saturne: FTBFS with ld --as-needed
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.)


-- 
651672: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651672
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: code-saturne
Version: 2.1.0-3
Severity: normal
Tags: upstream patch
User: [email protected]
Usertags: ld-as-needed

code-saturne fails to build when --as-needed linker option is enabled,
because of incorrect order of parameters passed to ld. Here's a log of
failed build in Ubuntu:
https://launchpad.net/ubuntu/+source/code-saturne/2.1.0-3/+build/2985556/+files/buildlog_ubuntu-precise-i386.code-saturne_2.1.0-3_FAILEDTOBUILD.txt.gz

See also
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

The attached patch was used in Ubuntu to fix the problem.
https://launchpad.net/ubuntu/+source/code-saturne/2.1.0-3ubuntu1

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 
'oneiric-proposed'), (500, 'oneiric'), (100, 'oneiric-backports')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-14-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: fix FTBFS with ld --as-needed option
 -lm should be added to LDADD, not LDFLAGS. This way it's put after object
 files when invoking linker
Author: Ilya Barygin <[email protected]>
--- code-saturne-2.1.0.orig/src/apps/Makefile.am
+++ code-saturne-2.1.0/src/apps/Makefile.am
@@ -147,10 +147,10 @@ cs_check_syntax_CPPFLAGS = \
 cs_check_syntax_SOURCES = cs_check_syntax.c
 cs_check_syntax_LDADD = \
 $(top_builddir)/src/mei/libmei.la \
-$(top_builddir)/src/bft/libbft.la
-cs_check_syntax_LDFLAGS = \
-$(ORIGINRUNPATH) \
+$(top_builddir)/src/bft/libbft.la \
 -lm
+cs_check_syntax_LDFLAGS = \
+$(ORIGINRUNPATH)
 
 endif
 
--- code-saturne-2.1.0.orig/src/apps/Makefile.in
+++ code-saturne-2.1.0/src/apps/Makefile.in
@@ -637,11 +637,11 @@ $(FCLIBS)
 @HAVE_FRONTEND_TRUE@cs_check_syntax_SOURCES = cs_check_syntax.c
 @HAVE_FRONTEND_TRUE@cs_check_syntax_LDADD = \
 @HAVE_FRONTEND_TRUE@$(top_builddir)/src/mei/libmei.la \
-@HAVE_FRONTEND_TRUE@$(top_builddir)/src/bft/libbft.la
+@HAVE_FRONTEND_TRUE@$(top_builddir)/src/bft/libbft.la \
+@HAVE_FRONTEND_TRUE@-lm
 
 @HAVE_FRONTEND_TRUE@cs_check_syntax_LDFLAGS = \
-@HAVE_FRONTEND_TRUE@$(ORIGINRUNPATH) \
-@HAVE_FRONTEND_TRUE@-lm
+@HAVE_FRONTEND_TRUE@$(ORIGINRUNPATH)
 
 
 # Code_Saturne partitioner

--- End Message ---
--- Begin Message ---
Source: code-saturne
Source-Version: 2.1.0-4

We believe that the bug you reported is fixed in the latest version of
code-saturne, which is due to be installed in the Debian FTP archive:

code-saturne-bin_2.1.0-4_amd64.deb
  to main/c/code-saturne/code-saturne-bin_2.1.0-4_amd64.deb
code-saturne-data_2.1.0-4_all.deb
  to main/c/code-saturne/code-saturne-data_2.1.0-4_all.deb
code-saturne-doc_2.1.0-4_all.deb
  to main/c/code-saturne/code-saturne-doc_2.1.0-4_all.deb
code-saturne-include_2.1.0-4_amd64.deb
  to main/c/code-saturne/code-saturne-include_2.1.0-4_amd64.deb
code-saturne_2.1.0-4.debian.tar.gz
  to main/c/code-saturne/code-saturne_2.1.0-4.debian.tar.gz
code-saturne_2.1.0-4.dsc
  to main/c/code-saturne/code-saturne_2.1.0-4.dsc
code-saturne_2.1.0-4_amd64.deb
  to main/c/code-saturne/code-saturne_2.1.0-4_amd64.deb



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.
Sylvestre Ledru <[email protected]> (supplier of updated code-saturne 
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: SHA1

Format: 1.8
Date: Sun, 11 Dec 2011 19:26:58 +0100
Source: code-saturne
Binary: code-saturne code-saturne-bin code-saturne-data code-saturne-include 
code-saturne-doc
Architecture: source all amd64
Version: 2.1.0-4
Distribution: unstable
Urgency: low
Maintainer: Debian Science Team 
<[email protected]>
Changed-By: Sylvestre Ledru <[email protected]>
Description: 
 code-saturne - General purpose Computational Fluid Dynamics (CFD) software
 code-saturne-bin - General purpose Computational Fluid Dynamics (CFD) software 
- bin
 code-saturne-data - General purpose Computational Fluid Dynamics (CFD) 
software - dat
 code-saturne-doc - General purpose Computational Fluid Dynamics (CFD) software 
- Doc
 code-saturne-include - General purpose Computational Fluid Dynamics (CFD) 
software - inc
Closes: 651672
Changes: 
 code-saturne (2.1.0-4) unstable; urgency=low
 .
   * Fix a as-needed issue. Thanks to Ilya Barygin for the patch
     (Closes: #651672)
Checksums-Sha1: 
 c5eaa37915f1a111ac6c385cf31508b7830fbe29 1935 code-saturne_2.1.0-4.dsc
 12ac9aba7467b8169b39fe78b3b410ef5706df10 5241 
code-saturne_2.1.0-4.debian.tar.gz
 ca58519ab388b6acdf8a2c5ebcbd1c22c70a8c39 1095184 
code-saturne-data_2.1.0-4_all.deb
 76b8b51971c19751d9cbb3f3b4c20ba60d7a172d 12307322 
code-saturne-doc_2.1.0-4_all.deb
 de0c4863e849cb11303a44abee5fc0d82f243e36 111080 code-saturne_2.1.0-4_amd64.deb
 8e0763755f956b5c7d6850d191677bfb9c42843e 2661274 
code-saturne-bin_2.1.0-4_amd64.deb
 654ad8c328c57d6661f77f7cad2971e750b27987 345880 
code-saturne-include_2.1.0-4_amd64.deb
Checksums-Sha256: 
 4594ce4aa20cf3fb5ac51e7c9c48a3675cb7b3078b8f81a034e70fc1b528aa47 1935 
code-saturne_2.1.0-4.dsc
 724f8b591987637c200fd6cb1ddbc245158a8568259e224a046a5cfff516227f 5241 
code-saturne_2.1.0-4.debian.tar.gz
 39a9257a04dae5d535c1a33390b8308662cf0d3e75a1501b35634f661ab5e185 1095184 
code-saturne-data_2.1.0-4_all.deb
 799facb37cee994d0e8907820f8389976262b5df5cce1078372b194260006cd4 12307322 
code-saturne-doc_2.1.0-4_all.deb
 c5b02f9898619311558ecca26c2018068925c207d987b0f49a9aa5dfb1f23ff0 111080 
code-saturne_2.1.0-4_amd64.deb
 27e7add6cdfaf327c634d5a982a57d3923917cc1d11e7b63d8839dc2ac3e79de 2661274 
code-saturne-bin_2.1.0-4_amd64.deb
 43173341cbbb11552e4b68dda0051a87bb6b995e9c1d494da7689e2dae63e84c 345880 
code-saturne-include_2.1.0-4_amd64.deb
Files: 
 de9d2346e62a3e280edb35104a7686f2 1935 science optional code-saturne_2.1.0-4.dsc
 ba411c56932eaf87aca353f24993693b 5241 science optional 
code-saturne_2.1.0-4.debian.tar.gz
 d92b45ec7ff923baae6e0b75fb446723 1095184 science optional 
code-saturne-data_2.1.0-4_all.deb
 5f130b1581f8205abe1821bd13b68026 12307322 doc optional 
code-saturne-doc_2.1.0-4_all.deb
 70a415e8b601dcacc62b98970812aef6 111080 science optional 
code-saturne_2.1.0-4_amd64.deb
 8be1ce162b934f61eca6e3d0c710c6ea 2661274 science optional 
code-saturne-bin_2.1.0-4_amd64.deb
 ca5775dbfe694781dcc6465676ffacae 345880 science optional 
code-saturne-include_2.1.0-4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7lAjoACgkQiOXXM92JlhC64QCeP1I8FG2T4WXZV2+9iI3NoZpG
2jAAniMmepHbrp0kBt0HQxM9I15xOI5U
=gCfm
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to