Received: from eggs.gnu.org ([2001:4830:134:3::10]:58209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhbgn-0007Lq-68 for qemu-devel@nongnu.org; Wed, 07 Sep 2016 08:10:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhbgi-00005f-1z for qemu-devel@nongnu.org; Wed, 07 Sep 2016 08:10:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47860 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhbgh-00005b-Kw for qemu-devel@nongnu.org; Wed, 07 Sep 2016 08:10:43 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u87C8FAT006628 for ; Wed, 7 Sep 2016 08:10:43 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 25a354u3r3-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 07 Sep 2016 08:10:42 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 7 Sep 2016 13:10:40 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id E4D391B08074 for ; Wed, 7 Sep 2016 13:12:24 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u87CAdoa33882310 for ; Wed, 7 Sep 2016 12:10:39 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 u87CAcje001454 for ; Wed, 7 Sep 2016 06:10:38 -0600 From: Sascha Silbe In-Reply-To: <20160907021210.GC30281@lemon> References: <1473192351-601-1-git-send-email-silbe@linux.vnet.ibm.com> <1473192351-601-7-git-send-email-silbe@linux.vnet.ibm.com> <20160907021210.GC30281@lemon> Date: Wed, 07 Sep 2016 14:10:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <874m5rhpvl.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH v3 6/8] 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: qemu-devel@nongnu.org Dear Fam, Fam Zheng writes: [...] >> + NEED_DEBOOTSTRAP=3Dtrue >> + elif ! (echo "${MIN_DEBOOTSTRAP_VERSION}" ; "${DEBOOTSTRAP}" --vers= ion \ >> + | cut -d ' ' -f 2) | sort -t . -n -k 1,1 -k 2,2 -k 3,3 -C; = then > > Like -V, -C is not available on OSX either. Maybe use "-c"? If so, I can = fix it > when applying. > > https://developer.apple.com/legacy/library/documentation/Darwin/Reference= /ManPages/man1/sort.1.html Thanks for the pointer. So Apple took a 2005 version of GNU sort, removed version sort support (introduced in 1997) and neglected to update it for POSIX.1-2008 compliance [1]? Guess using "-c" and redirecting stderr to /dev/null is our only option then. Feel free to fix that up when applying. Thanks for pointing out these portability issues! Sascha [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sort.html --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641