[Deb-scipy-devel] Bug#450443: python-numpy: Patch to fix FTBFS

Jonas Smedegaard dr at jones.dk
Fri Nov 30 02:33:44 UTC 2007


Package: python-numpy
Version: 1:1.0.1-8
Followup-For: Bug #450443


The attached patch solves the packaging bug.

Kind regards,

 - Jonas

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

Kernel: Linux 2.6.23-1.0.0jones1-c3-2-desktop (PREEMPT)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-numpy depends on:
ii  lapack3 [liblapack.so. 3.0.20000531a-6.1 library of linear algebra routines
ii  libc6                  2.6.1-1+b1        GNU C Library: Shared libraries
ii  libg2c0                1:3.4.6-6         Runtime library for GNU Fortran 77
ii  libgcc1                1:4.2.2-3         GCC support library
ii  python                 2.4.4-6           An interactive high-level object-o
ii  python-central         0.5.15            register and build utility for Pyt
ii  python-numpy-dev       1:1.0.1-8         Numerical Python adds a fast array
ii  refblas3 [libblas.so.3 1.2-8             Basic Linear Algebra Subroutines 3

python-numpy recommends no packages.

-- no debconf information
-------------- next part --------------
diff -u python-numpy-1.0.3/debian/rules python-numpy-1.0.3/debian/rules
--- python-numpy-1.0.3/debian/rules
+++ python-numpy-1.0.3/debian/rules
@@ -45,8 +45,8 @@
 	done
 
 	: # Add unversioned f2py script
-	[ -f debian/python-numpy/usr/bin/f2py ] \
-	  || ln -s f2py$(cdbs_python_current_version) debian/python-numpy/usr/bin/f2py
+	mv $(DEB_DESTDIR)/usr/bin/f2py $(DEB_DESTDIR)/usr/bin/f2py$(cdbs_python_current_version)
+	ln -s f2py$(cdbs_python_current_version) debian/python-numpy/usr/bin/f2py
 
 # 	: # Add more f2py files
 # 	for v in $(cdbs_python_build_versions); do \
diff -u python-numpy-1.0.3/debian/changelog python-numpy-1.0.3/debian/changelog
--- python-numpy-1.0.3/debian/changelog
+++ python-numpy-1.0.3/debian/changelog
@@ -1,3 +1,10 @@
+python-numpy (1:1.0.3-1.0.0jones1) jones; urgency=low
+
+  * Unofficial build based on Debian sid packaging.
+  * Fix installing both versioned and unversioned f2py. Closes: bug#450443.
+
+ -- Jonas Smedegaard <dr at jones.dk>  Fri, 30 Nov 2007 02:16:27 +0100
+
 python-numpy (1:1.0.3-1) unstable; urgency=low
 
   * New upstream version.


More information about the Deb-scipy-devel mailing list