Package Details: python-lief 0.15.1-1

Git Clone URL: https://aur.archlinux.org/lief.git (read-only, click to copy)
Package Base: lief
Description: Library to instrument executable formats
Upstream URL: https://github.com/lief-project/lief
Keywords: elf mach-o pe
Licenses: Apache-2.0
Provides: libLIEF.so
Submitter: dobo
Maintainer: Xeonacid (greyltc)
Last Packager: greyltc
Votes: 5
Popularity: 0.007365
First Submitted: 2018-11-14 22:00 (UTC)
Last Updated: 2024-09-30 15:17 (UTC)

Latest Comments

1 2 3 Next › Last »

tulipszs commented on 2024-09-19 14:57 (UTC)

I'm failing to build this with:

[ 99%] Building CXX object api/python/CMakeFiles/pyLIEF.dir/src/ART/objects/pyFile.cpp.o
[100%] Linking CXX shared module _lief.so
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/stl/vector.h:18:49: warning: type ‘struct type_caster’ violates the C++ One Definition Rule [-Wodr]
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/nb_cast.h:381:8: note: a type with different bases is defined in another translation unit
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/nb_tuple.h:30:46: warning: type ‘struct tuple’ violates the C++ One Definition Rule [-Wodr]
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/nb_tuple.h:30:46: note: a different type is defined in another translation unit
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/nb_tuple.h:62:7: note: the first difference of corresponding definitions is field ‘value’
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/nb_tuple.h:62:7: note: a field of same name but different type is defined in another translation unit
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/stl/vector.h:18:49: note: type ‘struct type_caster’ itself violates the C++ One Definition Rule
/usr/src/debug/lief/LIEF-0.15.1/build/_deps/nanobind-src/include/nanobind/nb_cast.h:381:8: note: the incompatible type is defined here
[100%] Built target pyLIEF
* Getting build dependencies for wheel...

ERROR Missing dependencies:
    pydantic
    pydantic-core==2.23.3
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'lief-0.15.1-1':
error: packages failed to build: lief-0.15.1-1

Ended up being a mismatched version for pydantic-core - I manually version locked it via pip and the package built successfully :< - there might be a better way.

zer0def commented on 2024-08-03 08:17 (UTC)

commit b04e6c33d422635acfbf65360166e9d3932ff4a5
Author: zer0def <zer0def@zer0def.0>
Date:   Sat Aug 3 10:14:03 2024 +0200

    0.15.1, drop external mbedtls in favor of (unfortunately old) bundled dep, due to breakage introduced in 3.6.0[1]

    [1]: https://github.com/Mbed-TLS/mbedtls/commit/25b282ebfe5cb84e73d6194e83dc8d6c5d9a25e4

diff --git a/PKGBUILD b/PKGBUILD
index 679d7ae..b520087 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,14 @@

 pkgbase=lief
 pkgname=(lief python-lief)
-pkgver=0.14.1
+pkgver=0.15.1
 pkgrel=1
 pkgdesc='Library to instrument executable formats'
 arch=('x86_64')
 url='https://github.com/lief-project/lief'
 license=(Apache-2.0)
 depends=(tl-expected)
-makedepends=(cmake python nlohmann-json mbedtls python-build python-installer python-wheel python-tomli python-scikit-build-core ninja python-cattrs python-packaging python-rich python-setuptools python-pydantic python-pydantic-core python-pyproject-metadata python-pathspec)
+makedepends=(cmake python nlohmann-json python-build python-installer python-wheel python-tomli python-scikit-build-core ninja python-cattrs python-packaging python-rich python-setuptools python-pydantic python-pydantic-core python-pyproject-metadata python-pathspec)
 provides=(libLIEF.so)
 source=($url/archive/refs/tags/$pkgver.tar.gz)
 sha256sums=('92916dcb3178353d863aef4f409186889983c56e025b774741d5316a72ec3a7d')
@@ -30,7 +30,6 @@ build() {
     -DLIEF_EXAMPLES=OFF \
     -DLIEF_PYTHON_API=ON \
     -DLIEF_OPT_NLOHMANN_JSON_EXTERNAL=ON \
-    -DLIEF_OPT_MBEDTLS_EXTERNAL=ON \
     -DLIEF_OPT_EXTERNAL_EXPECTED=ON
   cmake --build build

Xeonacid commented on 2024-04-11 05:19 (UTC)

@bloeher Oops. Sorry for the mistake. Fixed, thanks!

bloeher commented on 2024-04-11 05:16 (UTC)

I had to add "/refs/tags" to the source URL to properly get the source.

greyltc commented on 2024-03-24 19:30 (UTC)

@Xeonacid yeah, sure, thanks!

Xeonacid commented on 2024-03-24 01:59 (UTC)

@greyltc Sure! Added. Thanks for your work on python-lief. Would you like to co-maintain this package?

greyltc commented on 2024-03-23 18:36 (UTC)

hey @Xeonacid, could you turn on python-lief here now?

meadow commented on 2023-08-02 12:21 (UTC)

Updating the version to 0.13.2 fixed the build for me.

meadow commented on 2023-08-02 12:19 (UTC)

I could compile/install/use python-lief by bumping the version number to 0.13.2 + adding ninja as dependency.

AkechiShiro commented on 2023-05-20 22:19 (UTC)

Building in a clean chroot, shows that ninja is a missing makedependency.