X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by lists.alpinelinux.org (Postfix) with ESMTP id 9320417003B9D for ; Tue, 3 Feb 2009 13:02:39 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so873774fgg.25 for ; Tue, 03 Feb 2009 05:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=SlQK+if2eWjfPM7OxR7YHBEDbs1Q5vhvCiKSb92vrHg=; b=g2eGc8ZBg256r75Gyjco2OHLU0t1q0OyuYTY7b/AZtRzrBRFJx6h2xb27ZqCWhX99o PfxDfcPSn1r9ylGBsWOrXmSzgdqgoaNBzVP/D0IUy6YMLJicDtWDANLOpYvoZis0eDIW 9Vtkk708oRvL84dD/1sFxTbBp4TsRWh0GPd+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=rNM/Uointx50e8R0CNyfeRMRILEIMt5lSNwYS5RbI28HvB+PIEFFnRm4O7wvsMzP9W MYc9+MlJDrzOpwbawT6hw826HvebQ6uKY3v3HDfRaeCYOy8ypB8q7FSdoWCJ0twXoRuD yNY7T2JMqPPVfit7gD2MbZjrL33FnPF6dHn90= Received: by 10.86.95.8 with SMTP id s8mr489864fgb.79.1233666158583; Tue, 03 Feb 2009 05:02:38 -0800 (PST) Received: from ?10.65.65.1? (149-182-13.oke2-bras2.adsl.tele2.no [90.149.182.13]) by mx.google.com with ESMTPS id 4sm7563778fgg.15.2009.02.03.05.02.34 (version=SSLv3 cipher=RC4-MD5); Tue, 03 Feb 2009 05:02:34 -0800 (PST) Subject: Re: [alpine-devel] testing/libogg: New APKBUILD From: Natanael Copa To: Mika Havela Cc: alpine In-Reply-To: <4843FAEB0398BBF5@pne-smtpout2-sn1.fre.skanova.net> (added by postmaster@pne.skanova.net) References: <4843FAEB0398BBF5@pne-smtpout2-sn1.fre.skanova.net> (added by postmaster@pne.skanova.net) Content-Type: text/plain Date: Tue, 03 Feb 2009 14:02:32 +0100 Message-Id: <1233666152.6926.71.camel@nc> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit On Tue, 2009-02-03 at 10:13 +0000, Mika Havela wrote: > Please have a extra look at this one. > It's my first /real/ APKBUILD so it might have some errors. Congrats! Very good to be first real APKBUILD. You do come across some new stuff here that no other APKBUILD have needed to deal with. > > > > > > > differences > between files > attachment > (0001-testing-libogg-New-APKBUILD-for-libogg.patch) > > From ee887317def720a68dd49960f23b554236adf9de Mon Sep 17 00:00:00 2001 > From: Mika Havela > Date: Tue, 3 Feb 2009 10:10:23 +0000 > Subject: [PATCH] testing/libogg: New APKBUILD for libogg > > I have the feeling that this APKBUILD needs some extra work. > --- > testing/libogg/APKBUILD | 27 +++++++++++++++++++++++++++ > 1 files changed, 27 insertions(+), 0 deletions(-) > create mode 100644 testing/libogg/APKBUILD > > diff --git a/testing/libogg/APKBUILD b/testing/libogg/APKBUILD > new file mode 100644 > index 0000000..c62705f > --- /dev/null > +++ b/testing/libogg/APKBUILD > @@ -0,0 +1,27 @@ > +# Contributor: Mika Havela > +pkgname=libogg > +pkgver=1.1.3 > +pkgrel=0 > +pkgdesc="Ogg bitstream and framing library" > +url="http://xiph.org/ogg/" > +license="unknown" is the license really unknown? Later on it looks like the license gets installed so i dont think its unknown. Gentoo says license is as-is. I think we can use that too. > +depends="uclibc" > +makedepends="uclibc++-dev" The only thing that does not make sense is: Why do we need install uclibc++-dev (or g++ which is the real problem here) if we actually don't use it? The problem is that libogg looks for g++ and fails if its not there. Really stupid as it does not use it at all. So while your APKBUILD does work around the problem by make sure g++ is installed, we can do better. :) Gentoo have a function called epunt_cxx. I checked what it does. i simply apply a patch for autoconf generated configure scripts and just ignore the fact that g++ is missing. I suggest we just copy this patch and just apply it rather than installing g++. > +install= > +subpackages="$pkgname-doc $pkgname-dev" > +source="http://downloads.xiph.org/releases/ogg/$pkgname-$pkgver.tar.gz" > + > +build() { > + cd "$srcdir/$pkgname-$pkgver" > + > + ./configure --prefix=/usr > + make -j1 || return 1 Does package fail to build in parallel? As i understand, some packages cannot handle parallel builds during 'make install' phase. Most packages handles that just fine. We should not prevent users who have 8 cores to actually use them unless it is absolutely necessary. (so generally, its better to find out why the parallel build fails and fix that) > + make -j1 DESTDIR="$pkgdir" install > + > + install -Dm644 COPYING > "$pkgdir"/usr/share/licenses/$pkgname/COPYING > + > + # install -m755 -D "$srcdir"/$pkgname.initd > "$pkgdir"/etc/init.d/$pkgname > + # install -m644 -D "$srcdir"/$pkgname.confd > "$pkgdir"/etc/conf.d/$pkgname those lines can be removed. dead code. > +} > + > +md5sums="eaf7dc6ebbff30975de7527a80831585 libogg-1.1.3.tar.gz" > -- > 1.6.1 > Otherwise, very well! I'll commit it and do the above changes. Thanks! --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---