🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2678

Bug#1061450: [PATCH 1/2] dpkg-buildpackage: Fix --sign-pause long option name

#2678
From: Cheng Li
Date: Fri, 30 Oct 2026 11:50
87 lines
5792 bytes
The long options were added in dpkg 1.18.8, where the --help output
documented this one as --sign-pause, while the parser was written as
--sign-pausa.  The documented spelling has therefore never been
accepted, and the accepted spelling has never been documented, neither
in --help nor in the man page.

Correct the parser to use the documented and intended spelling.  Do not
keep the misspelling as a deprecated alias, as it was never part of the
documented interface, and the short -ap option has always worked; it now
gets the usual unknown option error, which names the offending option.

Document the option in the man page, which has been missing an entry for
it all along.
---
 man/dpkg-buildpackage.pod     |  7 +++++++
 scripts/dpkg-buildpackage.pl  |  2 +-
 scripts/t/dpkg_buildpackage.t | 17 ++++++++++++++++-
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/man/dpkg-buildpackage.pod b/man/dpkg-buildpackage.pod
index cd49ba2d0..89eb110a8 100644
--- a/man/dpkg-buildpackage.pod
+++ b/man/dpkg-buildpackage.pod
@@ -731,6 +731,13 @@ password.
 
 Supported since dpkg 1.21.10.
 
+=item B<-ap>, B<--sign-pause>
+
+Wait for the user to press B<Enter> before starting the signing process.
+This only has an effect if at least one file is going to be signed.
+
+Support for long option since dpkg 1.23.12.
+
 =item B<-us>, B<--unsigned-source>
 
 Do not sign the source package.
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index f057a64cf..3e41911d9 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -545,7 +545,7 @@ while (@ARGV) {
     } elsif (/^-uc$/ or /^--unsigned-changes$/) {
         $signbuildinfo = 0;
         $signchanges = 0;
-    } elsif (/^-ap$/ or /^--sign-pausa$/) {
+    } elsif (/^-ap$/ or /^--sign-pause$/) {
         $signpause = 1;
     } elsif (/^-a$/ or /^--host-arch$/) {
         $host_arch = shift;
diff --git a/scripts/t/dpkg_buildpackage.t b/scripts/t/dpkg_buildpackage.t
index cbfe03b78..405388831 100644
--- a/scripts/t/dpkg_buildpackage.t
+++ b/scripts/t/dpkg_buildpackage.t
@@ -29,7 +29,7 @@ use Dpkg::BuildTypes;
 use Dpkg::Substvars;
 
 test_needs_command('fakeroot');
-plan tests => 17;
+plan tests => 18;
 
 my $srcdir = rel2abs($ENV{srcdir} || '.');
 my $datadir = "$srcdir/t/dpkg_buildpackage";
@@ -52,6 +52,21 @@ $ENV{PATH} = "$srcdir/t/mock-bin:$ENV{PATH}";
 
 chdir $tmpdir;
 
+my $stderr;
+
+spawn(
+    exec => [
+        $ENV{PERL}, "$srcdir/dpkg-buildpackage.pl",
+        '--sign-pause', '--help',
+    ],
+    to_file => '/dev/null',
+    error_to_string => \$stderr,
+    wait_child => 1,
+    no_check => 1,
+);
+ok($? == 0 && $stderr eq '', '--sign-pause is accepted');
+diag($stderr) unless $? == 0;
+
 my $tmpl_format = <<'TMPL_FORMAT';
 3.0 (native)
 TMPL_FORMAT
-- 
2.47.3
Technical Details
Message-ID: <NTThn-8NZ9-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NiU2J-5SFU-15@gated-at.bofh.it> <NTThn-8NZ9-3@gated-at.bofh.it> <HZQX0-5jPa-15@gated-at.bofh.it> <NTThn-8NZ9-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Cheng Li <shiptux@gmail.com>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.dpkg
Subject: Bug#1061450: [PATCH 1/2] dpkg-buildpackage: Fix --sign-pause long option name
Date: Fri, 30 Oct 2026 12:50:01 +0100
Message-ID: <NTThn-8NZ9-1@gated-at.bofh.it>
References: <NiU2J-5SFU-15@gated-at.bofh.it> <NTThn-8NZ9-3@gated-at.bofh.it> <HZQX0-5jPa-15@gated-at.bofh.it> <NTThn-8NZ9-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Oct 30 11:45:23 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.547
Reply-To: Cheng Li <shiptux@gmail.com>, 1061450@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-dpkg@lists.debian.org
X-Debian-Pr-Message: followup 1061450
X-Debian-Pr-Package: dpkg-dev
X-Debian-Pr-Keywords: patch newcomer
X-Debian-Pr-Source: dpkg
X-Gm-Message-State: AFq9FYL7WZ2dLao4T9R1HMp8TLurPo95EZsQQXSiUsKyLckLv41eaGqO
	F3dNZqueufkkDVsKng8zVcUqxyrs1+BmdiEcNcfzZ20MStvLqfhiKslKW+H6Djm1+2c=
X-Gm-Gg: AYBFou0sQsUYDbG3zcotxdjAKz8r36uwlSV7D2JBHsc11pmtDnOIlkh8dJHdOki9F5d
	kVIR8UaEFtW67YfQcBkxwNmtQEQcQ2oTcMv8BhnbtIxaOyEZykNBBdSYx9R81lvAdg36pjh4uWx
	geNsBEO7ZlpQOtqFu7LksFIxmMoSY9GVTfPajsAWTg5kUyq1b1q/EujCM3VO7tAEAWf08yodZqE
	XgjNtXM5A5QLgGPzDEXcqzjyLSPY9wPh8OaBYB321M9b/v5dK8mlaN6PiB9c3zu4x3HTYa3LhVN
	OdrV6510Ehyc09D8aKwg99T4QjzHE1MzopPxyqmgbKFofWTibythEdsqqJOBAm2sbeOE+IgMpid
	JMe1k+9juQOIcrJQDz1r/qQHEiujVNeIFIo1Rd5yEaezfEYM+oSDyC1BmZ9uHFpck+9n5HBDW1R
	VR7YL8tKIIv5F3jrUlnadb3svkfqRyp4dKZvvuS5vtlj81h4I1NeSDaY8Uyv9Whuhe2iSinQA/u
	+VaKuZxzhi9Bk2rhNIxo/3bjirAXW7sYg+r9OXU9Qt1qkKWadgMJmGTPGu1n0LFSw/MIw5yzUZB
	kJ8DktiHm0rBx74HlRlI1KobJ9hmRBEuGkbBvoVL3SyImnRfRZ/lYfE0FzBAbNtr9aoC/UWS8Tt
	IoXIOe9Vl
X-Received: by 2002:a05:7301:648d:b0:36a:f55:5c6d with SMTP id 5a478bee46e88-36a42388ffamr3463087eec.14.1793360658724;
        Fri, 30 Oct 2026 04:44:18 -0700 (PDT)
X-Mailer: git-send-email 2.47.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999764
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 87
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Guillem Jover <guillem@debian.org>
X-Original-Date: Fri, 30 Oct 2026 20:44:02 +0900
X-Original-Message-ID: <20261030114403.269830-2-shiptux@gmail.com>
X-Original-References: <al4AGH88sNs6pESm@thunder.hadrons.org> <20261030114403.269830-1-shiptux@gmail.com> <170612389523.16223.12946706258590361740.reportbug@ag474u.eng.vyatta.net> <20261030114403.269830-1-shiptux@gmail.com>