Bug#852332: dh-make-perl: DEBFULLNAME and DEBEMAIL should be used with git

Carnë Draug carandraug+dev at gmail.com
Tue Jan 24 12:32:58 UTC 2017


Package: dh-make-perl
Version: 0.92
Followup-For: Bug #852332

I have attached a git patch that fixes the issue.

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dh-make-perl depends on:
ii  debhelper                              10.2.3
ii  dpkg-dev                               1.18.18
ii  fakeroot                               1.21-3
ii  libapt-pkg-perl                        0.1.30
ii  libarray-unique-perl                   0.08-2
ii  libclass-accessor-perl                 0.34-1
ii  libconfig-ini-perl                     1:0.025-1
ii  libdebian-source-perl                  0.92
ii  libdpkg-perl                           1.18.18
ii  libemail-address-perl                  1.908-1
ii  libemail-date-format-perl              1.005-1
ii  libfile-which-perl                     1.21-1
ii  liblist-moreutils-perl                 0.416-1+b1
ii  libmodule-depends-perl                 0.16-3
ii  libparse-debianchangelog-perl          1.2.0-12
ii  libsoftware-license-perl               0.103012-1
ii  libtie-ixhash-perl                     1.23-2
ii  libwww-mechanize-perl                  1.83-1
ii  libwww-perl                            6.15-1
ii  libyaml-libyaml-perl                   0.63-2
ii  libyaml-perl                           1.21-1
ii  make                                   4.1-9
ii  perl                                   5.24.1~rc4-1
ii  perl-modules-5.22 [libcpan-meta-perl]  5.22.2-1
ii  perl-modules-5.24 [libcpan-meta-perl]  5.24.1~rc4-1

Versions of packages dh-make-perl recommends:
ii  apt                   1.4~beta3
ii  apt-file              3.1.3
ii  git                   1:2.11.0-2
ii  libdpkg-parse-perl    0.03-1
ii  libmodule-build-perl  0.422000-1
ii  pristine-tar          1.37

dh-make-perl suggests no packages.

-- no debconf information
-------------- next part --------------
From b8284e9dce8cfd31ee060c79ba8f2175eedf7212 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carn=C3=AB=20Draug?= <carandraug+dev at gmail.com>
Date: Tue, 24 Jan 2017 12:06:48 +0000
Subject: [PATCH] DhMakePerl::Command::make: use author and email information
 for git commits.

Closes: #852332
---
 Changes                        | 3 +++
 lib/DhMakePerl/Command/make.pm | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Changes b/Changes
index 9c47553..8c5e37f 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,7 @@
 0.93 (201x-xx-xx)
+  [ Carn? Draug ]
+  * Use dh-make-perl email and name information for git commits.
+    (Closes: #852332)
 
 0.92 (2016-09-20)
 
diff --git a/lib/DhMakePerl/Command/make.pm b/lib/DhMakePerl/Command/make.pm
index 31db889..4cde1da 100644
--- a/lib/DhMakePerl/Command/make.pm
+++ b/lib/DhMakePerl/Command/make.pm
@@ -748,7 +748,7 @@ sub git_import_upstream__init_debian {
     my $git = Git->repository( $self->main_dir );
     $git->command( qw(symbolic-ref HEAD refs/heads/upstream) );
     $git->command( 'add', '.' );
-    $git->command( 'commit', '-m',
+    $git->command( 'commit', '--author', $self->get_developer, '-m',
               "Import original source of "
             . $self->perlname . ' '
             . $self->version );
@@ -762,7 +762,7 @@ sub git_import_upstream__init_debian {
       # debian/ directory from the working tree; git has the history, so I don't
       # need the debian.bak
       $git->command( 'rm', '-r', $self->debian_dir );
-      $git->command( 'commit', '-m',
+      $git->command( 'commit', '--author', $self->get_developer, '-m',
                      'Removed debian directory embedded in upstream source' );
     }
 }
@@ -777,7 +777,7 @@ sub git_add_debian {
 
     my $git = Git->repository( $self->main_dir );
     $git->command( 'add', 'debian' );
-    $git->command( 'commit', '-m',
+    $git->command( 'commit', '--author', $self->get_developer, '-m',
         "Initial packaging by dh-make-perl $VERSION" );
     $git->command(
         qw( remote add origin ),
-- 
2.11.0



More information about the pkg-perl-maintainers mailing list