spack/var/spack/repos/builtin.mock/packages/patch-a-foreign-dependency/mock2-package.patch
Greg Becker da1d533877
fix patched dependencies across repositories (#42463)
Currently, if a package has a dependency from another repository and patches it,
generation of the patch cache will fail. Concretization succeeds if a fixed patch
cache is in place.

- [x] don't assume that patched dependencies are in the same repo when indexing
- [x] add some test fixtures to support multi-repo tests.

---------

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
2024-11-08 18:07:40 -07:00

12 lines
297 B
Diff

--- patch-a-dependency/configure 2018-08-13 23:13:51.000000000 -0700
+++ patch-a-dependency/configure.patched 2018-08-13 23:14:15.000000000 -0700
@@ -2,7 +2,7 @@
prefix=$(echo $1 | sed 's/--prefix=//')
cat > Makefile <<EOF
all:
- echo Building...
+ echo Patched!
install:
mkdir -p $prefix