diff --git a/srcpkgs/mangl/patches/cross.patch b/srcpkgs/mangl/patches/cross.patch new file mode 100644 index 00000000000..92a9c8d730a --- /dev/null +++ b/srcpkgs/mangl/patches/cross.patch @@ -0,0 +1,30 @@ +--- a/mandoc/configure ++++ b/mandoc/configure +@@ -176,15 +176,6 @@ + if ${COMP} -o "test-${1}" "${SOURCEDIR}/test-${1}.c" ${3} 1>&3 2>&3 + then + echo "partial result of ${n}: ${CC} succeeded" 1>&3 +- else +- echo "tested ${n}: no (compilation failed)" 1>&2 +- echo "result of ${n}: ${CC} failed with exit status $?" 1>&3 +- echo "result of compiling ${n}: no" 1>&3 +- echo 1>&3 +- return 1 +- fi +- +- if ./test-${1} 1>&3 2>&3; then + echo "tested ${n}: yes" 1>&2 + echo "result of running ${n}: yes" 1>&3 + echo 1>&3 +@@ -199,10 +190,9 @@ + return 0 + else + echo "tested ${n}: no (execution failed)" 1>&2 +- echo "result of ${n}: execution failed with exit status $?" 1>&3 ++ echo "result of ${n}: ${CC} failed with exit status $?" 1>&3 + echo "result of running ${n}: no" 1>&3 + echo 1>&3 +- rm "test-${1}" + return 1 + fi + }