Mailing List Archive

svn commit: r1910794 - /perl/modperl/trunk/lib/Apache2/Build.pm
Author: stevehay
Date: Wed Jul 5 17:21:31 2023
New Revision: 1910794

URL: http://svn.apache.org/viewvc?rev=1910794&view=rev
Log:
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
```

Patch by Sam James <sam@gentoo.org>

Modified:
perl/modperl/trunk/lib/Apache2/Build.pm

Modified: perl/modperl/trunk/lib/Apache2/Build.pm
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/lib/Apache2/Build.pm?rev=1910794&r1=1910793&r2=1910794&view=diff
==============================================================================
--- perl/modperl/trunk/lib/Apache2/Build.pm (original)
+++ perl/modperl/trunk/lib/Apache2/Build.pm Wed Jul 5 17:21:31 2023
@@ -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;