[Debian-astro-maintainers] building casacore on jessie

Vincent McIntyre vincent.mcintyre at csiro.au
Fri May 12 07:51:05 UTC 2017


Hi,

I am trying to get casacore to build for jessie, starting from
http://http.debian.net/debian/pool/main/c/casacore/casacore_2.2.0-2.dsc

and a clean jessie schroot.

I've tried with debhelper from jessie plus debhelper from backports,
I get much the same result. Details below but the TL;DR is that
the debian/<package>.install files seem to have an extra path element,
ie usr/lib/*/libcasa_*.so instead of usr/lib/libcasa_*.so

I am almost certainly doing something wrong, can anyone offer
some guidance?

Kind regards
Vince

(Preparation:
  dget the source
  run fakeroot debian/rules binary to build the code,
  which falls over when putting together the package)

% fakeroot debian/rules binary
dh binary --parallel --buildsystem=cmake
   dh_install -O--parallel -O--buildsystem=cmake
        cp -a debian/tmp/usr/include/casacore debian/casacore-dev//usr/include/
dh_install: casacore-dev missing files (usr/lib/*/libcasa_*.so), aborting
debian/rules:17: recipe for target 'binary' failed
make: *** [binary] Error 20


But the files are there, just in a slightly different location.

% ls debian/tmp/usr/lib/*/libcasa_*.so
/bin/ls: No match.

% ls debian/tmp/usr/lib/libcasa_*.so
0 debian/tmp/usr/lib/libcasa_casa.so@          0 debian/tmp/usr/lib/libcasa_mirlib.so@
0 debian/tmp/usr/lib/libcasa_coordinates.so@   0 debian/tmp/usr/lib/libcasa_msfits.so@
0 debian/tmp/usr/lib/libcasa_derivedmscal.so@  0 debian/tmp/usr/lib/libcasa_ms.so@
0 debian/tmp/usr/lib/libcasa_fits.so@          0 debian/tmp/usr/lib/libcasa_python3.so@
0 debian/tmp/usr/lib/libcasa_images.so@        0 debian/tmp/usr/lib/libcasa_python.so@
0 debian/tmp/usr/lib/libcasa_lattices.so@      0 debian/tmp/usr/lib/libcasa_scimath_f.so@
0 debian/tmp/usr/lib/libcasa_meas.so@          0 debian/tmp/usr/lib/libcasa_scimath.so@
0 debian/tmp/usr/lib/libcasa_measures.so@      0 debian/tmp/usr/lib/libcasa_tables.so@


debian/casacore-dev.install has this:
usr/include/casacore
usr/lib/*/libcasa_*.so

which I suppose should be this:
usr/include/casacore
usr/lib/libcasa_*.so

But if I make that hack then we fall over a bit later
% fakeroot debian/rules binary
dh binary --parallel --buildsystem=cmake
   dh_install -O--parallel -O--buildsystem=cmake
        cp -a debian/tmp/usr/include/casacore debian/casacore-dev//usr/include/
        install -d debian/casacore-dev//usr/lib
        cp -a debian/tmp/usr/lib/libcasa_casa.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_coordinates.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_derivedmscal.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_fits.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_images.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_lattices.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_meas.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_measures.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_mirlib.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_ms.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_msfits.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_python.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_python3.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_scimath.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_scimath_f.so debian/casacore-dev//usr/lib/
        cp -a debian/tmp/usr/lib/libcasa_tables.so debian/casacore-dev//usr/lib/
        install -d debian/casacore-tools//usr
        cp -a debian/tmp/usr/bin debian/casacore-tools//usr/
dh_install: libcasa-casa2 missing files (/usr/lib/*/libcasa_casa.so.*), aborting
debian/rules:17: recipe for target 'binary' failed
make: *** [binary] Error 20

% grep -lF 'lib/*/libcasa' debian/*.install
debian/libcasa-casa2.install
debian/libcasa-coordinates2.install
debian/libcasa-derivedmscal2.install
debian/libcasa-fits2.install
debian/libcasa-images2.install
debian/libcasa-lattices2.install
debian/libcasa-meas2.install
debian/libcasa-measures2.install
debian/libcasa-mirlib2.install
debian/libcasa-ms2.install
debian/libcasa-msfits2.install
debian/libcasa-python2.install
debian/libcasa-python3-2.install

Here's the result with the backports debhelper

% fakeroot debian/rules binary
dh binary --parallel --buildsystem=cmake
   dh_install -O--buildsystem=cmake
        cp --reflink=auto -a debian/tmp/usr/include/casacore debian/casacore-dev//usr/include/
dh_install: Cannot find (any matches for) "usr/lib/*/libcasa_*.so" (tried in "." and "debian/tmp")
dh_install: casacore-dev missing files: usr/lib/*/libcasa_*.so
dh_install: Cannot find (any matches for) "/usr/lib/*/libcasa_casa.so.*" (tried in "." and "debian/tmp")
dh_install: libcasa-casa2 missing files: /usr/lib/*/libcasa_casa.so.*
dh_install: Cannot find (any matches for) "/usr/lib/*/libcasa_scimath.so.*" (tried in "." and "debian/tmp")
dh_install: libcasa-scimath2 missing files: /usr/lib/*/libcasa_scimath.so.*
dh_install: Cannot find (any matches for) "/usr/lib/*/libcasa_scimath_f.so.*" (tried in "." and "debian/tmp")
...

-- 



More information about the Debian-astro-maintainers mailing list