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 D0039DC0060 for ; Mon, 1 Feb 2016 21:29:20 +0000 (UTC) Received: from lithium.8pit.net (lithium.8pit.net [81.4.121.103]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 5D7FDDC0017 for ; Mon, 1 Feb 2016 21:29:20 +0000 (UTC) Received: from localhost (ip5f5aca14.dynamic.kabel-deutschland.de [95.90.202.20]) by lithium.8pit.net (OpenSMTPD) with ESMTPSA id 33334a8d TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 1 Feb 2016 22:29:13 +0100 (CET) Date: Mon, 1 Feb 2016 22:29:08 +0100 From: =?iso-8859-1?Q?S=F6ren?= Tempel To: alpine-aports@lists.alpinelinux.org Cc: ncopa@alpinelinux.org Subject: Re: [alpine-aports] Please *don't* drop prepare! Message-ID: <20160201212908.GA19972@francium.lan> References: <20160201020958.GA4726@newbook> <20160201092107.4bb58861@ncopa-desktop.alpinelinux.org> 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-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20160201092107.4bb58861@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Virus-Scanned: ClamAV using ClamSMTP On 01.02.16, Natanael Copa wrote: > > This makes it needlessly hard to add patches: the moment someone wants = to > > fix a problem, this bites them because they'll try adding a patch, > > build, and wonder "Why on earth am I seeing the problem I just fixed?" > >=20 > > I just ran into this with bridge-utils. >=20 > +1 I just assumed that noice was simple enough to probably never need patches in the future, however, if it's considered a "common practice" to always keep the prepare function than I will do so in the future. > =20 > > Anyhow... > > Is there a reason that this couldn't be moved to abuild? >=20 > Not really. I would also prefer it if all source files matching "*.patch" would be applied automatically. > > I know that bash uses -p0 patches, which wouldn't work with this. > > But other than that, it seems to be a universal constant. >=20 > I think gentoo tries various -pN variants before error. We could do somet= hing like: >=20 > patch -p1 -i .... || patch -p0 -i ... That can cause a lot of problems. I think the easier solution would be to simply add an optional variable (with the default value "-p1") which allows you to pass extra command line flags to patch(1) from the APKBUILD itself. S=F6ren. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---