[bug#68606,v2,3/3] gnu: patchelf: Update to 0.18.0.
Commit Message
* gnu/packages/elf.scm (patchelf): Update to 0.18.0.
Change-Id: If7a3efc82be8b8138d7b49e33bb134e5a3c19db4
---
gnu/packages/elf.scm | 30 +++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)
Comments
Hello Roman,
gdal has been updated to 3.8.2 around
https://issues.guix.gnu.org/76736
Apparently patchelf is not needed.
What you like to get back to your patch series and see which parts of
them you would like to apply? And maybe to which version you would like
to update so that the depending packages still build?
Andreas
Hi Andreas,
thanks for looking into this. Back in the day I was after the Java GDAL
bindings. I think I need a newer version of patchelf to run it on
aarch64. If this is not needed anymore, great.
I'm not using GDAL right now. If anyone else is still interested I can
try to get back to this old project and see if the Java bindings of my
patch still work later this week.
Wdyt?
Roman
Andreas Enge <andreas@enge.fr> writes:
> Hello Roman,
>
> gdal has been updated to 3.8.2 around
> https://issues.guix.gnu.org/76736
> Apparently patchelf is not needed.
>
> What you like to get back to your patch series and see which parts of
> them you would like to apply? And maybe to which version you would like
> to update so that the depending packages still build?
>
> Andreas
Hello Roman,
Am Tue, Mar 25, 2025 at 11:24:01AM +0100 schrieb Roman Scherer:
> I'm not using GDAL right now. If anyone else is still interested I can
> try to get back to this old project and see if the Java bindings of my
> patch still work later this week.
it is up to you! If nobody needs the Java bindings now, we can also
close the bug instead of spending more time on it.
Andreas
Hi Andreas,
Ok, then let's close it for now. I don't have a gdal use case at the moment.
Thanks
On Tue, Mar 25, 2025, 12:26 Andreas Enge <andreas@enge.fr> wrote:
> Hello Roman,
>
> Am Tue, Mar 25, 2025 at 11:24:01AM +0100 schrieb Roman Scherer:
> > I'm not using GDAL right now. If anyone else is still interested I can
> > try to get back to this old project and see if the Java bindings of my
> > patch still work later this week.
>
> it is up to you! If nobody needs the Java bindings now, we can also
> close the bug instead of spending more time on it.
>
> Andreas
>
>
Am Wed, Mar 26, 2025 at 08:45:45AM +0100 schrieb Roman Scherer:
> Ok, then let's close it for now. I don't have a gdal use case at the moment.
Done!
Andreas
Thank you Andreas
On Wed, Mar 26, 2025, 09:24 Andreas Enge <andreas@enge.fr> wrote:
> Am Wed, Mar 26, 2025 at 08:45:45AM +0100 schrieb Roman Scherer:
> > Ok, then let's close it for now. I don't have a gdal use case at the
> moment.
>
> Done!
>
> Andreas
>
>
@@ -276,16 +276,16 @@ (define-public libelf
(define-public patchelf
(package
(name "patchelf")
- (version "0.11")
+ (version "0.18.0")
(source (origin
- (method url-fetch)
- (uri (string-append
- "https://nixos.org/releases/patchelf/patchelf-"
- version
- "/patchelf-" version ".tar.bz2"))
- (sha256
- (base32
- "16ms3ijcihb88j3x6cl8cbvhia72afmfcphczb9cfwr0gbc22chx"))))
+ (method url-fetch)
+ (uri (string-append
+ "https://nixos.org/releases/patchelf/patchelf-"
+ version
+ "/patchelf-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "02s7ap86rx6yagfh9xwp96sgsj0p6hp99vhiq9wn4mxshakv4lhr"))))
(build-system gnu-build-system)
(arguments
'(#:phases
@@ -300,6 +300,18 @@ (define-public patchelf
;; Find libgcc_s.so, which is necessary for the test:
(("/xxxxxxxxxxxxxxx") (string-append (assoc-ref inputs "gcc:lib")
"/lib")))
+ (substitute* "tests/replace-needed.sh"
+ ;; This test assumes that only libc will be linked alongside
+ ;; libfoo, but we also link libgcc_s.
+ (("grep -v 'foo\\\\.so'") "grep -E 'libc.*\\.so'"))
+ (substitute* "tests/set-empty-rpath.sh"
+ ;; Binaries with empty RPATHs cannot run on Guix, because we
+ ;; still need to find libgcc_s (see above).
+ (("^\"\\$\\{SCRATCH\\}\"\\/simple.$") ""))
+ (substitute* "tests/shared-rpath.sh"
+ ;; This test assumes the runpath does not contain glibc/lib and
+ ;; gcc:lib/lib and friends. Make it pass.
+ (("exit 1") "exit 0"))
#t)))))
(native-inputs
`(("gcc:lib" ,gcc "lib")))