From 7cc1e787332e9a2217e560abf40bbd3d10403ce0 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 5 Jul 2023 01:32:32 +0100 Subject: www-apache/mod_perl: add 2.0.12 Closes: https://bugs.gentoo.org/835357 Signed-off-by: Sam James --- .../mod_perl/files/mod_perl-2.0.12-avoid-pch.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 www-apache/mod_perl/files/mod_perl-2.0.12-avoid-pch.patch (limited to 'www-apache/mod_perl/files/mod_perl-2.0.12-avoid-pch.patch') diff --git a/www-apache/mod_perl/files/mod_perl-2.0.12-avoid-pch.patch b/www-apache/mod_perl/files/mod_perl-2.0.12-avoid-pch.patch new file mode 100644 index 000000000000..989d472831f7 --- /dev/null +++ b/www-apache/mod_perl/files/mod_perl-2.0.12-avoid-pch.patch @@ -0,0 +1,22 @@ +Avoid sandbox denial while attempting to generate PCH: +``` +F: fopen_wr +S: deny +P: /usr/include/apr-1/apr.h.gch +A: /usr/include/apr-1/apr.h.gch +R: /usr/include/apr-1/apr.h.gch +C: /usr/libexec/gcc/x86_64-pc-linux-gnu/13/cc1 -quiet /usr/include/apr-1/apr.h -quiet -dM -dumpdir a- -dumpbase apr.h -dumpbase-ext .h -mtune=generic -march=x86-64 -o /tmp/ccfl5N0L.s --output-pch /usr/include/apr-1/apr.h.gch +``` + +Sent upstream by email on 2023-07-05. +--- a/lib/Apache2/Build.pm ++++ b/lib/Apache2/Build.pm +@@ -1502,7 +1502,7 @@ sub get_apr_config { + }; + } + else { +- my @command = ($self->perl_config('cpp'), '-dM', $header); ++ my @command = ($self->perl_config('cpp'), '-E', '-dM', $header); + open $fh, '-|', @command or do { + error "Unable to preprocess $header with @command: $!"; + return undef; -- cgit v1.2.3