On Sun, Dec 22, 2002 at 01:17:12PM +0100, Jérôme Marant wrote: > Sven Luther <[EMAIL PROTECTED]> writes: > > > >> > >> 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. > > Yes. > > However, you cannot change spamoracle-byte that way because dpkg won't let you > replace /usr/share/doc/spamoracle-byte by a symlink. You need > trick (I know of) to make it possible.
Err, what trick and what is the problem in the first place. The above mentioned debian/rules yielded a debian package which i installed over my spamoracle package without problem. > > 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 ? > > Could we wait first for everyone to agree about this? Fine with me. Friendly, Sven Luther

