Date: Fri, 5 Aug 2022 05:31:20 GMT From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: d50ea47bcf74 - 2022Q3 - audio/gnupod: fix deprecated use of defined(@array) Message-ID: <202208050531.2755VKuH030134@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=d50ea47bcf741415d9f214f008094fea18d67f8f commit d50ea47bcf741415d9f214f008094fea18d67f8f Author: Stephen Roome <steve.roome@gmail.com> AuthorDate: 2022-08-04 11:23:14 +0000 Commit: Fernando ApesteguĂa <fernape@FreeBSD.org> CommitDate: 2022-08-05 05:28:08 +0000 audio/gnupod: fix deprecated use of defined(@array) Submitter becomes maintainer. First port to be maintained by submitter. PR: 265018 Reported by: steve.roome@gmail.com MFH: 2022Q3 (cherry picked from commit 50964af9333cb62250c52ef6849a47b7dd5f7baa) --- audio/gnupod/Makefile | 2 +- audio/gnupod/files/patch-to-fix-gnupod.txt | 35 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/audio/gnupod/Makefile b/audio/gnupod/Makefile index 474bf2dea603..2476d00e0789 100644 --- a/audio/gnupod/Makefile +++ b/audio/gnupod/Makefile @@ -7,7 +7,7 @@ CATEGORIES= audio perl5 MASTER_SITES= SAVANNAH \ http://www.blinkenlights.ch/gnupod-dist/stable/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= steve.roome@gmail.com COMMENT= Set of Perl scripts for using an Apple iPod LICENSE= GPLv3+ diff --git a/audio/gnupod/files/patch-to-fix-gnupod.txt b/audio/gnupod/files/patch-to-fix-gnupod.txt new file mode 100644 index 000000000000..96ad7116fdc9 --- /dev/null +++ b/audio/gnupod/files/patch-to-fix-gnupod.txt @@ -0,0 +1,35 @@ +--- src/ext/FileMagic.pm.orig 2009-07-11 00:20:05.000000000 +0100 ++++ src/ext/FileMagic.pm 2022-07-03 22:22:24.750066000 +0100 +@@ -362,7 +362,7 @@ + foreach (keys(%{$in})) { + my $kvp = __flatten($_, $exclude); # key + next if !defined($kvp); +- my $v = __flatten(%{$in}->{$_}, $exclude); # value ++ my $v = __flatten({$in->{$_}}, $exclude); # value + $kvp .= " : ".$v if (defined($v) && ("$v" ne "")); + push @out, $kvp; + } +@@ -418,9 +418,9 @@ + my $case = "check"; + + if (ref($options) eq "HASH") { +- $joinby = %{$options}->{joinby} if defined(%{$options}->{joinby}); +- $wspace = lc(%{$options}->{wspace}) if defined(%{$options}->{wspace}); +- $case = lc(%{$options}->{case}) if defined(%{$options}->{case}); ++ $joinby = $options->{joinby} if $options->{joinby}; ++ $wspace = lc($options->{wspace}) if $options->{wspace}; ++ $case = lc($options->{case}) if $options->{case}; + } + my $merged = ""; + +--- src/ext/XMLhelper.pm.orig 2009-07-11 00:20:05.000000000 +0100 ++++ src/ext/XMLhelper.pm 2022-07-03 22:22:34.918120000 +0100 +@@ -359,7 +359,7 @@ + print OUT " </smartplaylist>\n"; + } + elsif(my $phr = get_plpref($current_plname)) { #plprefs found.. +- if (defined(@{$XDAT->{playlists}->{data}->{$current_plname}})) { #the playlist is not empty ++ if (@{$XDAT->{playlists}->{data}->{$current_plname}}) { #the playlist is not empty + print OUT "\n ".mkfile({playlist=>$phr}, {return=>1,noend=>1})."\n"; + foreach(@{$XDAT->{playlists}->{data}->{$current_plname}}) { + print OUT " $_\n";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208050531.2755VKuH030134>