Package: osptoolkit
Severity: normal

Hi, 

        The attached patch solves the FTBFS with ld --no-add-needed 
by adding the required libraries to the linker parameters.  

Also, debian/rules has been modified to clear the dependency_libs
entry of la files, according to the following:

http://wiki.debian.org/ReleaseGoals/LAFileRemoval
http://lists.debian.org/debian-devel/2011/05/msg01003.html
http://lists.debian.org/debian-devel/2011/05/msg01146.html

This patch has been applied in the current development release 
of Ubuntu, Oneiric.  This is the bug report:

https://bugs.launchpad.net/ubuntu/oneiric/+source/osptoolkit/+bug/756018

Thanks for considering this patch.

-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u osptoolkit-3.4.2/Makefile osptoolkit-3.4.2/Makefile
--- osptoolkit-3.4.2/Makefile
+++ osptoolkit-3.4.2/Makefile
@@ -119,7 +119,7 @@
 
 enroll: $(ENREXEC)
 $(ENREXEC): $(ENROBJS) $(OSPLIB)
-	libtool --mode=link $(CC) -o $(@) $(^)
+	libtool --mode=link $(CC) -o $(@) $(^) $(SSLLIBS)
 
 test: $(EXPEXEC)
 $(EXPEXEC): $(EXPOBJS) $(OSPLIB)
diff -u osptoolkit-3.4.2/debian/changelog osptoolkit-3.4.2/debian/changelog
--- osptoolkit-3.4.2/debian/changelog
+++ osptoolkit-3.4.2/debian/changelog
@@ -1,3 +1,13 @@
+osptoolkit (3.4.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Makefile: added ssl libraries to enroll target to avoid FTBFS 
+    when using ld --no-add-needed (Closes: #555877)
+  * debian/rules: modified to clear the dependency_libs field of .la files
+    on install target.
+
+ -- Sebastian Carneiro <scarne...@fibertel.com.ar>  Mon, 11 Jul 2011 20:34:44 -0300
+
 osptoolkit (3.4.2-1) unstable; urgency=low
 
   * Initial Release (Closes: Bug#468110).
diff -u osptoolkit-3.4.2/debian/rules osptoolkit-3.4.2/debian/rules
--- osptoolkit-3.4.2/debian/rules
+++ osptoolkit-3.4.2/debian/rules
@@ -68,7 +68,9 @@
 
 	# Add here commands to install the package into debian/libosptk-dev
 	$(MAKE) VERSION="$(version)" MAJOR="$(major)" DESTDIR=$(CURDIR)/debian/libosptk$(major)-dev install-dev
-
+	find $(CURDIR)/debian/libosptk$(major)-dev -name "*.la" -exec \
+		sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
+ 
 	# Add here commands to install the package into debian/osptoolkit
 	$(MAKE) VERSION="$(version)" MAJOR="$(major)" DESTDIR=$(CURDIR)/debian/osptoolkit install-bin
 

Reply via email to