Files
nixpkgs/pkgs/by-name/cv/cvc4/cvc4-bash-patsub-replacement.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
1.2 KiB
Diff

Per https://bodhi.fedoraproject.org/updates/FEDORA-2022-dc47174c36:
This update fixes a failure to build with source with bash 5.2. Bash's
`patsub_replacement` feature makes ampersand a special character when doing
variable substitution, which was not previously the case. This update instructs
bash to turn off the new behavior.
The patch itself is adapted from
https://src.fedoraproject.org/rpms/cvc4/blob/f7c24c6ad72a8812d244313f13032fa23d393315/f/cvc4-bash-patsub-replacement.patch.
--- a/src/expr/mkexpr 2020-06-19 10:59:27.000000000 -0600
+++ b/src/expr/mkexpr 2022-10-11 14:28:31.120453409 -0600
@@ -16,6 +16,7 @@
#
copyright=2010-2014
+shopt -u patsub_replacement
filename=`basename "$1" | sed 's,_template,,'`
--- a/src/expr/mkkind 2020-06-19 10:59:27.000000000 -0600
+++ b/src/expr/mkkind 2022-10-11 14:34:17.008996126 -0600
@@ -15,6 +15,7 @@
#
copyright=2010-2014
+shopt -u patsub_replacement
filename=`basename "$1" | sed 's,_template,,'`
--- a/src/expr/mkmetakind 2020-06-19 10:59:27.000000000 -0600
+++ b/src/expr/mkmetakind 2022-10-11 14:34:32.248020036 -0600
@@ -18,6 +18,7 @@
#
copyright=2010-2014
+shopt -u patsub_replacement
cat <<EOF
/********************* */