Your message dated Sun, 10 Jul 2011 19:18:22 +0000
with message-id <[email protected]>
and subject line Bug#633459: fixed in gmsh 2.5.1~beta1~svn9559~dfsg-2
has caused the Debian Bug report #633459,
regarding ftbs 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.)


-- 
633459: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633459
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gmsh
Version: 2.5.1~beta1~svn9559~dfsg-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch

the package gmsh fails to build with ld --as-needed
when building with ld --as-needed the libraries must be placed after
the objects needing their symbols.
The package sets libraries in CMAKE_CXX_FLAGS, so they get placed in the
wrong position and one gets undefined references.

See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/gmsh/+bug/803181

Attached patch fixes this issue adding them to
target_link_libraries(gmsh,..) and removes them from debian/rules.

diff -Nru gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/fix-as-needed-build.patch gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/fix-as-needed-build.patch
--- gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/fix-as-needed-build.patch	1970-01-01 01:00:00.000000000 +0100
+++ gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/fix-as-needed-build.patch	2011-07-10 15:22:39.000000000 +0200
@@ -0,0 +1,11 @@
+--- gmsh-2.5.1~beta1~svn9559~dfsg.orig/CMakeLists.txt
++++ gmsh-2.5.1~beta1~svn9559~dfsg/CMakeLists.txt
+@@ -925,7 +925,7 @@ elseif(HAVE_QT)
+ else(HAVE_FLTK)
+   add_executable(gmsh Common/Main.cpp ${GMSH_SRC})
+ endif(HAVE_FLTK)
+-target_link_libraries(gmsh ${LINK_LIBRARIES})
++target_link_libraries(gmsh ${LINK_LIBRARIES} -lgl2ps -lGL -lglut)
+ 
+ # increase stack to 16Mb on Windows to avoid overflows in recursive
+ # tet classification for large 3D Delaunay grids + force static
diff -Nru gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/series gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/series
--- gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/series	2011-07-06 15:06:52.000000000 +0200
+++ gmsh-2.5.1~beta1~svn9559~dfsg/debian/patches/series	2011-07-10 15:22:39.000000000 +0200
@@ -3,3 +3,4 @@
 fix_spelling_errors.patch
 switch_off_metis_and_tetgen.patch
 delete_gl2ps_from_source.patch
+fix-as-needed-build.patch
diff -Nru gmsh-2.5.1~beta1~svn9559~dfsg/debian/rules gmsh-2.5.1~beta1~svn9559~dfsg/debian/rules
--- gmsh-2.5.1~beta1~svn9559~dfsg/debian/rules	2011-07-06 14:52:29.000000000 +0200
+++ gmsh-2.5.1~beta1~svn9559~dfsg/debian/rules	2011-07-10 15:22:12.000000000 +0200
@@ -4,7 +4,7 @@
 %:
 	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR)
 
-extra_flags += -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -fopenmp -lgl2ps -lGL -lglut" -DCMAKE_INCLUDE_PATH:="/usr/include/mpi"
+extra_flags += -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -fopenmp" -DCMAKE_INCLUDE_PATH:="/usr/include/mpi"
 
 override_dh_auto_clean:
 	rm -rf $(BUILDDIR)

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: gmsh
Source-Version: 2.5.1~beta1~svn9559~dfsg-2

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

gmsh_2.5.1~beta1~svn9559~dfsg-2.debian.tar.gz
  to main/g/gmsh/gmsh_2.5.1~beta1~svn9559~dfsg-2.debian.tar.gz
gmsh_2.5.1~beta1~svn9559~dfsg-2.dsc
  to main/g/gmsh/gmsh_2.5.1~beta1~svn9559~dfsg-2.dsc
gmsh_2.5.1~beta1~svn9559~dfsg-2_i386.deb
  to main/g/gmsh/gmsh_2.5.1~beta1~svn9559~dfsg-2_i386.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.
