Your message dated Wed, 03 Aug 2011 09:02:29 +0000
with message-id <[email protected]>
and subject line Bug#633160: fixed in xscorch 0.2.1-1
has caused the Debian Bug report #633160,
regarding xscorch: 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.)


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

The package 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://launchpadlibrarian.net/70990065/buildlog_ubuntu-oneiric-i386.xscorch_0.2.1~pre2-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/xscorch/0.2.1~pre2-3ubuntu1


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

Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Description: Change order of libraries in makefiles. This fixes FTBFS with
 --as-needed linker option.
Author: Ilya Barygin <[email protected]>
Bug-Ubuntu: https://launchpad.net/bugs/756217
--- xscorch-0.2.1~pre2.orig/Makefile.am
+++ xscorch-0.2.1~pre2/Makefile.am
@@ -45,9 +45,6 @@
 xscorch_SOURCES = \
 	xscorch.c
 xscorch_LDADD = \
-	-lm \
-	$(GTK_LIBS) \
-	$(LIBMIKMOD_LIBS) \
 	sgame/libscorch_game.a \
 	sgtk/libscorch_gtk.a \
 	sgtk/swidgets/libscorch_widget_gtk.a \
@@ -57,14 +54,15 @@
 	sutil/libscorch_util.a \
 	sgame/libscorch_game.a \
 	libj/jreg/libjreg.a \
-	libj/jstr/libjstr.a
+	libj/jstr/libjstr.a \
+	-lm \
+	$(GTK_LIBS) \
+	$(LIBMIKMOD_LIBS)
 
 
 xscorch_server_SOURCES = \
 	xscorch.c
 xscorch_server_LDADD = \
-	-lm \
-	$(LIBREADLINE_LIBS) \
 	sgame/libscorch_game.a \
 	sconsole/libscorch_console.a \
 	sai/libscorch_ai.a \
@@ -73,7 +71,9 @@
 	sutil/libscorch_util.a \
 	sgame/libscorch_game.a \
 	libj/jreg/libjreg.a \
-	libj/jstr/libjstr.a
+	libj/jstr/libjstr.a \
+	-lm \
+	$(LIBREADLINE_LIBS)
 
 
 work-list:
--- xscorch-0.2.1~pre2.orig/Makefile.in
+++ xscorch-0.2.1~pre2/Makefile.in
@@ -284,11 +284,7 @@
 @MIKMOD_TRUE@MIKMOD_LD_ADD = ssound/libscorch_sound.a
 xscorch_SOURCES = \
 	xscorch.c
-
 xscorch_LDADD = \
-	-lm \
-	$(GTK_LIBS) \
-	$(LIBMIKMOD_LIBS) \
 	sgame/libscorch_game.a \
 	sgtk/libscorch_gtk.a \
 	sgtk/swidgets/libscorch_widget_gtk.a \
@@ -298,14 +294,15 @@
 	sutil/libscorch_util.a \
 	sgame/libscorch_game.a \
 	libj/jreg/libjreg.a \
-	libj/jstr/libjstr.a
+	libj/jstr/libjstr.a \
+	-lm \
+	$(GTK_LIBS) \
+	$(LIBMIKMOD_LIBS)
+
 
 xscorch_server_SOURCES = \
 	xscorch.c
-
 xscorch_server_LDADD = \
-	-lm \
-	$(LIBREADLINE_LIBS) \
 	sgame/libscorch_game.a \
 	sconsole/libscorch_console.a \
 	sai/libscorch_ai.a \
@@ -314,7 +311,9 @@
 	sutil/libscorch_util.a \
 	sgame/libscorch_game.a \
 	libj/jreg/libjreg.a \
-	libj/jstr/libjstr.a
+	libj/jstr/libjstr.a \
+	-lm \
+	$(LIBREADLINE_LIBS)
 
 INCLUDES = -Isgame -Isgtk
 all: config.h

--- End Message ---
--- Begin Message ---
Source: xscorch
Source-Version: 0.2.1-1

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

