[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/37: gnu: libx264: Fix building on riscv64-linux.
From: |
guix-commits |
Subject: |
37/37: gnu: libx264: Fix building on riscv64-linux. |
Date: |
Tue, 2 Nov 2021 03:27:19 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit 34758aca7cdf440f5cdb1793d812830226cd6bdb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Oct 7 10:48:06 2021 +0300
gnu: libx264: Fix building on riscv64-linux.
* gnu/packages/video.scm (libx264)[inputs]: Add config.
[arguments]: Adjust configure-flags to always build PIC code. Add custom
phase to replace config.guess, config.sub scripts.
---
gnu/packages/video.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 3a711f9..7b61bcd 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -917,6 +917,8 @@ shared library and encoder and decoder command-line
executables.")
(native-inputs
`(("pkg-config" ,pkg-config)
("nasm" ,nasm)))
+ (inputs
+ `(("config" ,config)))
;; TODO: Add gpac input
(arguments
`(#:tests? #f ;no check target
@@ -927,6 +929,7 @@ shared library and encoder and decoder command-line
executables.")
;; program depends on ffmpeg and ffmpeg depends on
;; libx264).
"--disable-cli"
+ "--enable-pic"
;; On MIPS, we must pass "--disable-asm" or else
;; configure fails after printing: "You specified
a
@@ -937,7 +940,17 @@ shared library and encoder and decoder command-line
executables.")
(or (%current-target-system)
(%current-system)))
'("--disable-asm")
- '()))))
+ '()))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'update-config-scripts
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ (for-each (lambda (file)
+ (install-file
+ (search-input-file
+ (or native-inputs inputs)
+ (string-append "/bin/" file)) "."))
+ '("config.guess" "config.sub")))))))
(home-page "https://www.videolan.org/developers/x264.html")
(synopsis "H.264 video coding library")
(description "libx264 is an advanced encoding library for creating
- 31/37: gnu: make-opensbi-package: Fix native building., (continued)
- 31/37: gnu: make-opensbi-package: Fix native building., guix-commits, 2021/11/02
- 34/37: build-system/meson: Fix cross-building to riscv64-linux., guix-commits, 2021/11/02
- 15/37: gnu: lz4: Build on riscv64-linux without valgrind., guix-commits, 2021/11/02
- 12/37: gnu: openblas-ilp64: Add riscv64-linux as a supported architecture., guix-commits, 2021/11/02
- 17/37: gnu: texlive-latex-base: Skip JIT formats on riscv64-linux., guix-commits, 2021/11/02
- 19/37: gnu: Use libunwind-next for riscv64-linux., guix-commits, 2021/11/02
- 18/37: gnu: Add libunwind-next., guix-commits, 2021/11/02
- 25/37: gnu: nss: Adjust make-flags for riscv64-linux., guix-commits, 2021/11/02
- 27/37: gnu: make-opensbi-package: Adjust installed files., guix-commits, 2021/11/02
- 36/37: gnu: Add u-boot-sifive-unmatched-bootloader., guix-commits, 2021/11/02
- 37/37: gnu: libx264: Fix building on riscv64-linux.,
guix-commits <=
- 30/37: gnu: php: Skip tests failing on riscv64-linux., guix-commits, 2021/11/02
- 32/37: gnu: postgresql: Fix building on riscv64-linux., guix-commits, 2021/11/02
- 33/37: gnu: isc-dhcp: Fix building on riscv64-linux., guix-commits, 2021/11/02
- 35/37: gnu: gtk+: Remove some more failing tests., guix-commits, 2021/11/02