From patchwork Thu Oct 7 14:29:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33679 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 461D427BBE1; Thu, 7 Oct 2021 15:32:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8935F27BBE3 for ; Thu, 7 Oct 2021 15:32:51 +0100 (BST) Received: from localhost ([::1]:40594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYUS2-0003Sl-KB for patchwork@mira.cbaines.net; Thu, 07 Oct 2021 10:32:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYUQJ-0000Wl-7x for guix-patches@gnu.org; Thu, 07 Oct 2021 10:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYUQI-00031y-VL for guix-patches@gnu.org; Thu, 07 Oct 2021 10:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYUQI-00042v-SV for guix-patches@gnu.org; Thu, 07 Oct 2021 10:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51085] [PATCH 3/7] gnu: opusfile: Add new phase after unpack. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Oct 2021 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51085 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51085@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51085-submit@debbugs.gnu.org id=B51085.163361701615429 (code B ref 51085); Thu, 07 Oct 2021 14:31:02 +0000 Received: (at 51085) by debbugs.gnu.org; 7 Oct 2021 14:30:16 +0000 Received: from localhost ([127.0.0.1]:48233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYUPX-00040n-O2 for submit@debbugs.gnu.org; Thu, 07 Oct 2021 10:30:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYUPV-00040K-NR for 51085@debbugs.gnu.org; Thu, 07 Oct 2021 10:30:14 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EDE10240101 for <51085@debbugs.gnu.org>; Thu, 7 Oct 2021 16:30:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1633617008; bh=IiHEICBD7jhtHWEOosBA+4eWekqbKmmWsMmrBqXVtyM=; h=From:To:Cc:Subject:Date:From; b=EP3VyChp+EGDPYDqk5mIXT2v1vgXkuM6Hkp062tPy9zvmlfaGBz5ozZQiCkyiFesV 9a1i1rw90hLkIR35TszCBHJNy3DunN+FIUDuEcpy0DwUIX2wGfZdByxPB0qVGIO8CP rAU0lKmgcppTKNeGNHYl66RfpVDpqOMF3fQFeRgcjGivyosfoL1knWfnMeNMx99951 b3p5w4jByhHSRWn4ar4s2IlbJOTtUHZc+ToC3XY6NamBNYPLvnmpYxYE4KkxGkNq/7 OO/ISnFCT5Tk0iU21Cu3OwGf1/BAvAftxjnWg/nmOH8mzRc9rVP5MNZlL6Qr2I/rwU +6S5ZGcS3rU5Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HQDHf6X9Vz9rxV; Thu, 7 Oct 2021 16:30:06 +0200 (CEST) From: Vinicius Monego Date: Thu, 7 Oct 2021 14:29:37 +0000 Message-Id: <20211007142941.46591-3-monego@posteo.net> In-Reply-To: <20211007142941.46591-1-monego@posteo.net> References: <20211007142941.46591-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2021 Vinicius Monego ;;; ;;; 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)