* [bug#72838] [PATCH core-updates] gnu: ffmpeg: Fix build on i686 with binutils 2.41.
@ 2024-08-27 18:46 André Batista
2024-08-28 21:15 ` bug#72838: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: André Batista @ 2024-08-27 18:46 UTC (permalink / raw)
To: 72838; +Cc: André Batista
* gnu/packages/video.scm (ffmpeg): Add 'bypass-openal-check phase
which breaks configure phase on i686. Unconditionally set openal
configure check to true.
---
gnu/packages/video.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index f7d58ab8f5..e2720628bb 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1835,6 +1835,15 @@ (define-public ffmpeg
"--disable-mipsfpu")
#:phases
#~(modify-phases %standard-phases
+ (add-before 'configure 'bypass-openal-check
+ ;; configure fails linking to openal when using binutils >= 2.38
+ ;; due to openal's usage of protected visibility for its dynamic
+ ;; symbols. Bypass this configure time check for now. See:
+ ;; https://lists.gnu.org/archive/html/guix-devel/2024-08/msg00159.html
+ (lambda _
+ (substitute* "configure"
+ (("alGetError \\|\\|")
+ "alGetError \|\| true \|\|"))))
(replace 'configure
;; configure does not work followed by "SHELL=..." and
;; "CONFIG_SHELL=..."; set environment variables instead
base-commit: 87cc46aefce0072dc83e667d85a59a34eecfd89f
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#72838: [PATCH core-updates] gnu: ffmpeg: Fix build on i686 with binutils 2.41.
2024-08-27 18:46 [bug#72838] [PATCH core-updates] gnu: ffmpeg: Fix build on i686 with binutils 2.41 André Batista
@ 2024-08-28 21:15 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-08-28 21:15 UTC (permalink / raw)
To: André Batista; +Cc: 72838-done
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
Hello,
André Batista <nandre@riseup.net> skribis:
> * gnu/packages/video.scm (ffmpeg): Add 'bypass-openal-check phase
> which breaks configure phase on i686. Unconditionally set openal
> configure check to true.
Applied with the change below to avoid a rebuild on other systems.
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1674 bytes --]
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index e2720628bb..ac89562a55 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1835,15 +1835,18 @@ (define-public ffmpeg
"--disable-mipsfpu")
#:phases
#~(modify-phases %standard-phases
- (add-before 'configure 'bypass-openal-check
- ;; configure fails linking to openal when using binutils >= 2.38
- ;; due to openal's usage of protected visibility for its dynamic
- ;; symbols. Bypass this configure time check for now. See:
- ;; https://lists.gnu.org/archive/html/guix-devel/2024-08/msg00159.html
- (lambda _
- (substitute* "configure"
- (("alGetError \\|\\|")
- "alGetError \|\| true \|\|"))))
+ #$@(if (target-x86-32?)
+ #~((add-before 'configure 'bypass-openal-check
+ ;; configure fails linking to openal when using binutils
+ ;; >= 2.38 due to openal's usage of protected visibility
+ ;; for its dynamic symbols. Bypass this configure time
+ ;; check for now. See:
+ ;; https://lists.gnu.org/archive/html/guix-devel/2024-08/msg00159.html
+ (lambda _
+ (substitute* "configure"
+ (("alGetError \\|\\|")
+ "alGetError \|\| true \|\|")))))
+ #~())
(replace 'configure
;; configure does not work followed by "SHELL=..." and
;; "CONFIG_SHELL=..."; set environment variables instead
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-28 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 18:46 [bug#72838] [PATCH core-updates] gnu: ffmpeg: Fix build on i686 with binutils 2.41 André Batista
2024-08-28 21:15 ` bug#72838: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).