ikiwiki: fix warnings with newer Getopt::Long.

This commit is contained in:
schmonz 2024-02-05 06:13:43 +00:00
parent 9f17c4bb5d
commit 24076fd3e2
2 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.141 2021/11/02 09:44:48 schmonz Exp $
$NetBSD: distinfo,v 1.142 2024/02/05 06:13:43 schmonz Exp $
BLAKE2s (ikiwiki_3.20200202.3.orig.tar.xz) = 2a29fcde488ca19f3977450b73e423808568cb65938a4ad7ffd4ff5abd64a5b5
SHA512 (ikiwiki_3.20200202.3.orig.tar.xz) = a1d89ccc0d02cddb3ef53c4c4a4a3349139d558fd4eb418263551a48cb635ed29ef430f8276ef6b42486a9232706908752e15e88590e919db6665e1a8844a4e5
@ -7,4 +7,5 @@ SHA1 (patch-IkiWiki_Plugin_highlight.pm) = a2b1d84472f9b452d60b781f9a9951f574167
SHA1 (patch-IkiWiki_Plugin_polygen.pm) = 232c48aac1c0ab538b380def2b8a4b42373a3582
SHA1 (patch-Makefile.PL) = 44324917c22ec3cd2aa216439e2ae5a3dc2f9787
SHA1 (patch-ikiwiki-mass-rebuild) = eb03ac0ec83078be593f76968f5a1f9080ea50b9
SHA1 (patch-ikiwiki.in) = c45552b89ad10df949bc21ab6154997cb0153eb9
SHA1 (patch-po_Makefile) = 468b500da41c606c6af6b65c8080d692acb69336

View file

@ -0,0 +1,17 @@
$NetBSD: patch-ikiwiki.in,v 1.1 2024/02/05 06:13:44 schmonz Exp $
Apply upstream patch 3b24262 to fix warnings with newer Getopt::Long.
--- ikiwiki.in.orig 2024-02-05 06:11:22.083293105 +0000
+++ ikiwiki.in
@@ -31,8 +31,8 @@ sub getconfig () {
Getopt::Long::Configure('pass_through');
GetOptions(
"setup|s=s" => \&setup,
- "dumpsetup|s=s" => \$config{dumpsetup},
- "changesetup|s=s" => sub {
+ "dumpsetup=s" => \$config{dumpsetup},
+ "changesetup=s" => sub {
$config{changesetup}=$_[1];
$config{genwrappers}=1;
$config{refresh}=1;