Your message dated Sat, 15 Dec 2018 19:49:12 +0000 with message-id <[email protected]> and subject line Bug#913663: fixed in debhelper 11.5.4 has caused the Debian Bug report #913663, regarding dh_installman: crashes with "stdin not open for reading!" if run under nohup 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 [email protected] immediately.) -- 913663: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913663 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: debhelper Version: 11.5.3 Severity: normal Tags: patch I was building a large package offline using: nohup debuild -us -uc >& ../logfile & Unfortunately the build crashed during dh_installman, with the error message: stdin not open for reading! stdin not open for reading! dh_installman: man -l --recode UTF-8 ./debian/anki/usr/share/man/man1/anki.1 > debian/anki/usr/share/man/man1/anki.1.dh-new returned exit code 2 dh_installman: Aborting due to earlier error (I was actually building a much larger package, but tested it on this small one for debugging purposes.) I have tracked down the problem: it turns out that "man" really objects to being run without a readable stdin for some reason. The attached patch, which is somewhat clunky, fixes this. A nicer solution would be to include the following snippet after line 461 of /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm: if (defined(my $input = $options->{stdin})) { open(STDIN, '<', $input) or error("redirect STDIN failed: $!"); } and then to include: stdin => '/dev/null' in the options list on line 303 of dh_installman. Best wishes, Julian -- System Information: Debian Release: buster/sid APT prefers stretch APT policy: (500, 'stretch'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages debhelper depends on: ii autotools-dev 20180224.1 ii dh-autoreconf 19 ii dh-strip-nondeterminism 0.044-1 ii dpkg 1.19.2 ii dpkg-dev 1.19.2 ii dwz 0.12-2 ii file 1:5.34-2 ii libdpkg-perl 1.19.2 ii man-db 2.8.4-3 ii perl 5.28.0-3 ii po-debconf 1.0.20 debhelper recommends no packages. Versions of packages debhelper suggests: ii dh-make 2.201801 -- no debconf information--- /usr/bin/dh_installman 2018-10-31 21:02:00.000000000 +0000 +++ dh_installman 2018-11-13 19:22:24.069750671 +0000 @@ -272,7 +272,7 @@ }); # Now utf-8 conversion. -if (defined `man --version`) { +if (defined `man --version < /dev/null`) { my (@manpages_to_reencode, @issues); for my $package (@{$dh{DOPACKAGES}}) { next if is_udeb($package); @@ -300,7 +300,7 @@ for my $manpage (@_) { my $manpage_tmp = "${manpage}.dh-new"; my $manpage_cmd = ($manpage =~ m{^/}) ? $manpage : "./${manpage}"; - doit({ stdout => $manpage_tmp }, 'man', '-l', '--recode', 'UTF-8', $manpage_cmd); + complex_doit('man', '-l', '--recode', 'UTF-8', qq["$manpage_cmd"], '>', qq["$manpage_tmp"], '<', '/dev/null'); # recode uncompresses compressed pages my $orig = $manpage; rm_files($orig) if $manpage =~ s/\.(gz|Z)$//;
--- End Message ---
--- Begin Message ---Source: debhelper Source-Version: 11.5.4 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Niels Thykier <[email protected]> (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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 15 Dec 2018 19:18:47 +0000 Source: debhelper Binary: debhelper dh-systemd Architecture: source Version: 11.5.4 Distribution: unstable Urgency: medium Maintainer: Debhelper Maintainers <[email protected]> Changed-By: Niels Thykier <[email protected]> Description: debhelper - helper programs for debian/rules dh-systemd - debhelper add-on to handle systemd unit files - transitional pack Closes: 913663 914419 915255 915530 Changes: debhelper (11.5.4) unstable; urgency=medium . [ Niels Thykier ] * Dh_Lib.pm: Reopen stdin to read from /dev/null in doit (and its sibling functions) to prevent issues when stdin is open in write-only mode (which is what nohup(1) does). Thanks to Julian Gilbey for reporting the issue and providing a sample patch for it as well. (Closes: #913663) * fr.po: Add missing dash in "--parallel" in a translation. Thanks to Christian Marillat for reporting the issue. (Closes: #915255) * debhelper.7: Document that the "python-distutils" build system is removed in compat 12. Thanks to Axel Beckert for reporting the omission. (Closes: #915530) . [ Luca Boccassi ] * makefile.pm: revert passing V=0/1 to makefiles. Fixes FTBFS in apcupsd (and possibly more). (Closes: #914419) Checksums-Sha1: 82f215f2c3f5a78ea416bce178a68a558c284c07 1689 debhelper_11.5.4.dsc 21179833ca5781f03bb97e8cc3f8a4ec1bdef195 478008 debhelper_11.5.4.tar.xz c6e598cda6248cc368428132dea6a2ef156c03ef 4426 debhelper_11.5.4_source.buildinfo Checksums-Sha256: 9ebe2cada7ad79739b975144cdea73821a940f35cfbe275403721b4ab08cddf8 1689 debhelper_11.5.4.dsc dc03b8667b246d9122b2941e22975a30dec001352c4e847d1fbef0d485a5c8f6 478008 debhelper_11.5.4.tar.xz 84207be85f5c21171f99faec7c06113d54bdd3ff6155f5c553859b836c94386b 4426 debhelper_11.5.4_source.buildinfo Files: 70e1a540e1ae666834d435944ef4f90a 1689 devel optional debhelper_11.5.4.dsc bd11ef4d8dad1bd37089cbe55c41b63e 478008 devel optional debhelper_11.5.4.tar.xz ab3028294f26d38044db90802bab6890 4426 devel optional debhelper_11.5.4_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE8f9dDX4ALfD+VfsMplt42+Z8eqwFAlwVVlUACgkQplt42+Z8 eqxqkg/+KvhJN1s7m0/aI2mPxfZ9RMZYp+HavN7BU3bQX5LNrMM4Z/c88CGNqnDp U1i88DNNmULxdFvqPG+23ChBM1RUl+3pMGFOVyGE2LAyDp0j/gU5A+ztrOpJIAIZ TfJ+4ABn7MtlVYskvgoOlQUdP7uNWaNID7DrJWQUbYcmMaohoe1fYdFVDHwRcukt BQfbfRM51krAFgbDJl4el8JvJp5WwWnDP/OLS7QJQhJ171wkFxSM6RbjMFvMYE0X GEEJIoonfuYFxENtd+ef3rCemJNpF1FMK3NkJYo02RuPYKsV2lLFaXCJp/YMPp/h vxBlpG9oYtTWahUbLEhTWsaADr5obd1cdEq6wdZnhwQGIQqeDKGRdUpZaXsFbjmi Xw7v/csFHzHwyx+wThDzGg8497ao/ys7mio8q3DMc0gyOvfr8EzfwBJokiAXDNUv xPHfVn1DbW1rCA3Uo2q0KP4LtweIDoB7DhjyEP1Zd4uKn/DPvZ4s3S2MKSekBROj un54+jGo3Dd9h/93vGmPPWa81EV+0uZZ+7MmW8aAFMQWxaBXNGC0Ovmb50YdRGcd FNg3iUfmymwnw/ncQ8zKO7LgdKtmNu9btPzOsAYqkWNdM/RYWutroYeU3YPT7HIn l+sVHfgpo50IPS6OlXGLszDPNqFvBYq5ubdfdEdRNgJ9RBw+uGQ= =5tUf -----END PGP SIGNATURE-----
--- End Message ---

