From: Vinicius Monego <monego@posteo.net>
To: 51085@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#51085] [PATCH v2 3/7] gnu: opusfile: Add new phase after unpack.
Date: Sat, 9 Oct 2021 15:28:16 +0000 [thread overview]
Message-ID: <20211009152820.294764-3-monego@posteo.net> (raw)
In-Reply-To: <20211009152820.294764-1-monego@posteo.net>
* gnu/packages/xiph.scm (opusfile)[arguments]<#:phases>: After the unpack
phase add a fix-multistream phase to adjust the include header call of
opus_multistream.h so that opusfile can find it.
---
gnu/packages/xiph.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xiph.scm b/gnu/packages/xiph.scm
index fbbcbd6e61..0c9c799067 100644
--- a/gnu/packages/xiph.scm
+++ b/gnu/packages/xiph.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
+;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -406,7 +407,16 @@ decoding .opus files.")
"02smwc5ah8nb3a67mnkjzqmrzk43j356hgj2a97s9midq40qd38i"))))
(build-system gnu-build-system)
(arguments
- '(#:configure-flags '("--disable-static")))
+ '(#:configure-flags '("--disable-static")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-multistream
+ ;; Opus include directory should be passed explicitly:
+ ;; https://github.com/xiph/opusfile/issues/10 however,
+ ;; opus_multistream.h still can't be found by the compiler.
+ (lambda _
+ (substitute* "include/opusfile.h"
+ (("opus_multistream\\.h") "opus/opus_multistream.h")))))))
;; Required by opusfile.pc and opusurl.pc.
(propagated-inputs
`(("libogg" ,libogg)
--
2.30.2
next prev parent reply other threads:[~2021-10-09 15:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-07 14:27 [bug#51085] [PATCH 0/7] Add Mixxx Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 1/7] gnu: Add libkeyfinder Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 2/7] gnu: Add libdjinterop Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 3/7] gnu: opusfile: Add new phase after unpack Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 4/7] gnu: Add libshout-idjc Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 5/7] gnu: Add spscqueue Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 6/7] gnu: Add mp3guessenc Vinicius Monego
2021-10-07 14:29 ` [bug#51085] [PATCH 7/7] gnu: Add mixxx Vinicius Monego
2021-10-09 15:28 ` [bug#51085] [PATCH v2 1/7] gnu: Add libkeyfinder Vinicius Monego
2021-10-09 15:28 ` [bug#51085] [PATCH v2 2/7] gnu: Add libdjinterop Vinicius Monego
2021-10-09 15:28 ` Vinicius Monego [this message]
2021-10-09 15:28 ` [bug#51085] [PATCH v2 4/7] gnu: Add libshout-idjc Vinicius Monego
2021-10-09 15:28 ` [bug#51085] [PATCH v2 5/7] gnu: Add spscqueue Vinicius Monego
2021-10-09 15:28 ` [bug#51085] [PATCH v2 6/7] gnu: Add mp3guessenc Vinicius Monego
2021-10-11 21:55 ` Leo Famulari
2021-10-12 22:49 ` Vinicius Monego
2021-10-09 15:28 ` [bug#51085] [PATCH v2 7/7] gnu: Add mixxx Vinicius Monego
2021-10-11 22:04 ` Leo Famulari
2021-10-12 22:54 ` Vinicius Monego
2021-10-16 21:40 ` bug#51085: " Leo Famulari
2021-10-11 17:02 ` [bug#51085] [PATCH 0/7] Add Mixxx Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211009152820.294764-3-monego@posteo.net \
--to=monego@posteo.net \
--cc=51085@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.