Re: <pkg>-byte
On Sun, Dec 22, 2002 at 12:52:17PM +0100, Sven Luther wrote:
> On Sun, Dec 22, 2002 at 12:36:28PM +0100, Jérôme Marant wrote:
> > Sven Luther <luther@dpt-info.u-strasbg.fr> writes:
> >
> > > On Sun, Dec 22, 2002 at 10:56:59AM +0100, Jérôme Marant wrote:
> > >>
> > >> Hello,
> > >>
> > >> What should we do with /usr/share/doc directories when
> > >> we ship <pkg>-byte?
> > >
> > > Well, upto now, i didn't do anything, and the doc directory was
> > > spamoracle-byte.
> > >
> > > It is not a good solution though. And since both packages conflicts, it
> > > makes sense to move the
> > >
> > >> I'd propose that:
> > >> /usr/share/doc/pkg be the real directory and
> > >> /usr/share/doc/pkg-byte be a symlink to it.
$ ls -l /usr/share/doc/spamoracle*
lrwxrwxrwx 1 root root 10 2002-12-22 12:59 /usr/share/doc/spamoracle-byte -> spamoracle
/usr/share/doc/spamoracle:
total 16
-rw-r--r-- 1 root root 374 2002-12-22 12:57 changelog.Debian.gz
-rw-r--r-- 1 root root 489 2002-10-20 11:38 copyright
-rw-r--r-- 1 root root 5163 2002-08-26 14:33 README.gz
And this did the trick :
$ cat debian/rules
...
dh_installdocs -i
mv $(CURDIR)/debian/spamoracle-byte/usr/share/doc/spamoracle-byte \
$(CURDIR)/debian/spamoracle-byte/usr/share/doc/spamoracle
ln -sf spamoracle $(CURDIR)/debian/spamoracle-byte/usr/share/doc/spamoracle-byte
dh_installexamples -i
...
In truth, you should maybe do this later on, since at least
dh_installexamples will also put things in the /usr/share/doc directory.
Sounds good, no ? I will add it to the next ocaml_packaging_policy,
unless someone objects.
Could you fill a bug against debhelper for an option to do this directly
from dh_installdocs ?
Friendly,
Sven Luther
Reply to: