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

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1e618ad140e24441a7ebdbfe0c4822aa0e06118c

commit 1e618ad140e24441a7ebdbfe0c4822aa0e06118c
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Fri Sep 28 01:48:32 2018 +0200

    build: Generalize PACKAGE_CPAN_SIGN by setting PACKAGE_DIST_IS_RELEASE 
instead
    
    Set the more generic name from within DPKG_DIST_IS_RELEASE, and use that
    directly in the Build.PL.in file.
---
 configure.ac        | 1 -
 debian/changelog    | 1 +
 m4/dpkg-build.m4    | 6 +++++-
 scripts/Build.PL.in | 2 +-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 121c7665a..9ba198104 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,6 @@ AC_SUBST([PACKAGE_VCS_URL], 
[https://git.dpkg.org/git/dpkg/dpkg.git])
 AC_SUBST([PACKAGE_VCS_WEB], [https://git.dpkg.org/cgit/dpkg/dpkg.git])
 AC_SUBST([PACKAGE_BUG_WEB], [https://bugs.debian.org/src:dpkg])
 AC_SUBST([PACKAGE_CPAN_NAME], [Dpkg])
-AC_SUBST([PACKAGE_CPAN_SIGN], [$dpkg_dist_is_release])
 AC_CONFIG_SRCDIR([lib/dpkg/dpkg.h])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_AUX_DIR([build-aux])
diff --git a/debian/changelog b/debian/changelog
index 64f85b002..a01776335 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ dpkg (1.19.2) UNRELEASED; urgency=medium
   * Build system:
     - Distribute a LICENSE file on CPAN.
     - Do not make the Build.PL script executable.
+    - Generalize PACKAGE_CPAN_SIGN by setting PACKAGE_DIST_IS_RELEASE instead.
 
   [ Updated programs translations ]
   * Polish (Ɓukasz Dulny).
diff --git a/m4/dpkg-build.m4 b/m4/dpkg-build.m4
index 5b98849c3..bd8a2e68f 100644
--- a/m4/dpkg-build.m4
+++ b/m4/dpkg-build.m4
@@ -86,7 +86,8 @@ AC_DEFUN([DPKG_DEB_COMPRESSOR], [
 
 # DPKG_DIST_IS_RELEASE()
 # --------------------
-# Check whether we are preparing a distribution tarball for a release.
+# Check whether we are preparing a distribution tarball for a release, and
+# set PACKAGE_DIST_IS_RELEASE accordingly.
 AC_DEFUN([DPKG_DIST_IS_RELEASE], [
   dpkg_dist_version=$srcdir/.dist-version
   AS_IF([test -f $dpkg_dist_version && grep -q -v '[-]' $dpkg_dist_version], [
@@ -95,6 +96,9 @@ AC_DEFUN([DPKG_DIST_IS_RELEASE], [
     dpkg_dist_is_release=0
   ])
   unset dpkg_dist_version
+  AM_CONDITIONAL([PACKAGE_DIST_IS_RELEASE],
+    [test "$dpkg_dist_is_release" -eq 1])
+  AC_SUBST([PACKAGE_DIST_IS_RELEASE], [$dpkg_dist_is_release])
 ])# DPKG_DIST_IS_RELEASE
 
 # DPKG_DIST_CHECK(COND, ERROR)
diff --git a/scripts/Build.PL.in b/scripts/Build.PL.in
index 15a53e90e..b720d23ab 100644
--- a/scripts/Build.PL.in
+++ b/scripts/Build.PL.in
@@ -80,7 +80,7 @@ my $build = $class->new(
         keywords => [ qw(dpkg debian perl) ],
     },
 
-    sign            => @PACKAGE_CPAN_SIGN@,
+    sign            => @PACKAGE_DIST_IS_RELEASE@,
     dynamic_config  => 0,
 
     configure_requires => {

-- 
Dpkg.Org's dpkg

Reply via email to