[dpkg] 38/192: build: Install perl man pages in section 3perl

Ximin Luo infinity0 at debian.org
Tue Oct 17 11:03:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit 0b020bec8cffe1bf21931f868262d7a34592d1a3
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Apr 9 03:19:25 2017 +0200

    build: Install perl man pages in section 3perl
---
 debian/changelog    |  1 +
 scripts/Makefile.am | 12 +++++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 20d94f1..86e9404 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ dpkg (1.19.0) UNRELEASED; urgency=medium
     - Use new gcc-7 -Wrestrict and -Wshift-negative-value warnings if
       available.
     - Do not override the default DEPENDENCIES for libdpkg, extend it instead.
+    - Install perl man pages in section 3perl.
 
  -- Guillem Jover <guillem at debian.org>  Thu, 18 May 2017 05:27:31 +0200
 
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index ba175b5..efc970c 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -123,6 +123,8 @@ EXTRA_DIST += \
 # Keep it even if empty to have man3dir correctly set
 man3_MANS =
 
+man_perl_section = 3perl
+
 do_perl_subst = $(AM_V_GEN) sed \
 	-e "s:^\#![[:space:]]*/usr/bin/perl:\#!$(PERL):" \
 	-e "s:our \$$CONFDIR = .*;:our \$$CONFDIR = '$(pkgconfdir)';:" \
@@ -158,10 +160,10 @@ if BUILD_POD_DOC
 	for module in $(nobase_dist_perllib_DATA); do \
 	  name=`echo $$module | sed -e 's|/|::|g' -e 's/\.pm$$//'`; \
 	  $(POD2MAN) --utf8 --center=libdpkg-perl --release=$(VERSION) \
-	    --name="$$name" --section=3 $(srcdir)/$$module \
-	    >$(DESTDIR)$(man3dir)/$$name.3; \
-	  test -s $(DESTDIR)$(man3dir)/$$name.3 || \
-	  rm -f $(DESTDIR)$(man3dir)/$$name.3; \
+	    --name="$$name" --section=$(man_perl_section) $(srcdir)/$$module \
+	    >$(DESTDIR)$(man3dir)/$$name.$(man_perl_section); \
+	  test -s $(DESTDIR)$(man3dir)/$$name.$(man_perl_section) || \
+	  rm -f $(DESTDIR)$(man3dir)/$$name.$(man_perl_section); \
 	done
 endif
 
@@ -176,7 +178,7 @@ install-data-hook:
 uninstall-local:
 if BUILD_POD_DOC
 	for module in $(nobase_dist_perllib_DATA); do \
-	  rm -f $(DESTDIR)$(man3dir)/`echo $$module | sed -e 's|/|::|g' -e 's/\.pm$$/.3/'`; \
+	  rm -f $(DESTDIR)$(man3dir)/`echo $$module | sed -e 's|/|::|g' -e 's/\.pm$$/.$(man_perl_section)/'`; \
 	done
 endif
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list