X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from smtp-1.adminflex.de (smtp-1.adminflex.de [84.38.79.71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id CAEEADC0166 for ; Sun, 10 Nov 2013 14:59:57 +0000 (UTC) Received: from 91-66-231-240-dynip.superkabel.de ([91.66.231.240] helo=[192.168.178.35]) by smtp-1.adminflex.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1VfXVA-0000MW-EO for alpine-devel@lists.alpinelinux.org; Sun, 10 Nov 2013 16:04:40 +0000 Message-ID: <527F9F58.7030607@port-zero.com> Date: Sun, 10 Nov 2013 15:59:36 +0100 From: "Leslie P. Polzer | PORT ZERO" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] abuild: add a short notification after check_arch in all() Content-Type: multipart/mixed; boundary="------------050802030409040603070708" This is a multi-part message in MIME format. --------------050802030409040603070708 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This patch makes abuild print a message in all() mode if the package will not be built due to it being not available for the requested architecture. This is important especially for users new to Alpine. Leslie --=20 Dipl.Ing.(BA) Leslie P. Polzer | CTO - PORT ZERO UG (haftungsbeschr=E4nkt) Softwareentwicklung & IT Engineering Adalbertstra=DFe 7/8 10999 Berlin Tel.: +49 (0)30 - 69 200 907 - 0 Fax: +49 (0)30 - 69 200 907 - 9 http://www.port-zero.com --------------050802030409040603070708 Content-Type: text/x-patch; name="0001-all-print-a-message-if-aborting-due-to-architecture-.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-all-print-a-message-if-aborting-due-to-architecture-.pa"; filename*1="tch" >From fe42824c9cdd6d6aab74cb67be01c94bbb1e3d54 Mon Sep 17 00:00:00 2001 From: "Leslie P. Polzer" Date: Sun, 10 Nov 2013 15:56:40 +0100 Subject: [PATCH] all(): print a message if aborting due to architecture mismatch. --- abuild.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index cfd531a..c020a13 100755 --- a/abuild.in +++ b/abuild.in @@ -1759,7 +1759,11 @@ uninstalldeps() { undeps; } all() { if ! [ -n "$force" ]; then - check_arch || return 0 + check_arch + if [ $? -ne 0 ]; then + echo "Package not available for the target architecture ($CARCH). Aborting." + return 0 + fi check_libc || return 0 fi if up2date && [ -z "$force" ]; then -- 1.8.4.1 --------------050802030409040603070708-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---