Bug#50091: perl: Building with profile nodoc fails

Henry N. henrynmail-debian at yahoo.com
Tue Jun 6 15:48:15 BST 2023


Package: perl
Version: 5.36.0-7
Followup-For: Bug #50091
Usertags: rebootstrap

Dear Maintainer,

building perl from source with profile nodocs fails.

# mkdir perl
# cd perl
# apt source perl
# apt build-dep perl
# cd perl-5.36.0/
# dpkg-buildpackage -B -Pnodoc,nocheck -uc -us

mv: cannot stat 'debian/libperl5.36/usr/share/man/man1/perl.1': No such file or directory
mv: cannot stat 'debian/libperl5.36/usr/share/man/man1/cpan.1': No such file or directory
make[1]: *** [debian/rules:291: execute_after_dh_installman-arch] Error 1
make[1]: Leaving directory '/tmp/perl/perl-5.36.0'
make: *** [debian/rules:79: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-16-amd64 (SMP w/2 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: unable to detect

Versions of packages perl depends on:
ii  dpkg               1.21.22
ii  libperl5.36        5.36.0-7
ii  perl-base          5.36.0-7
ii  perl-modules-5.36  5.36.0-7

Versions of packages perl recommends:
ii  netbase  6.4

Versions of packages perl suggests:
pn  libtap-harness-archive-perl                             <none>
pn  libterm-readline-gnu-perl | libterm-readline-perl-perl  <none>
ii  make                                                    4.3-4.1
pn  perl-doc                                                <none>

-- no debconf information
-------------- next part --------------
--- perl-5.36.0/debian/rules
+++ perl-5.36.0/debian/rules
@@ -287,11 +287,13 @@
 endif
 
 execute_after_dh_installman-arch:
+ifeq (,$(filter nodoc, $(DEB_BUILD_PROFILES)))
 	# put version+arch -specific manpages in libperl5.xx
 	for prefix in perl cpan; do \
 	  mv debian/libperl$(version)/usr/share/man/man1/$$prefix.1 \
 	     debian/libperl$(version)/usr/share/man/man1/$${prefix}$(version)-$(archtriplet).1; \
 	done
+endif
 
 override_dh_strip:
 	dh_strip --no-package=perl-debug --dbg-package=perl-debug


More information about the Perl-maintainers mailing list