X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-fx0-f213.google.com (mail-fx0-f213.google.com [209.85.220.213]) by lists.alpinelinux.org (Postfix) with ESMTP id 122EB61D441 for ; Sun, 6 Sep 2009 18:56:02 +0000 (UTC) Received: by fxm9 with SMTP id 9so1677459fxm.25 for ; Sun, 06 Sep 2009 11:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=RIA1pVp5RZF24Z640Qrra/0heowKuXwqodpwC6+RktY=; b=gspgsKdDfEE+pBBER4Z6pJejXV3TdSX10EQJw2iyDgTrPoEuUkCdHn2rV21gPi7m/l kNHbzwQZy/kVlmEiXr9Br576BU41lVCdj6yaVEcS1H88mdYbXbWK85QaY4bq1n8tte3c ujHP/NbIwo5Xfs0xPXdBc6g+ljO6hci38NCxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=gs50Z3l7acThunX1OD+D8gG/nLDTUIl9FwPDV/Lx3xskm0EjguIACKIyl9Edjp0kXC p72IgWAZG5GPJxKBiREKovTWIeDfkXPWFp9f6ly+fHbQAScZAS2Chw8dzNvUkVevXBnF rnDTrdxe/N4lT4QBhJFIoQbZNiWfUIbI0zezM= Received: by 10.86.231.17 with SMTP id d17mr7093248fgh.46.1252263361126; Sun, 06 Sep 2009 11:56:01 -0700 (PDT) Received: from localhost ([90.149.48.245]) by mx.google.com with ESMTPS id e11sm7934972fga.13.2009.09.06.11.55.59 (version=SSLv3 cipher=RC4-MD5); Sun, 06 Sep 2009 11:56:00 -0700 (PDT) Date: Sun, 6 Sep 2009 18:55:55 +0000 From: Natanael Copa To: "Sebastian Wicki" Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] APKBUILDs for mpd & libmad Message-ID: <20090906185555.7a08be26@gmail.com> In-Reply-To: <20090905211830.176480@gmx.net> References: <20090905211830.176480@gmx.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i686-pc-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 05 Sep 2009 23:18:30 +0200 "Sebastian Wicki" wrote: > ncopa suggested me to send it to alpine-devel, so here it is. I've > copied the most from Arch Linux, including some patches for libmad. Thats how I do too. Reuse from Arch Linux and gentoo. > So, please notice, it's my first APKBUILD and therefore you should > take a good look at it first. I think it was very good to be a first APBUILD. I have some comments below. > I'm not sure if everything really works as it should, but at least it > builds and I was able to play a mp3 file so far. If it plays and not segfaults, then its normally good enough. Some comments: * You don't need specify the depends as abuild will auto add them by tracing the .so dependencies. This is a relatively new feature so many apkbuilds still have stuff in depends. Normally you only need to add the your needed -dev libs to makedepends. Exception is scripting languages. If you have perl/python/bash (not /bin/sh) or other scripting language you will need to do do the dependency handling manually. (normally its a question about adding perl/python/bash to depends) * we start our pkgrel with 0. aruclinux start with 1. * I prefer to reuse init.d scripts from Gentoo as they also use openrc. They are normally well tested. libmad: * i think you should run aclocal in order to do properly do the mad.pc patch. The patch needs some reworks for that though. They shouldnt edit the Makefile.in as its generated by automake. Normally its best to do a "correct" patch that can be included upstream. the arch linux patch is not suitable for upstream so for now i think I just do as gentoo and just add a mad.pc file. * I prefer tabs indent everywhere (your had 4 spaces some places). mpd: * i wonder if we maybe should create an mpd user and group. I don't think we want it to be run as root. Anyway... this is a very good start. I have committed libmad. Will try look at mpd tomorrow. It need to create the mpd user. Thanks! -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---