Anton Gladky <[email protected]> (supplier of updated gmsh 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, 10 Jul 2011 20:21:49 +0200
Source: gmsh
Binary: gmsh
Architecture: source i386
Version: 2.5.1~beta1~svn9559~dfsg-2
Distribution: unstable
Urgency: low
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Anton Gladky <[email protected]>
Description: 
 gmsh       - Three-dimensional finite element mesh generator
Closes: 633459
Changes: 
 gmsh (2.5.1~beta1~svn9559~dfsg-2) unstable; urgency=low
 .
   * [6215c99] Update FTBFS with ld --as-needed.
       Thanks to Julian Taylor <[email protected]>
       (Closes: #633459)
Checksums-Sha1: 
 60b70d210b9d59cd2a1321635486b8c09f40f44b 2544 
gmsh_2.5.1~beta1~svn9559~dfsg-2.dsc
 c73c045063c951dcad1696d8e2136f48fc337cea 3171485 
gmsh_2.5.1~beta1~svn9559~dfsg.orig.tar.bz2
 326ca9dadbb9427202018fea722b158ba56e09b6 15177 
gmsh_2.5.1~beta1~svn9559~dfsg-2.debian.tar.gz
 21f5682814022e65c944f4c0b03b1b205062b686 15141466 
gmsh_2.5.1~beta1~svn9559~dfsg-2_i386.deb
Checksums-Sha256: 
 ff1bb9d6ea46409d6e6edc2a799c1b3acbeba9b1cf03d5c493f538bc50da2989 2544 
gmsh_2.5.1~beta1~svn9559~dfsg-2.dsc
 99f5ff3147ca628fff9e09690d9de204b9b2d7073cab4e40e3ff2456f0884c5a 3171485 
gmsh_2.5.1~beta1~svn9559~dfsg.orig.tar.bz2
 5cc0e97bfdf5a3da5a0b381f8c572e8aac994b8ce3c4721d1b841e27f3768fc9 15177 
gmsh_2.5.1~beta1~svn9559~dfsg-2.debian.tar.gz
 a589322e424cd2dc6d92a78148c5d6a5336a73774b384bc82595d36427bbddcc 15141466 
gmsh_2.5.1~beta1~svn9559~dfsg-2_i386.deb
Files: 
 4db4c3b69c23e46101bccfd073732798 2544 math optional 
gmsh_2.5.1~beta1~svn9559~dfsg-2.dsc
 b1925f51a4e88f7f6b04f859c5ed6fb9 3171485 math optional 
gmsh_2.5.1~beta1~svn9559~dfsg.orig.tar.bz2
 029a5250b7469c3b7d1221b6574d80dd 15177 math optional 
gmsh_2.5.1~beta1~svn9559~dfsg-2.debian.tar.gz
 96d31bdc15a76e4c13ffe9e6b0cc60db 15141466 math optional 
gmsh_2.5.1~beta1~svn9559~dfsg-2_i386.deb

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

iQIcBAEBAgAGBQJOGfnrAAoJENPhc4PPp/8GObAP/ReG75yGn7ekU4ztNzGoV7Ow
1KBHCSsufEtUhIyXG1jlddX4WVla1vag9UwkjeXcytBd4LTq0OpH70/FI5IqtvzZ
BPbhZMDyNUYyD4EzZNWYynGWJpqQvco1qNdvBrQusc2Ce+Qn5Rqc/zb1+XwmjtNI
G9gkM5GfixH2LgYWCQbk8VEdPMZzry6KAEF4ADW73ojcrv25LJ7o+wOy2jNLipHE
EhHnIll3+92163xA+yvxgPvvq4ub4dUxdmaLfh/JhYEttedjaEpoiRJWqE7MYolT
dCy/GMwZb6t6C4Bwoy+mZ1gCsDNbSEUP2UXbVrf6FD0tVZCMxUPy9W4gzEebmDwW
BdQxTAEb3RO1Czn8qQLci2TewUogJ76GxFZNZNUrJYMDEetKNp3e/+8ZgEi6Sh4I
cPkKBX7Ky8xdNPfYabzstwqsKnoAz8lk+Lj3HpxN/S2bCNirb1V0UKO/rnB/7BiX
CBe1m9RvfmTOULa1ZWT79OkD/GydOwN2VwxQf/0fRj64TWHLgtiMfg09U95WvVc+
HF5L1yVVnfIfJa6MWaUmNUflc0GWJQt/mF7oSlZ7VSUtCQk9RnJeAYOi8hx2IadH
W1LZDs5kv4XicxnsQUYYO36gf6txTbBKUiv4yTwLKD2XmItPpzWfvIPpLxpvjAIm
sj+ILW0C2WdM5mu4vq3h
=sqsn
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to