-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
132 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Enhancements | ||
|
||
* <news item> | ||
|
||
### Bug fixes | ||
|
||
* Include file path in addition to the content when generating the file hash to avoid unwanted caching during linkage analysis. (#4821) | ||
|
||
### Deprecations | ||
|
||
* <news item> | ||
|
||
### Docs | ||
|
||
* <news item> | ||
|
||
### Other | ||
|
||
* <news item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
echo "int main() {}" > main.c | ||
mkdir -p $PREFIX/bin | ||
$CC main.c -o $PREFIX/bin/_file_hash | ||
|
||
echo "int foo() {return 2;}" > foo.c | ||
echo "int foo(); int bar() {return foo()*2;}" > bar.c | ||
$CC -shared foo.c -o libupstream.so | ||
$CC -shared bar.c -o libdownstream.so -L$PWD -lupstream '-Wl,-rpath,$ORIGIN' |
3 changes: 3 additions & 0 deletions
3
tests/test-recipes/split-packages/_test-file-hash/conda_build_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python: | ||
- 3.10 | ||
- 3.11 |
4 changes: 4 additions & 0 deletions
4
tests/test-recipes/split-packages/_test-file-hash/install-py.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mkdir -p $SP_DIR/_py_file_hash | ||
cp libdownstream.so $SP_DIR/_py_file_hash/ | ||
cp libupstream.so $SP_DIR/_py_file_hash/ | ||
|
30 changes: 30 additions & 0 deletions
30
tests/test-recipes/split-packages/_test-file-hash/meta.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package: | ||
name: _file_hash-split | ||
version: 0.0.1 | ||
|
||
build: | ||
number: 0 | ||
skip: True # [not linux64] | ||
error_overlinking: true | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
host: | ||
run: | ||
|
||
outputs: | ||
- name: py-file-hash | ||
script: install-py.sh | ||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
host: | ||
- python | ||
run: | ||
- python | ||
|
||
- name: _file_hash | ||
requirements: | ||
build: | ||
- {{ compiler('c') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters