X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 6458BDC129A for ; Mon, 12 Oct 2015 11:47:24 +0000 (UTC) Received: from newmail.tetrasec.net (unknown [74.117.189.116]) by mail.alpinelinux.org (Postfix) with ESMTP id 3F015DC1297 for ; Mon, 12 Oct 2015 11:47:24 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by newmail.tetrasec.net (Postfix) with ESMTPSA id ECA885A7E1F; Mon, 12 Oct 2015 11:36:56 +0000 (GMT) Date: Mon, 12 Oct 2015 13:47:20 +0200 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/opusfile: fix include of opus headers Message-ID: <20151012134720.0d35d76c@ncopa-desktop.alpinelinux.org> In-Reply-To: <1444573078-13010-1-git-send-email-soeren+git@soeren-tempel.net> References: <1444573078-13010-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Sun, 11 Oct 2015 16:17:58 +0200 S=F6ren Tempel wrote: > opus headers are installed to /usr/include/opus. I think this patch is wrong. opusfile should use pkg-config to set the cflag -I correctly. eg pkg-config --cflags opus It also looks like it does that. If you build with 'make V=3D1' you'll see that there are a -I/usr/include/opus which should make it find the headers. > --- > main/opusfile/APKBUILD | 15 ++++++++++----- > main/opusfile/fix-opus-include.patch | 12 ++++++++++++ > 2 files changed, 22 insertions(+), 5 deletions(-) > create mode 100644 main/opusfile/fix-opus-include.patch >=20 > diff --git a/main/opusfile/APKBUILD b/main/opusfile/APKBUILD > index 7408c97..6d55e9f 100644 > --- a/main/opusfile/APKBUILD > +++ b/main/opusfile/APKBUILD > @@ -1,7 +1,8 @@ > +# Contributor: S=F6ren Tempel > # Maintainer: Natanael Copa > pkgname=3Dopusfile > pkgver=3D0.6 > -pkgrel=3D0 > +pkgrel=3D1 > pkgdesc=3D"A high-level API for decoding and seeking within .opus files" > url=3D"http://www.opus-codec.org/" > arch=3D"all" > @@ -11,7 +12,8 @@ depends_dev=3D"libogg-dev openssl-dev opus-dev" > makedepends=3D"$depends_dev" > install=3D"" > subpackages=3D"$pkgname-dev $pkgname-doc" > -source=3D"http://downloads.xiph.org/releases/opus/opusfile-$pkgver.tar.g= z" > +source=3D"http://downloads.xiph.org/releases/opus/opusfile-$pkgver.tar.gz > + fix-opus-include.patch" > =20 > _builddir=3D"$srcdir"/opusfile-$pkgver > prepare() { > @@ -44,6 +46,9 @@ package() { > make DESTDIR=3D"$pkgdir" install || return 1 > } > =20 > -md5sums=3D"3d6705e66375f6205dffdd63b2ad3538 opusfile-0.6.tar.gz" > -sha256sums=3D"2428717b356e139f18ed2fdb5ad990b5654a238907a0058200b39c46a7= d03ea6 opusfile-0.6.tar.gz" > -sha512sums=3D"6fee48f3da21eeffed1ee5a3852234032aa559335225b07383c1104f5e= fba2f88aebe41c453ab2de472a69766e0fa9b48bec2f97d2a096b27afa96901802ba02 opu= sfile-0.6.tar.gz" > +md5sums=3D"3d6705e66375f6205dffdd63b2ad3538 opusfile-0.6.tar.gz > +6f657ede223112e9391ce23ebfc34818 fix-opus-include.patch" > +sha256sums=3D"2428717b356e139f18ed2fdb5ad990b5654a238907a0058200b39c46a7= d03ea6 opusfile-0.6.tar.gz > +b28204f1eb2271a411b6c7fbe38f87950a4b176885f261abad55de763098bd85 fix-op= us-include.patch" > +sha512sums=3D"6fee48f3da21eeffed1ee5a3852234032aa559335225b07383c1104f5e= fba2f88aebe41c453ab2de472a69766e0fa9b48bec2f97d2a096b27afa96901802ba02 opu= sfile-0.6.tar.gz > +0bb3b7cf4e3b4e5553a35f76d1eb4834ba1060f1318c1a813269e4f8b6b00d7c01025caa= f6dd016a26e85b43abf22a0f5c52aa81fa39537a23e21bf6bc59fe4c fix-opus-include.= patch" > diff --git a/main/opusfile/fix-opus-include.patch b/main/opusfile/fix-opu= s-include.patch > new file mode 100644 > index 0000000..12088b5 > --- /dev/null > +++ b/main/opusfile/fix-opus-include.patch > @@ -0,0 +1,12 @@ > +diff -upr opusfile-0.6.orig/include/opusfile.h opusfile-0.6/include/opus= file.h > +--- opusfile-0.6.orig/include/opusfile.h 2014-04-29 19:07:09.000000000 += 0200 > ++++ opusfile-0.6/include/opusfile.h 2015-10-11 16:14:49.617623661 +0200 > +@@ -107,7 +107,7 @@ extern "C" { > + # include > + # include > + # include > +-# include > ++# include > +=20 > + /**@cond PRIVATE*/ > +=20 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---