From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 7 16:50:21 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 162A216A4DF for ; Mon, 7 Aug 2006 16:50:21 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C13343D45 for ; Mon, 7 Aug 2006 16:50:20 +0000 (GMT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id k77GoJ06068657; Mon, 7 Aug 2006 10:50:19 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.6/8.13.6) with ESMTP id k77GoGpp019487; Mon, 7 Aug 2006 10:50:16 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.6/8.13.6/Submit) id k77GoFgK019484; Mon, 7 Aug 2006 10:50:15 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17623.28487.846095.994488@gromit.timing.com> Date: Mon, 7 Aug 2006 10:50:15 -0600 From: John E Hein To: Boris Samorodov In-Reply-To: <13047395@serv3.int.kfs.ru> References: <20060807095910.GV12746@xor.obsecurity.org> <13047395@serv3.int.kfs.ru> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on Daffy.timing.com X-Virus-Status: Clean Cc: emulation@freebsd.org, Kris Kennaway Subject: Re: [ports-i386@pointyhat.freebsd.org: linux_dri-devel-6.5.20060624 failed on i386 4] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2006 16:50:21 -0000 Boris Samorodov wrote at 18:39 +0400 on Aug 7, 2006: > On Mon, 7 Aug 2006 05:59:11 -0400 Kris Kennaway wrote: > > > FYI; can you please investigate and/or report to the developers? If > > you are already aware of this problem but do not yet have a fix, > > please mark the port BROKEN in the appropriate case, so that users do > > not unexpectedly encounter it. > > > See http://pointyhat.freebsd.org for the full log. > > This is another port which contains both bz2 and gz distfiles and > doesn't extract at 4.x. I marked it BROKEN while searching for a good > solution. > > Thanks, Kris. It's only semi-luck that it extracts in 5.x+. The extract command does gzip -nf -9 -dc Mesa-linux-bin-6.5.tar.bz2 (which silently does nothing) and pipes it to tar. However, on 5.x+ the tar command is bsdtar by default. bsdtar looks into its input and determines that it has been bzip'd and figures out how to handle it. The default 4.x tar (gnu tar) does not and needs the -j arg. Since you can't have more than one EXTRACT_SUFX, ports with a mix of .gz & .bz2 need special handling - maybe override do-extract, but the default do-extract does other stuff that is kludgy to copy/paste into individual ports. bsd.ports.mk is a little weak on support for this kind of thing. Maybe there could be a pre-extract that handles the .bz2 separately. As a workaround, check OSVERSION and, for 4.x, could override TAR to use bsdtar and have a BUILD_DEPENDS on archivers/bsdtar.