1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

dns/renewck: Fix duplicate "-d" short cmdline option

This patch fixes `Duplicate specification "domain|d:s" for option "d"` error.
The fix was provided by `renewck` author: Sergey Poznyakoff <gray@gnu.org.ua>
Quoting original email text from Sergey:
> Thanks for reporting that.  What happens is that the code defined short
> option -d equivalent to two different long options: --debug (line 421)
> and --domain (line 440).  The warning you get just draws attention
> to the fact (apparently it is reported by newer versions of
> Getopt::Long).  Please find attached a patch that fixes it.

PR:		275185
This commit is contained in:
George L. Yermulnik 2023-11-20 08:26:04 +01:00 committed by Robert Clausecker
parent c783b2f0fe
commit 373bf47474
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= renewck
PORTVERSION= 1.01
DISTVERSION= 1.01
PORTREVISION= 1
CATEGORIES= dns perl5
MASTER_SITES= http://download.gnu.org.ua/pub/release/dnstools/

View File

@ -0,0 +1,11 @@
--- renewck.orig 2023-11-18 20:32:22 UTC
+++ renewck
@@ -438,7 +438,7 @@ GetOptions("help|h" => \$help,
}
}
},
- "domain|d:s" => sub {
+ "domain|D:s" => sub {
foreach my $dom (split(/,/, $_[1])) {
my @s = split(/[=]/, $dom, 2);
# $s[0] =~ tr/[a-z]/[A-Z]/;