diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2025-12-01 10:35:21 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-12-02 15:47:45 +0200 |
| commit | d48a3379d1b19ef24d98ed6f3d932b9d545cbcb8 (patch) | |
| tree | fd24c2d85832623df2b58f2244ad64b7ce648b15 /gnu/packages/linux.scm | |
| parent | 642f28f47ff9b8d4cb04b59aac3bff875ab60639 (diff) | |
gnu: libcap: Fix build on powerpc-linux.
* gnu/packages/linux.scm (libcap)[arguments]: When building for
powerpc-linux add a phase to apply a patch.
* gnu/packages/patches/libcap-magic-glibc-constant.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
Change-Id: I3d2d7d09684af604b17b13ffbcfcc31db46d2d82
Diffstat (limited to 'gnu/packages/linux.scm')
| -rw-r--r-- | gnu/packages/linux.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 1ef168b1441..83dc35610fb 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4903,7 +4903,16 @@ configuration (iptunnel, ipmaddr).") (arguments (list #:phases #~(modify-phases %standard-phases - (delete 'configure)) + (delete 'configure) + #$@(if (target-ppc32?) + #~((add-after 'unpack 'apply-patch + (lambda _ + (let ((patch + #$(local-file + (search-patch + "libcap-magic-glibc-constant.patch")))) + (invoke "patch" "--force" "-p1" "-i" patch))))) + #~())) #:test-target "test" #:make-flags #~(list "lib=lib" |
