From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhLW8-0007rf-2i for qemu-devel@nongnu.org; Tue, 06 Sep 2016 14:54:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhLVw-0001xb-PI for qemu-devel@nongnu.org; Tue, 06 Sep 2016 14:54:42 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhLVp-0001vr-Lc for qemu-devel@nongnu.org; Tue, 06 Sep 2016 14:54:32 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u86IrhO4110400 for ; Tue, 6 Sep 2016 14:54:23 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 25a0y6g142-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 06 Sep 2016 14:54:23 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Sep 2016 19:54:20 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id EBDE817D8024 for ; Tue, 6 Sep 2016 19:56:09 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u86IsHdP10027448 for ; Tue, 6 Sep 2016 18:54:17 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u86IsHXg018965 for ; Tue, 6 Sep 2016 12:54:17 -0600 From: Sascha Silbe In-Reply-To: <20160906014357.GB653@al.usersys.redhat.com> References: <1472063464-790-1-git-send-email-silbe@linux.vnet.ibm.com> <1472063464-790-6-git-send-email-silbe@linux.vnet.ibm.com> <20160906014357.GB653@al.usersys.redhat.com> Date: Tue, 06 Sep 2016 20:54:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <87a8fkhnae.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH v2 5/7] docker: make sure debootstrap is at least 1.0.67 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Alex =?utf-8?Q?Benn=C3=A9e?= , qemu-devel@nongnu.org Dear Fam, Fam Zheng writes: > On Wed, 08/24 20:31, Sascha Silbe wrote: [tests/docker/dockerfiles/debian-bootstrap.pre] >> +# debootstrap < 1.0.67 generates empty sources.list, see Debian#732255 >> +MIN_DEBOOTSTRAP_VERSION=3D1.0.67 [...] >> if [ -z $DEBOOTSTRAP_DIR ]; then >> + NEED_DEBOOTSTRAP=3Dfalse >> DEBOOTSTRAP=3D`which debootstrap 2> /dev/null` >> if [ -z $DEBOOTSTRAP ]; then >> echo "No debootstrap installed, attempting to install from SCM" >> + NEED_DEBOOTSTRAP=3Dtrue >> + elif ! (echo "${MIN_DEBOOTSTRAP_VERSION}" ; "${DEBOOTSTRAP}" --vers= ion |cut -d ' ' -f 2) |sort -VC; then > > Unbalanced whitespaces around '|'? Sorry, habit from interactive shell usage. This way Ctrl+W will erase the command and the pipe. Will fix this up. > "sort -VC" seems to be unavalable on OSX. Is there another way to write t= he > check? Ah, right, BSD user space. sort -VC was such an elegant solution but unfortunately it's a GNU extension. I'll try to come it up with some sed or cut based hack instead. Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641