diff --git a/news/5565-lief-0.15-compat b/news/5565-lief-0.15-compat new file mode 100644 index 0000000000..e69f971430 --- /dev/null +++ b/news/5565-lief-0.15-compat @@ -0,0 +1,19 @@ +### Enhancements + +* Add compatibility for LIEF=0.15. (#5564 via #5565) + +### Bug fixes + +* + +### Deprecations + +* + +### Docs + +* + +### Other + +* diff --git a/tests/test-recipes/metadata/_rpath/meta.yaml b/tests/test-recipes/metadata/_rpath/meta.yaml index e63d60f520..1a9ba6a97f 100755 --- a/tests/test-recipes/metadata/_rpath/meta.yaml +++ b/tests/test-recipes/metadata/_rpath/meta.yaml @@ -15,8 +15,8 @@ requirements: test: requires: - - py-lief >=0.15 + - py-lief commands: - - python -c "import lief; binary = lief.parse(\"${PREFIX}/bin/rpath\"); print([e.rpath for e in binary.dynamic_entries if e.tag == lief.ELF.DynamicEntry.TAG.RPATH])" # [linux] - - python -c "import lief; binary = lief.parse(\"${PREFIX}/bin/rpath\"); print([e.rpath for e in binary.dynamic_entries if e.tag == lief.ELF.DynamicEntry.TAG.RPATH])" | grep \$ORIGIN/../previous:\$ORIGIN/../lib:\$ORIGIN/../plugins:\$ORIGIN/../successive # [linux] + - python -c "import lief; binary = lief.parse(\"${PREFIX}/bin/rpath\"); print([e.rpath for e in binary.dynamic_entries if e.tag == getattr(lief.ELF, 'DYNAMIC_TAGS', getattr(lief.ELF.DynamicEntry, 'TAG', None)).RPATH])" # [linux] + - python -c "import lief; binary = lief.parse(\"${PREFIX}/bin/rpath\"); print([e.rpath for e in binary.dynamic_entries if e.tag == getattr(lief.ELF, 'DYNAMIC_TAGS', getattr(lief.ELF.DynamicEntry, 'TAG', None)).RPATH])" | grep \$ORIGIN/../previous:\$ORIGIN/../lib:\$ORIGIN/../plugins:\$ORIGIN/../successive # [linux] - python -c "import lief; binary = lief.parse(\"${PREFIX}/bin/rpath\"); print(':'.join([command.path.rstrip('/') for command in binary.commands if command.command == lief.MachO.LOAD_COMMAND_TYPES.RPATH]))" | grep ${PREFIX}/../previous:${PREFIX}/../lib:${PREFIX}/plugins:${PREFIX}/../successive # [osx] diff --git a/tests/test-recipes/metadata/_rpath_symlink/meta.yaml b/tests/test-recipes/metadata/_rpath_symlink/meta.yaml index 344ba6dbc3..8d50f711ab 100644 --- a/tests/test-recipes/metadata/_rpath_symlink/meta.yaml +++ b/tests/test-recipes/metadata/_rpath_symlink/meta.yaml @@ -27,13 +27,13 @@ requirements: test: requires: - - py-lief >=0.15 + - py-lief commands: # Test that we get only a single entry that is the library's own directory. - | python -c ' import os, lief lib = lief.parse(os.environ["PREFIX"] + "/lib/{{ lib_file }}") - assert {"$ORIGIN/."} == {e.rpath for e in lib.dynamic_entries if e.tag == lief.ELF.DynamicEntry.TAG.RPATH} # [linux] + assert {"$ORIGIN/."} == {e.rpath for e in lib.dynamic_entries if e.tag == getattr(lief.ELF, "DYNAMIC_TAGS", getattr(lief.ELF.DynamicEntry, "TAG", None)).RPATH} # [linux] assert {"@loader_path/"} == {command.path for command in lib.commands if command.command == lief.MachO.LOAD_COMMAND_TYPES.RPATH} # [osx] '