Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2023 06:14:55 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 373bf4747450 - main - dns/renewck: Fix duplicate "-d" short cmdline option
Message-ID:  <202311240614.3AO6EtYm027840@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=373bf47474504aecaa2d56a29d7a874f1d88d81b

commit 373bf47474504aecaa2d56a29d7a874f1d88d81b
Author:     George L. Yermulnik <yz@yz.kiev.ua>
AuthorDate: 2023-11-20 07:26:04 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-24 06:12:32 +0000

    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
---
 dns/renewck/Makefile            |  3 ++-
 dns/renewck/files/patch-renewck | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dns/renewck/Makefile b/dns/renewck/Makefile
index dbb43820509f..adfcd3f773b7 100644
--- a/dns/renewck/Makefile
+++ b/dns/renewck/Makefile
@@ -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/
 
diff --git a/dns/renewck/files/patch-renewck b/dns/renewck/files/patch-renewck
new file mode 100644
index 000000000000..880d4d879d62
--- /dev/null
+++ b/dns/renewck/files/patch-renewck
@@ -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]/;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311240614.3AO6EtYm027840>