Skip to content

Commit

Permalink
Fix installing activation scripts (#77)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Sep 25, 2024
2 parents cd82af2 + a09153e commit 8c759bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions recipe/install_activation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,18 @@ CHOST="${triplet}"
# echo
# done

cp ${RECIPE_DIR}/scripts/* .

find . -name "*activate*.*" -exec sed -i.bak "s|@IS_WIN@|${IS_WIN}|g" "{}" \;
find . -name "*activate*.*" -exec sed -i.bak "s|@TOOLS@|${TOOLS}|g" "{}" \;
find . -name "*activate*.*" -exec sed -i.bak "s|@CHOST@|${CHOST}|g" "{}" \;
find . -name "*activate*.*" -exec sed -i.bak "s|@LIBRARY_PREFIX@|${LIBRARY_PREFIX}|g" "{}" \;

mkdir -p ${PREFIX}/etc/conda/{de,}activate.d
cp "${SRC_DIR}"/activate-binutils.sh ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.sh
cp "${SRC_DIR}"/deactivate-binutils.sh ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.sh

if [[ "$target_platform" == "win-"* ]]; then
cp "${SRC_DIR}"/activate-binutils.bat ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.bat
cp "${SRC_DIR}"/deactivate-binutils.bat ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.bat
fi
5 changes: 3 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- patches/0001-fallback-sysroot.diff

build:
number: 0
number: 1
skip: true # [win64 and cross_target_platform != "win-64"]
detect_binary_files_with_prefix: false

Expand Down Expand Up @@ -98,7 +98,8 @@ outputs:
- {{ pin_subpackage("binutils_impl_" ~ cross_target_platform, exact=True) }}
test:
commands:
- test -f $LD
- $LD --help
- $AR --help

- name: binutils
script: install_binutils_symlinks.sh
Expand Down

0 comments on commit 8c759bc

Please sign in to comment.