summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-03-25 16:52:49 +0000
committerChristian Ruppert <idl0r@gentoo.org>2011-03-25 16:52:49 +0000
commit4bc7d6591f2b42ce4020c457e6c04caa0f01efb6 (patch)
treeb7623981cd5fbae92ae3397bd7811fbd9edf0192 /dev-perl/Apache-SizeLimit/files
parentVersion bump, security bug #360431. (diff)
downloadgentoo-2-4bc7d6591f2b42ce4020c457e6c04caa0f01efb6.tar.gz
gentoo-2-4bc7d6591f2b42ce4020c457e6c04caa0f01efb6.tar.bz2
gentoo-2-4bc7d6591f2b42ce4020c457e6c04caa0f01efb6.zip
Remove Linux-Smaps dependency since it's totally optional, also fix Linux-Smaps detection to not die if Linux-Smaps has been installed but /proc/self/smaps doesn't exist.
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl/Apache-SizeLimit/files')
-rw-r--r--dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch b/dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch
new file mode 100644
index 000000000000..56283f842509
--- /dev/null
+++ b/dev-perl/Apache-SizeLimit/files/Apache-SizeLimit-0.95-Fix_Linux-Smaps_detection.patch
@@ -0,0 +1,25 @@
+From 6b1b60546ffca416a65d047a1c0d5d2b610b4dac Mon Sep 17 00:00:00 2001
+From: Christian Ruppert <idl0r@gentoo.org>
+Date: Fri, 25 Mar 2011 17:42:54 +0100
+Subject: [PATCH] Fix Linux::Smaps detection to *not* die if /proc/self/smaps doesn't exist
+
+---
+ lib/Apache/SizeLimit/Core.pm | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/lib/Apache/SizeLimit/Core.pm b/lib/Apache/SizeLimit/Core.pm
+index 5942bc8..f2fbac4 100644
+--- a/lib/Apache/SizeLimit/Core.pm
++++ b/lib/Apache/SizeLimit/Core.pm
+@@ -143,7 +143,7 @@ BEGIN {
+
+ *_platform_getppid = \&_linux_getppid;
+
+- if (eval { require Linux::Smaps } && Linux::Smaps->new($$)) {
++ if (eval { require Linux::Smaps && Linux::Smaps->new($$) }) {
+ $USE_SMAPS = 1;
+ *_platform_check_size = \&_linux_smaps_size_check;
+ }
+--
+1.7.3.4
+