diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-arch/sharutils/files/sharutils-4.14-popen-rb.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-arch/sharutils/files/sharutils-4.14-popen-rb.patch')
-rw-r--r-- | app-arch/sharutils/files/sharutils-4.14-popen-rb.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app-arch/sharutils/files/sharutils-4.14-popen-rb.patch b/app-arch/sharutils/files/sharutils-4.14-popen-rb.patch new file mode 100644 index 000000000000..c502a623c1f6 --- /dev/null +++ b/app-arch/sharutils/files/sharutils-4.14-popen-rb.patch @@ -0,0 +1,33 @@ +delete the run time test which dies on cross-compiles. +we know the answer already, so hardcode it to true. + +--- a/configure ++++ b/configure +@@ -30745,25 +30745,8 @@ + CATALOGS="$new_CATALOGS" + fi + +-if test "$cross_compiling" = yes; then : +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot run test program while cross compiling +-See \`config.log' for more details" "$LINENO" 5; } +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- FILE * fp = popen ("date", "rb"); +- exit (fp == NULL); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : ++if false; then ++if true; then + + $as_echo "#define BINARY_MODE_POPEN 1" >>confdefs.h + |