Hi Frédéric, Il 29/01/2012 10:33, Picca Frédéric-Emmanuel ha scritto: > Package: python-tables > Version: 2.3.1-1 > Followup-For: Bug #657789 > > Hello, > > I saw your proposed patch. > > +import platform > + > + # Using ``setuptools`` enables lots of goodies, such as building eggs. > + if 'FORCE_SETUPTOOLS' in os.environ: > +@@ -127,8 +128,14 @@ > + add_from_flags("LDFLAGS", "-L", default_library_dirs) > > it seems that the upstream can add path provided from the LDFLAGS, so the best > thinks to do is to > use the multiarch [1] instead of patching the code. >
Do you mean adding something like LDFLAGS += -L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) in debian/rules? Yes it seems to be a solution by far cleaner. Thank you very much. On the other end I would like do add a better support for multiarch systems upstream, an in that case I can't rely on dpkg-architecture. Any idea on how to do it in a general and safe way? > + default_library_dirs.extend( > + os.path.join(_tree, _arch) > +- for _tree in ('/', '/usr', '/usr/local') > +- for _arch in ('lib64', 'lib') ) > ++ for _tree in ('/', '/usr', '/usr/local') > ++ for _arch in ('lib64', 'lib') > ++ ) > ++ machine = platform.machine() > ++ default_library_dirs.extend( > ++ os.path.join(_tree, "lib", "%s-linux-gnu" % machine) > > on debian we also have freebsd/hurd not only linux ;) > > ++ for _tree in ('/', '/usr', '/usr/local') > ++ ) > + default_runtime_dirs = default_library_dirs > + > + elif os.name == 'nt': > > [1] http://wiki.debian.org/Multiarch/Implementation > > have a good day :) > > Frederic > > > > -- System Information: > Debian Release: wheezy/sid > APT prefers unstable > APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') > Architecture: i386 (i686) > > Kernel: Linux 3.2.0-1-486 > Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages python-tables depends on: > ii libc6 2.13-24 > ii libhdf5-7 [libhdf5-7] 1.8.8-5 > ii python 2.7.2-10 > ii python-numexpr 1.4.2-1.2 > ii python-numpy 1:1.5.1-3 > ii python2.6 2.6.7-4 > ii python2.7 2.7.2-13 > > python-tables recommends no packages. > > Versions of packages python-tables suggests: > pn python-netcdf <none> > pn python-tables-doc <none> > > -- no debconf information > > > -- Antonio Valentino -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org