X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by lists.alpinelinux.org (Postfix) with ESMTP id EAF3D360F720 for ; Fri, 6 Nov 2009 12:42:43 +0000 (UTC) Received: by ewy9 with SMTP id 9so1006914ewy.25 for ; Fri, 06 Nov 2009 04:42:42 -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:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=UaqObby0HzMEnM1lud9tJjxZ3q/AxXuEMueRpfK6Oo4=; b=jEz4vFGjQIN5Sa3IM2KFW5Ai4rrAoWDFwuG+Xw5nMi00ZoLNtPer+IG/o+phtJAO60 /guen4KMuFEbhzEnIFnw9m2AJqNDoAoyzCr/YnsUHTYedqv1PBHQFDSuONqvpSadIJod WwIYKnRFvYZ+IVx5E2zdLRfMcJxXxCWdMcAAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=IAcj5v1dxAhdUtlTxfNm/hC7L2higK4TqLGPKHxJCQW55eFWgY10B+a9lo0qpfhUaV Fo+LZoal034AyPdTGOaQJjbrbDmOpH7YniiMUlC7s+++Mdu6tS3HmBRp8G3ZoW4hUez+ lo34BeuvvXok8rn+Z/VhDQz/MVTeA2Rh76Xf8= Received: by 10.213.23.200 with SMTP id s8mr792925ebb.52.1257511362303; Fri, 06 Nov 2009 04:42:42 -0800 (PST) Received: from ?10.65.65.1? (ti211310a081-0085.bb.online.no [85.164.0.85]) by mx.google.com with ESMTPS id 5sm350206eyf.39.2009.11.06.04.42.41 (version=SSLv3 cipher=RC4-MD5); Fri, 06 Nov 2009 04:42:41 -0800 (PST) Subject: [alpine-devel] RFC: special variable builddir in APKBUILDs? From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Date: Fri, 06 Nov 2009 13:44:20 +0100 Message-ID: <1257511460.1929.594.camel@ncopa-desktop.nor.wtbts.net> 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.28.1 Content-Transfer-Encoding: 7bit Hi, Just wondering if we should implement a special variable $builddir in APKBUILDs. This will do the same as $S in gentoo ebuilds, that is, define in what dir the sources are supposed to be build from. The idea is, if defined the following "magic" will happen: * all *.patch *.diff files listed in $source will be applied with -p1 (unless prepare() function is defined in APKBUILD) * before entering the use funcs prepare(), build(), package(), abuild will "cd $builddir" Benefit is that in the apkbuild, you will only need to define builddir="$srcdir"/$pkgname-$pkgver in global scope (or it coudl be predefinied as that), then can patches automatically be applied from the default prepare() function and the build() and package() function does not need the initial cd "$srcdir"/$pkgname-$pkgver Drawback is that now we add more "magic" functionallity and its not so obvious whats going on when you read the APKBUILD. What do you think? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---