Package: debhelper
Version: 7.0.15
Severity: wishlist

I'm switching a package from dh_movefiles to dh_install and there is
one facility that I really miss.

The way the package works is that after "make install" there are a
whole bunch of files in debian/tmp/usr/bin/.  Of these, file djview3
should go in package djview3, and the remaining dozen should go in
djvulibre-bin.

With dh_movefiles this was easy to accomplish:

 - list djvulibre-bin after djview3 in debian/control
 - put usr/bin/djview3 in djview3.files
 - put usr/bin/* in djvulibre-bin.files

But this doesn't work with dh_install, as the analogous setup with
djview3.install and djvulibre-bin.install results in two copies of
djview3, one in each binary package.

The can be worked around by expanding out the wildcard, sans djview3,
in djvulibre-bin.install.  But that is a very fragile, as it requires
a line to be added each time a new executable is added upstream.

It seems to me that *either* some exception mechanism, like

  $ cat others-bin.install

  :EXCEPT usr/bin/foo
  :EXCEPT usr/share/man/man1/foo.1
  usr/bin/*
  usr/share/man/man1/*

or some precedence mechanism, like

  $ cat others-bin.install

  :NOREPEAT foo-bin
  usr/bin/*
  usr/share/man/man1/*

would solve the problem and be easy to explain, and straightforward to
implement.

(I suppose
 dh_install -p djvulibre-bin --exclude=djview3
would work, or
 dh_install
 rm libdjvulibre-bin/usr/bin/djview3
but that also gets ugly and brittle quite quickly, and also makes
eventual migration to "dh binary-arch" and friends trickier.)

                                        --Barak.
--
Barak A. Pearlmutter
 Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
 http://www.bcl.hamilton.ie/~barak/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to