3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/xmlsec/remove_bsd_base64_decode_flag.patch
Caleb Land 7698197323
xmlsec: fix build on macOS (#101319)
* xmlsec: fix build on macOS

xmlsec detects the Darwin platform and uses the -D flag with base64, but nix uses GNU base64 which requires -d.

This patch removes the platform test and always uses the -d flag.
2020-11-01 16:55:14 -05:00

13 lines
486 B
Diff

--- a/tests/testEnc.sh 2020-04-20 14:30:32.000000000 -0400
+++ b/tests/testEnc.sh 2020-10-21 22:09:25.000000000 -0400
@@ -405,9 +405,6 @@
else
# generate binary file out of base64
DECODE="-d"
- if [ "`uname`" = "Darwin" ]; then
- DECODE="-D"
- fi
cat "$topfolder/$base_test_name.data" | base64 $DECODE > $tmpfile.3
execEncTest "$res_success" \
"" \