Bug#868204: dh_installdocs tries to install README.Debian even if it already exists (regression)

2017-07-13 Thread Stéphane Glondu

On 13/07/2017 08:14, Niels Thykier wrote:

If you don't want to have dh_installdocs to touch that file, then you
should use either:

 * --exclude usr/share/doc/ocaml-nox/README.Debian
   => Make dh_installdocs stop trying to install anything there.

 * --ignore debian/README.Debian
   => Make dh_installdocs pretend that debian/README.Debian does not
  exists.

(Untested, from finger memory)

I would recommend using --ignore for this case because it appears to be
trivially applicable plus I hope to optimize dh_installdocs eventually
and my current optimization methods are disabled with --exclude.


Using --ignore works. Applied in ocaml 4.02.3-10.


Cheers,

--
Stéphane



Bug#868204: dh_installdocs tries to install README.Debian even if it already exists (regression)

2017-07-13 Thread Niels Thykier
Control: found -1 10.5

On Thu, 13 Jul 2017 05:25:33 +0200 =?utf-8?q?St=C3=A9phane_Glondu?=
 wrote:
> Package: debhelper
> Version: 10.6.3
> Severity: serious
> 
> Hello,
> 
> At the moment, ocaml FTBFS in unstable. I think this is because of
> debhelper. Indeed, the error message is:
> 
> > [...]
> > dh_install: ./debian/ld.conf overwrites debian/tmp/usr/lib/ocaml/ld.conf 
> > (both installed as: /usr/lib/ocaml/ld.conf)
> >dh_installdocs
> > dh_installdocs: copy(debian/README.Debian, 
> > debian/ocaml-nox/usr/share/doc/ocaml-nox/README.Debian): No such file or 
> > directory
> > debian/rules:81: recipe for target 'binary' failed
> > make: *** [binary] Error 2
> 
> Here, debian/ocaml-nox/usr/share/doc/ocaml-nox/README.Debian exists
> already and dh_ocamldoc should not try to overwrite it.
> 
> Note that debian/ocaml-nox/usr/share/doc/ocaml-nox/README.Debian at
> this moment of the build is a dangling symbolic link, but that
> shouldn't matter.
> 
> Cheers,
> 
> -- 
> Stéphane
> 
> [...]

Hi Stéphane,

Thanks for the report.

I have applied a patch to debhelper to restore the original behaviour,
which was to replace the dangling symlink.  As I understand you that was
not what you had hoped, but it is what I have to do to fix this
regression (otherwise other people may still be surprised).

If you don't want to have dh_installdocs to touch that file, then you
should use either:

 * --exclude usr/share/doc/ocaml-nox/README.Debian
   => Make dh_installdocs stop trying to install anything there.

 * --ignore debian/README.Debian
   => Make dh_installdocs pretend that debian/README.Debian does not
  exists.

(Untested, from finger memory)

I would recommend using --ignore for this case because it appears to be
trivially applicable plus I hope to optimize dh_installdocs eventually
and my current optimization methods are disabled with --exclude.

Thanks,
~Niels



Bug#868204: dh_installdocs tries to install README.Debian even if it already exists (regression)

2017-07-12 Thread Stéphane Glondu
Package: debhelper
Version: 10.6.3
Severity: serious

Hello,

At the moment, ocaml FTBFS in unstable. I think this is because of
debhelper. Indeed, the error message is:

> [...]
> dh_install: ./debian/ld.conf overwrites debian/tmp/usr/lib/ocaml/ld.conf 
> (both installed as: /usr/lib/ocaml/ld.conf)
>dh_installdocs
> dh_installdocs: copy(debian/README.Debian, 
> debian/ocaml-nox/usr/share/doc/ocaml-nox/README.Debian): No such file or 
> directory
> debian/rules:81: recipe for target 'binary' failed
> make: *** [binary] Error 2

Here, debian/ocaml-nox/usr/share/doc/ocaml-nox/README.Debian exists
already and dh_ocamldoc should not try to overwrite it.

Note that debian/ocaml-nox/usr/share/doc/ocaml-nox/README.Debian at
this moment of the build is a dangling symbolic link, but that
shouldn't matter.

Cheers,

-- 
Stéphane

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), 
LANGUAGE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debhelper depends on:
ii  autotools-dev20161112.1
ii  binutils 2.28-6
ii  dh-autoreconf14
ii  dh-strip-nondeterminism  0.035-2
ii  dpkg 1.18.24
ii  dpkg-dev 1.18.24
ii  file 1:5.30-1
ii  libdpkg-perl 1.18.24
ii  man-db   2.7.6.1-2
ii  perl 5.24.1-4
ii  po-debconf   1.0.20

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  

-- no debconf information