diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2019-03-28 11:25:44 -0700 |
---|---|---|
committer | Greg Becker <becker33@llnl.gov> | 2019-03-28 11:25:44 -0700 |
commit | a6511fbafcf16dd60d424e9d31b667339857628a (patch) | |
tree | 0883e65ae34f06a7b56f26759d0082dfd1d39074 /var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid1/package.py | |
parent | 99f35c333814f9c7fa320a928a98bbbacdd66e92 (diff) | |
download | spack-a6511fbafcf16dd60d424e9d31b667339857628a.tar.gz spack-a6511fbafcf16dd60d424e9d31b667339857628a.tar.bz2 spack-a6511fbafcf16dd60d424e9d31b667339857628a.tar.xz spack-a6511fbafcf16dd60d424e9d31b667339857628a.zip |
Consistent patch ordering (#10879)
* preserve the order in which patches are applied by packages (in spite of grouping them by 'when')
* add tests confirming patch order
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid1/package.py')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid1/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid1/package.py b/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid1/package.py new file mode 100644 index 0000000000..f4ec1554fa --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/dep-diamond-patch-mid1/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class DepDiamondPatchMid1(Package): + r"""Package that requires a patch on a dependency + + W + / \ +X Y + \ / + Z + + This is package X + """ + + homepage = "http://www.example.com" + url = "http://www.example.com/patch-a-dependency-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + # single patch file in repo + depends_on('patch', patches='mid1.patch') + + def install(self, spec, prefix): + pass |