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.159]) by lists.alpinelinux.org (Postfix) with ESMTP id 21BD7360F716 for ; Mon, 16 Nov 2009 10:14:01 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so1199109fgg.7 for ; Mon, 16 Nov 2009 02:14:00 -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=FN60ajoEBB68aDjw6ohwS9VP5YAxsPrpjOkkYacM3Oc=; b=czNXsSFhtQZcvW4EZfx53OAW5p1MI2SE96wWmly4i9vFbnU+HicGmkP2xNHKVlZi9z a9JjNhfM8O/GJdJUOP9byhW6LZlccCjyznPQ7vk0sX0DmRESzVMkmexm3ZFliv5Okomi i39rSV5H/b7fDywmQPe9xY0PhJThi5MR6nXFE= 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=c+6Bsrg/KBEZu8OtU6fGBgHOoXw+YiIT6PQeL0vaLjwcuFiquQd6+LnrsjpCb4TMqd Dg2LB6nF2Ae2PkP1PWciJcpIcaqo48sw7LJQKkYyePRIcqDkyf5L6aEHLR8cUleHvn+N c5h/cgKWskcw1p30rNQSFLTkgY+K2NBYbJiMg= Received: by 10.86.10.4 with SMTP id 4mr1633828fgj.6.1258366440143; Mon, 16 Nov 2009 02:14:00 -0800 (PST) Received: from ?10.65.65.1? ([90.149.51.19]) by mx.google.com with ESMTPS id e11sm4385630fga.27.2009.11.16.02.13.58 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Nov 2009 02:13:59 -0800 (PST) Subject: Re: [alpine-devel] info about unpack for building From: Natanael Copa To: Francesco Cc: alpine-devel@lists.alpinelinux.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 16 Nov 2009 11:14:53 +0100 Message-ID: <1258366493.11544.172.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 On Sun, 2009-11-15 at 12:38 +0100, Francesco wrote: > Hi all. > > When abuild a package, the function "build" into APKBUILD is executed. > > I need to make a change into a Makefile: > > sed -e "s/cat -v/cat/g" -i $srcdir/admin/$pkgname-$pkgver/compile/Makefile > > when abuild start, i got a error that "Makefile: no such directory". > I suppose that the package is not unpacked..but when this happen? It shoudl be unpacked at this stage. > Where is the best location to insert this entry? > Is better make a patch file? Sed is good in that it often works without rebasing patches. > This is an extract of APKBUILD: > > build() { > cd "$srcdir"/admin/$pkgname-$pkgver/ > sed -e "s/cat -v/cat/g" -i > $srcdir/admin/$pkgname-$pkgver/compile/Makefile > ./package/compile || return 1 > } > > > PS: the path is correct, and i've tried absolute path too with sed, > without variables. > > Any hints? With autotools the Makefile is generated, and thus, it does not exist til after ./configure is run. Maybe the Makefile here is generated too? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---