guix: import LIEF from upstream (0.12.3)

Updates to version 0.12.3.
Retain our PPC64 patch.
Mention when we can drop our local definition.
This commit is contained in:
fanquake 2023-03-21 14:26:01 +00:00
parent 34551cb97a
commit 43d8173f99
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -208,35 +208,39 @@ chain for " target " development."))
(package-with-extra-patches lief (package-with-extra-patches lief
(search-our-patches "lief-fix-ppc64-nx-default.patch"))) (search-our-patches "lief-fix-ppc64-nx-default.patch")))
(define-public lief ;; Our python-lief package can be removed once we are using
;; guix 83bfdb409787cb2737e68b093a319b247b7858e6 or later.
(define-public python-lief
(package (package
(name "python-lief") (name "python-lief")
(version "0.12.1") (version "0.12.3")
(source (source (origin
(origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url "https://github.com/lief-project/LIEF")
(url "https://github.com/lief-project/LIEF.git") (commit version)))
(commit version))) (file-name (git-file-name name version))
(file-name (git-file-name name version)) (sha256
(sha256 (base32
(base32 "11i6hqmcjh56y554kqhl61698n9v66j2qk1c1g63mv2w07h2z661"))))
"1xzbh3bxy4rw1yamnx68da1v5s56ay4g081cyamv67256g0qy2i1")))) (build-system python-build-system)
(build-system python-build-system) (native-inputs (list cmake))
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:tests? #f ;needs network
(add-after 'unpack 'parallel-jobs #:phases #~(modify-phases %standard-phases
;; build with multiple cores (replace 'build
(lambda _ (lambda _
(substitute* "setup.py" (("self.parallel if self.parallel else 1") (number->string (parallel-job-count))))))))) (invoke
(native-inputs "python" "setup.py" "--sdk" "build"
`(("cmake" ,cmake))) (string-append
(home-page "https://github.com/lief-project/LIEF") "-j" (number->string (parallel-job-count)))))))))
(synopsis "Library to Instrument Executable Formats") (home-page "https://github.com/lief-project/LIEF")
(description "Python library to to provide a cross platform library which can (synopsis "Library to instrument executable formats")
parse, modify and abstract ELF, PE and MachO formats.") (description
(license license:asl2.0))) "@code{python-lief} is a cross platform library which can parse, modify
and abstract ELF, PE and MachO formats.")
(license license:asl2.0)))
(define osslsigncode (define osslsigncode
(package (package
@ -596,7 +600,7 @@ inspecting signatures in Mach-O binaries.")
;; Git ;; Git
git-minimal git-minimal
;; Tests ;; Tests
(fix-ppc64-nx-default lief)) (fix-ppc64-nx-default python-lief))
(let ((target (getenv "HOST"))) (let ((target (getenv "HOST")))
(cond ((string-suffix? "-mingw32" target) (cond ((string-suffix? "-mingw32" target)
;; Windows ;; Windows