From fcf0cd23d899b1fbf01e2463ee5f26af495a67dc Mon Sep 17 00:00:00 2001 From: Daniel Maksymow Date: Sat, 1 Feb 2025 00:41:48 +0900 Subject: gnu: Add chrpath. * gnu/packages/elf.scm (chrpath): New variable. Change-Id: I85a12f0994add5c197becda2b582b5e669e959b2 Co-authored-by: Maxim Cournoyer Signed-off-by: Maxim Cournoyer --- gnu/packages/elf.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index 74bc62a300..7b769770f8 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2021 Leo Le Bouter ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2022 Daniel Maksymow ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; @@ -35,7 +36,7 @@ (define-module (gnu packages elf) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) - #:use-module ((guix licenses) #:select (gpl3+ lgpl3+ lgpl2.0+ lgpl2.1 gpl2 bsd-2)) + #:use-module ((guix licenses) #:select (gpl2+ gpl3+ lgpl3+ lgpl2.0+ lgpl2.1 gpl2 bsd-2)) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages compression) @@ -50,6 +51,28 @@ (define-module (gnu packages elf) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) +(define-public chrpath + (package + (name "chrpath") + (version "0.18") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/pere/chrpath") + (commit (string-append "release_" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n7fp6xm660m8inaadlblh7zr8izyc3x39bfdqi6rj1kn0vmzra6")))) + (build-system gnu-build-system) + (native-inputs (list automake autoconf)) + (home-page "https://codeberg.org/pere/chrpath") + (synopsis "Utility for editing the RPATH or RUNPATH of ELF binaries") + (description "@code{chrpath} allows listing, changing or removing the +dynamic library load path (RPATH and RUNPATH) of compiled programs and +libraries.") + (license gpl2+))) + (define-public elfutils (package (name "elfutils") -- cgit v1.2.3