Your message dated Wed, 20 Apr 2022 06:33:43 +0000
with message-id <e1nh3uj-000eyl...@fasolo.debian.org>
and subject line Bug#1009844: fixed in debhelper 13.7.1
has caused the Debian Bug report #1009844,
regarding debhelper: Build failed with dh_installalternatives: error: 
Alternative ...
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1009844: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009844
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: debhelper
Version: 13.7
Severity: important
Tags: patch

Dear Maintainer,

When rebuilding rsh-redone, the following message is output and the build fails.

dh_installalternatives: error: Alternative "/usr/bin/rsh-redone-rsh" for "rsh" 
in debian/rsh-redone-client.alternatives does not exist in 
debian/rsh-redone-client or is a directory
make: *** [debian/rules:16: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Solved with the following patch.

--- a/usr/bin/dh_installalternatives
+++ b/usr/bin/dh_installalternatives
@@ -99,7 +99,7 @@ sub _parse_alternative_and_generate_main
        if (index($link_name, '/') > -1) {
                error(qq{Invalid link name "${link_name}" in 
"${alternatives_file}": Must not contain slash});
        }
-       if ( ! -l "${tmpdir}/${impl_path}" or -d _) {
+       if ( ! -e "${tmpdir}/${impl_path}" or -d _ or ! -r _) {
                error(qq{Alternative "${impl_path}" for "${link_name}" in 
${alternatives_file} does not exist in ${tmpdir} or is a directory});
        }
        if ($link_name eq $impl_path) {


Thank you,
Hiroyuki YAMAMORI


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 5.10.0-13-686-pae (SMP w/3 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii  autotools-dev            20220109.1
ii  dh-autoreconf            20
ii  dh-strip-nondeterminism  1.13.0-1
ii  dpkg                     1.21.7
ii  dpkg-dev                 1.21.7
ii  dwz                      0.14-1
ii  file                     1:5.41-3
ii  libdebhelper-perl        13.7
ii  libdpkg-perl             1.21.7
ii  man-db                   2.10.2-1
ii  perl                     5.34.0-4
ii  po-debconf               1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: debhelper
Source-Version: 13.7.1
Done: Niels Thykier <ni...@thykier.net>

We believe that the bug you reported is fixed in the latest version of
debhelper, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1009...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niels Thykier <ni...@thykier.net> (supplier of updated debhelper package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 20 Apr 2022 06:17:57 +0000
Source: debhelper
Architecture: source
Version: 13.7.1
Distribution: unstable
Urgency: medium
Maintainer: Debhelper Maintainers <debhel...@packages.debian.org>
Changed-By: Niels Thykier <ni...@thykier.net>
Closes: 1009844
Changes:
 debhelper (13.7.1) unstable; urgency=medium
 .
   * debhelper.pod: Fix several typos.  Thanks to Guillem Jover
     for pointing them out and proposing corrections.
   * dh_installalternatives: Correct a file check that caused
     false-positive rejections of valid alternatives files.  Thanks to
     Hiroyuki YAMAMORI for reporting the bug and providing an initial
     patch.  (Closes: #1009844)
Checksums-Sha1:
 93a28cc155fbc6f959910d6ef8464da4dd9b0a0e 1789 debhelper_13.7.1.dsc
 82e45becc43bc5b51ba9425791d3d6f3af4ce3c6 570712 debhelper_13.7.1.tar.xz
 5457b64146df4083b18d527ab61b7243c949be41 5117 debhelper_13.7.1_source.buildinfo
Checksums-Sha256:
 d148bc66e86fb45b524644c01b2f13fb0f04fc337a0b3f75d536063b8b1d370c 1789 
debhelper_13.7.1.dsc
 077b81235fa49f5fdf69f2d742d8437d1b925e7b7e2badadbb0fce652d277c10 570712 
debhelper_13.7.1.tar.xz
 ac5d74f8e66ac2ceb80a4f27e67f0381a07a92190b8e8c1586c87e5ae37723f6 5117 
debhelper_13.7.1_source.buildinfo
Files:
 6ee2af8ba9a98ae316999462847e2e19 1789 devel optional debhelper_13.7.1.dsc
 802865fd9305e9bb082f505367cafbcb 570712 devel optional debhelper_13.7.1.tar.xz
 d40195d5063762fdefd4c5cf535817ff 5117 devel optional 
debhelper_13.7.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEE8f9dDX4ALfD+VfsMplt42+Z8eqwFAmJfprsSHG5pZWxzQHRo
eWtpZXIubmV0AAoJEKZbeNvmfHqsj3oP/2lsWA3FAZJ/6FOOgtsbwHJrbEFrq3ZI
u1Am/WUZskT2T8hlkVVhGDA9uq/oX1epTO51kYwJxGqfjVQlbKia1TZClToZApBS
ROwfL4kdTtTwCdBcCdTuevllb7A0Wuts66/UCYtmNQ670o5MM2xjxdNhYXfSu9Kr
pBa7iSGzZXPr+L9VUhCfLayLwROCs4sR0unzrxBBaUrrxV+/rcK+8qIbrasy0aFB
YUjiiEf4m2UxPGkQTSzedwPoPMk10jzGeoGoAgD2TPGMEIY1UNZy/uW50mU6cyKB
PDIMp2usNaaiUJylrEjMe5lkp+NnC47ZfMTqXQoZRbtvx55Bt2zSAdSmX6RWIcaW
Hu/5EfdiOxl9zhTGQ5aDEsLHwzeAmd10eTE/nALkWHH1NqKtShXYBM/6Qg+akY6M
kbXalLIWW0k0Lq5lcPlu8DRYrhmJhBiw1gR0fGf2Q2aQP5b/CGe/mtBG0k9KggrE
HPIQGT9dKczGJ3UMEwYIoSIMAv0+4d1Hjgzf9IfozvAH4Qp1T6sZyfI+yLGNOet5
NetEl2cot8DOa9pB02G7vzKLWt0Sc2DPZzcaOIIqcXilebjAbsCyErc8OllPj8Rk
Cu1yNL1GQXu53NTlpHs74tAH8h3HiYG60FXcFI4GqaPbPIOtdVvfFkcykWhgv6Lc
ZLfoEPDQn+WX
=Hatx
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to