View | Details | Raw Unified | Return to bug 265018 | Differences between
and this patch

Collapse All | Expand All

(-)b/audio/gnupod/Makefile (-1 / +1 lines)
Lines 5-11 CATEGORIES= audio perl5 Link Here
5
MASTER_SITES=	SAVANNAH \
5
MASTER_SITES=	SAVANNAH \
6
		http://www.blinkenlights.ch/gnupod-dist/stable/
6
		http://www.blinkenlights.ch/gnupod-dist/stable/
7
7
8
MAINTAINER=	ports@FreeBSD.org
8
MAINTAINER=	steve.roome@gmail.com
9
COMMENT=	Set of Perl scripts for using an Apple iPod
9
COMMENT=	Set of Perl scripts for using an Apple iPod
10
10
11
LICENSE=	GPLv3+
11
LICENSE=	GPLv3+
(-)b/audio/gnupod/files/patch-to-fix-gnupod.txt (+35 lines)
Added Link Here
1
--- src/ext/FileMagic.pm.orig	2009-07-11 00:20:05.000000000 +0100
2
+++ src/ext/FileMagic.pm	2022-07-03 22:22:24.750066000 +0100
3
@@ -362,7 +362,7 @@
4
 		foreach (keys(%{$in})) {
5
 			my $kvp = __flatten($_, $exclude); # key
6
 			next if !defined($kvp);
7
-			my $v = __flatten(%{$in}->{$_}, $exclude); # value
8
+			my $v = __flatten({$in->{$_}}, $exclude); # value
9
 			$kvp .= " : ".$v     if (defined($v) && ("$v" ne ""));
10
 			push @out, $kvp;
11
 		}
12
@@ -418,9 +418,9 @@
13
 	my $case = "check";
14
 
15
 	if (ref($options) eq "HASH") {
16
-		$joinby = %{$options}->{joinby}        if defined(%{$options}->{joinby});
17
-		$wspace = lc(%{$options}->{wspace})    if defined(%{$options}->{wspace});
18
-		$case   = lc(%{$options}->{case})      if defined(%{$options}->{case});
19
+		$joinby = $options->{joinby}        if $options->{joinby};
20
+		$wspace = lc($options->{wspace})    if $options->{wspace};
21
+		$case   = lc($options->{case})      if $options->{case};
22
 	}
23
 	my $merged = "";
24
 
25
--- src/ext/XMLhelper.pm.orig	2009-07-11 00:20:05.000000000 +0100
26
+++ src/ext/XMLhelper.pm	2022-07-03 22:22:34.918120000 +0100
27
@@ -359,7 +359,7 @@
28
 			print OUT " </smartplaylist>\n";
29
 		}
30
 		elsif(my $phr = get_plpref($current_plname)) { #plprefs found..
31
-			if (defined(@{$XDAT->{playlists}->{data}->{$current_plname}})) { #the playlist is not empty
32
+			if (@{$XDAT->{playlists}->{data}->{$current_plname}}) { #the playlist is not empty
33
 				print OUT "\n ".mkfile({playlist=>$phr}, {return=>1,noend=>1})."\n";
34
 				foreach(@{$XDAT->{playlists}->{data}->{$current_plname}}) {
35
 					print OUT "   $_\n";

Return to bug 265018