aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-23 12:12:59 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-23 12:12:59 +0000
commit3547597c8c5db5e40e66119587777910e780da3d (patch)
treed5f54a723ee6bb380b918cea195762d271a98ba0 /nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch
parent0f74f62ee25ac2d21bd67c29b8efc3ad079a72a8 (diff)
parentf35f0880f2cdbc8c1bc81492811251f120d7a9bc (diff)
Merge commit 'f35f0880f2cdbc8c1bc81492811251f120d7a9bc' into bump-nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch')
-rw-r--r--nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch b/nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch
new file mode 100644
index 00000000000..6133ab67475
--- /dev/null
+++ b/nixpkgs/pkgs/development/perl-modules/Device-OUI-1.04-hash.patch
@@ -0,0 +1,11 @@
+--- Device-OUI-1.04/lib/Device/OUI.pm.orig 2009-03-07 02:23:17.000000000 +0000
++++ Device-OUI-1.04/lib/Device/OUI.pm 2016-08-09 08:19:00.642799675 +0100
+@@ -54,7 +54,7 @@
+ for my $x ( keys %hash ) {
+ if ( not defined $hash{ $x } ) { $hash{ $x } = '' }
+ }
+- return $handle->{ $oui } = join( "\0", %hash );
++ return $handle->{ $oui } = join( "\0", map {$_,$hash{$_}} sort keys %hash );
+ } elsif ( my $x = $handle->{ $oui } ) {
+ return { split( "\0", $x ) };
+ }