xscorch_0.2.1-1.debian.tar.gz
  to main/x/xscorch/xscorch_0.2.1-1.debian.tar.gz
xscorch_0.2.1-1.dsc
  to main/x/xscorch/xscorch_0.2.1-1.dsc
xscorch_0.2.1-1_amd64.deb
  to main/x/xscorch/xscorch_0.2.1-1_amd64.deb
xscorch_0.2.1.orig.tar.gz
  to main/x/xscorch/xscorch_0.2.1.orig.tar.gz



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.
Jacob Luna Lundberg <[email protected]> (supplier of updated xscorch 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: Tue,  2 Aug 2011 09:41:04 -0700
Source: xscorch
Binary: xscorch
Architecture: source amd64
Version: 0.2.1-1
Distribution: unstable
Urgency: low
Maintainer: Jacob Luna Lundberg <[email protected]>
Changed-By: Jacob Luna Lundberg <[email protected]>
Description: 
 xscorch    - Clone of Scorched Earth
Closes: 406593 633160
Changes: 
 xscorch (0.2.1-1) unstable; urgency=low
 .
   * New upstream release (Closes: #406593, #633160)
   * All of the current patches have been pushed upstream.
   * Make lintian happy; try to remove empty /usr/{bin,include}
   * Added build-arch and build-indep targets.
   * Added missing libreadline-gplv2-dev build dep.
Checksums-Sha1: 
 777db94448484006a020f28fcac32e5a2bb03fad 1444 xscorch_0.2.1-1.dsc
 07f903e3767c1d6b7ad6fde2ea72ed58a597646a 849773 xscorch_0.2.1.orig.tar.gz
 db6c0709374bd1b98bfa367dea3994e62e3a8311 12742 xscorch_0.2.1-1.debian.tar.gz
 ed573890bbbf694e7309c8e3e887ec91c9400944 266442 xscorch_0.2.1-1_amd64.deb
Checksums-Sha256: 
 c39cfc5af5c67d97432f6aac54a54737b45c465260fb1dd29f4ceaa88485ef5b 1444 
xscorch_0.2.1-1.dsc
 a315f7001a020c6b8f644db1c1dc56ccfbb9e3efcbf12c41ac9eb4e5e75cb5f7 849773 
xscorch_0.2.1.orig.tar.gz
 cfe04225cde56fa3fe102aa9d6986311c02dce4b2311e5b8265f2141513a2f68 12742 
xscorch_0.2.1-1.debian.tar.gz
 0e3a03a8f15efdf9e6ac71d0d445c55a067e1200ec429b1b755decb15da396dd 266442 
xscorch_0.2.1-1_amd64.deb
Files: 
 f7950349a536ad584512206af66bffae 1444 games optional xscorch_0.2.1-1.dsc
 9c3a08cc97242ff9a1fad010dc40d9a7 849773 games optional 
xscorch_0.2.1.orig.tar.gz
 46440624e4d31948230a492b31859464 12742 games optional 
xscorch_0.2.1-1.debian.tar.gz
 357975c5960abb7f9c22b092086a264a 266442 games optional 
xscorch_0.2.1-1_amd64.deb

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

iQEcBAEBAgAGBQJOOQvTAAoJEEmrPP2rYrC4buQH/jrgBaeF6eVRxPE1BECLyJPg
SKvTQ8EfL2nILIcHbyHb14aMVGbQsgCQ9fN3uvYfXLqmD6TtG12SmsLN46yjcY7e
elWexae0gpdJ7UVVTf4RcMbi9mq+WKvCsg51tktuJAYU6nk3R+MpP7PJH7+argl2
jtqy0Jqj3cnvqUmvm0UBoTgOqStCam+Hfa8bvyO7HMyb8eRI4VreZw08oWfV1ptH
KpMOdw6ap0jjQRUyWel3nXWHvTfBHntXyyB/d+P6Vabh4Kn0DXupIcf8wT4gno9L
zTGTkCf4OhC/5oJ4i/nYJR/FWi7WPnSClVLNqvf4Q1y1hMy2AtjBmI2TAn+xHPo=
=ds0e
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to