Skip to content

Commit

Permalink
fix fix-machos test for zlib 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Jan 22, 2024
1 parent 88913a3 commit bce31d0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion projects/fix-machos.com/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ build:
- cp {{deps.zlib.net.prefix}}/lib/libz.dylib '{{prefix}}/lib'

- run: install_name_tool -change @rpath/zlib.net/v{{deps.zlib.net.version}}/lib/libz.{{deps.zlib.net.version.marketing}}.dylib {{prefix}}/lib/libz.dylib fix-machos-test
# zlib is weird about its lib versioning it seems
# we have to jump through weird hoops to get this test set up
- |
if test {{deps.zlib.net.version.patch}} = 0; then
ZLIB_VERSION={{deps.zlib.net.version.marketing}}
else
ZLIB_VERSION={{deps.zlib.net.version}}
fi
- run: install_name_tool -change @rpath/zlib.net/v{{deps.zlib.net.version}}/lib/libz.${ZLIB_VERSION}.dylib {{prefix}}/lib/libz.dylib fix-machos-test
working-directory: '{{prefix}}/bin'

- run: otool -l fix-machos-test
Expand All @@ -36,4 +45,5 @@ test:
- run: exit 0
if: linux
- fix-machos-test
- otool -l '{{prefix}}/bin/fix-machos-test'
- otool -l '{{prefix}}/bin/fix-machos-test' | grep '@loader_path/../../v{{version}}/lib/libz.dylib'

0 comments on commit bce31d0

Please sign in to comment.