diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-13 18:49:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-13 18:49:18 +0000 |
commit | f8d671851faf1ca201cec0490ead4642c8987bae (patch) | |
tree | b8fa88a5eb1312b7f587c4670cf04cb4003e7714 /dev-libs/apr/files | |
parent | 7c1ac01728d0156998ee45be74f80b378d96c31d (diff) |
gentoo auto-resync : 13:11:2022 - 18:49:18
Diffstat (limited to 'dev-libs/apr/files')
-rw-r--r-- | dev-libs/apr/files/apr-1.7.0-dev-zero.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/apr/files/apr-1.7.0-dev-zero.patch b/dev-libs/apr/files/apr-1.7.0-dev-zero.patch new file mode 100644 index 000000000000..be6433dd46bc --- /dev/null +++ b/dev-libs/apr/files/apr-1.7.0-dev-zero.patch @@ -0,0 +1,34 @@ +APR (ab)uses AC_TRY_RUN to determine if: + +* We have /dev/zero +* We can mmap /dev/zero + +The APR ebuild sets ac_cv_file__dev_zero=yes when cross compiling +to fill in an answer for the first question, but the configure script +immediately defeats that when answering the second. + +AC_TRY_FUN takes four arguments: the test, and what happens on success, +failure, and cross-compiling. The APR script uses this as a "gate" to +clear ac_cv_file__dev_zero when /dev/zero exists but it turns out not +to be useable. They take a pessimistic approach: if you can't "prove" +it is mmap-able, clear the flag. + +This patch changes that to leave the flag alone while cross compiling; +just assume /dev/zero is mmap-able. It relies on ac_cv_file__dev_zero +to be correctly set for the target. The fourth parameter is changed to +[:] and not [] because [] engages autoconf's default cross-compiling +behavior, which raises an error. + +Signed-off-by: Alexandra Parker <alex.iris.parker@gmail.com> + +--- a/configure.in 2022-01-09 00:31:05.552582255 -0800 ++++ b/configure.in 2022-01-09 00:31:19.824582533 -0800 +@@ -1203,7 +1203,7 @@ + return 3; + } + return 0; +- }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no]) ++ }], [], [ac_cv_file__dev_zero=no], [:]) + + AC_MSG_RESULT($ac_cv_file__dev_zero) + fi |