Bug#624253: libopenblas.so.0 is not removed during debian/rules clean

Ryan Lovett ryan at stat.berkeley.edu
Tue Apr 26 21:47:58 UTC 2011


Package: openblas
Severity: normal

When I run "make clean" after having built a custom package, the file
libopenblas.so.0 remains behind. The build runs

  ...
  rm libopenblas.so
  mv libopenblas_*.so libopenblas.so.0
  ln -s libopenblas.so.0 libopenblas.so
  ...

and OpenBLAS only looks for libopenblas.so during its "make clean".

I initially thought that this was unimportant since the file's presence
wouldn't get in the way of later builds, (my build tree is on an NFS
volume accessible to all the hosts I'm building it on). My build however,
using "export TARGET=custom ; dpkg-buildpackage -rfakeroot" as opposed to
the documented "fakeroot debian/rules custom", errors out with:

  dpkg-source: error: cannot represent change to openblas-0.1alpha1/libopenblas.so.0: binary file contents changed
  dpkg-source: error: add libopenblas.so.0 in debian/source/include-binaries if you want to store the modified binary in the debian tarball

Perhaps debian/rules can be altered?

--- /tmp/rules  2011-04-19 12:01:08.000000000 -0700
+++ debian/rules    2011-04-26 14:13:11.141600000 -0700
@@ -35,6 +35,7 @@
 
 clean::
    make clean
+   rm -f libopenblas.so.0
 
 # Build a custom package optimized for the current arch
 custom-stamp:






More information about the debian-science-maintainers mailing list