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 44E77DC07BD; Tue, 28 Jul 2015 08:33:59 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 7F013DC0160; Tue, 28 Jul 2015 08:33:58 +0000 (UTC) Date: Tue, 28 Jul 2015 10:33:54 +0200 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/busybox: prevent abuild from complaining about /tmp during build Message-ID: <20150728103354.519687c1@ncopa-desktop.alpinelinux.org> In-Reply-To: <1438031410-1345-1-git-send-email-soeren+git@soeren-tempel.net> References: <1438031410-1345-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) 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-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 27 Jul 2015 23:10:10 +0200 S=F6ren Tempel wrote: > --- > main/busybox/APKBUILD | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD > index a950f84..0d0ebb7 100644 > --- a/main/busybox/APKBUILD > +++ b/main/busybox/APKBUILD > @@ -82,7 +82,6 @@ build() { > make -C "$_sdir" O=3D"$PWD" silentoldconfig || return 1 > make || return 1 > mv busybox busybox.static > - > } > =20 > package() { > @@ -95,7 +94,7 @@ package() { > # we need /bin/sh to be able to execute post-install > ln -s /bin/busybox "$pkgdir"/bin/sh > =20 > - #ifupdown needs those dirs to be present > + # ifupdown needs those dirs to be present > mkdir -p \ > "$pkgdir"/etc/network/if-down.d \ > "$pkgdir"/etc/network/if-post-down.d \ > @@ -104,6 +103,9 @@ package() { > "$pkgdir"/etc/network/if-pre-up.d \ > "$pkgdir"/etc/network/if-up.d \ > || return 1 > + > + # prevent abuild from complaining about /tmp > + rm -rf "$pkgdir/tmp" NACK. If we want remove it, then better not create it (the package function does mkdir). But I think we created it for a reason in the first place. git blame gave me commit 8b60075. http://git.alpinelinux.org/cgit/aports/commit/?id=3D8b60075 Which explains that we need /tmp early for install script when bootstrapping a new root with apkovl. -nc --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---