summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2026-08-28 12:15:22 +0900
committerNguyễn Gia Phong <cnx@loang.net>2026-08-28 12:15:36 +0900
commita6f240b7e07d1632ad8e30243560effd84099728 (patch)
tree4e32546b739eb9fd990375cdf85dda7bf84892bd
parentb59762fdb07df176f0ec922ff76c761528c9ff5c (diff)
gnu: e9patch: Update to 1.0.1.
* gnu/packages/patchutils.scm (e9patch): Update to 1.0.1. [arguments]<#:phases>{wrap-e9compile}: New phase after 'install. [inputs]: Add findutils.
-rw-r--r--gnu/packages/patchutils.scm18
1 files changed, 15 insertions, 3 deletions
diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index bb1d8bc22d7..4ef60937d4b 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -128,7 +128,7 @@ specifying desired matches and transformations in the C code.")
128(define-public e9patch 128(define-public e9patch
129 (package 129 (package
130 (name "e9patch") 130 (name "e9patch")
131 (version "1.0.0") 131 (version "1.0.1")
132 (source 132 (source
133 (origin 133 (origin
134 (method git-fetch) 134 (method git-fetch)
@@ -137,7 +137,7 @@ specifying desired matches and transformations in the C code.")
137 (commit (string-append "v" version)))) 137 (commit (string-append "v" version))))
138 (file-name (git-file-name name version)) 138 (file-name (git-file-name name version))
139 (sha256 139 (sha256
140 (base32 "1bgv05fnz0kfzpyikadp96zrr83214lk2nx82jpmlv9dq0lhxccq")) 140 (base32 "185zwzz2cxraidzan328qynibkakk21nw7jip4p9n60nnlha6aab"))
141 ;; E9Patch is sensitive to Zydis version, including the latter's bugs: 141 ;; E9Patch is sensitive to Zydis version, including the latter's bugs:
142 ;; https://github.com/GJDuck/e9patch/pull/94#issuecomment-2525069952 142 ;; https://github.com/GJDuck/e9patch/pull/94#issuecomment-2525069952
143 (patches (search-patches "e9patch-zydis-4.1-compat.patch")) 143 (patches (search-patches "e9patch-zydis-4.1-compat.patch"))
@@ -160,12 +160,24 @@ specifying desired matches and transformations in the C code.")
160 (list 160 (list
161 #:phases 161 #:phases
162 #~(modify-phases %standard-phases 162 #~(modify-phases %standard-phases
163 (add-after 'install 'wrap-e9compile
164 (lambda* (#:key inputs #:allow-other-keys)
165 (wrap-program (string-append #$output "/bin/e9compile")
166 `("PATH" suffix
167 (,(dirname (search-input-file inputs "bin/gcc"))
168 ,(dirname (search-input-file inputs "bin/grep"))
169 ,(dirname (search-input-file inputs "bin/head"))
170 ,(dirname (search-input-file inputs "bin/readelf"))
171 ,(dirname (search-input-file inputs "bin/xargs"))))
172 `("C_INCLUDE_PATH" suffix
173 (,(dirname (search-input-directory
174 inputs "include/linux")))))))
163 (delete 'configure)) 175 (delete 'configure))
164 #:make-flags 176 #:make-flags
165 #~(list (string-append "CC=" #$(cc-for-target)) 177 #~(list (string-append "CC=" #$(cc-for-target))
166 (string-append "PREFIX=" #$output)))) 178 (string-append "PREFIX=" #$output))))
167 (native-inputs (list markdown xxd)) 179 (native-inputs (list markdown xxd))
168 (inputs (list elfutils zycore zydis zlib)) 180 (inputs (list elfutils findutils zycore zydis zlib))
169 (home-page "https://github.com/GJDuck/e9patch") 181 (home-page "https://github.com/GJDuck/e9patch")
170 (synopsis "Static binary rewriting tool") 182 (synopsis "Static binary rewriting tool")
171 (description 183 (description