From owner-freebsd-ports@FreeBSD.ORG Fri Oct 13 16:20:07 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5930716A403 for ; Fri, 13 Oct 2006 16:20:07 +0000 (UTC) (envelope-from pj@smo.de) Received: from ilk.de (mx-out14.ilk.de [194.121.104.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC21643D45 for ; Fri, 13 Oct 2006 16:20:01 +0000 (GMT) (envelope-from pj@smo.de) Received: from bologna.intern.smo.de (pool61.ka.ilk.net [212.86.194.61]) by ilk.de (8.13.4/8.13.4/ilk-relay) with ESMTP id k9DGJwsY003566 for ; Fri, 13 Oct 2006 18:19:58 +0200 Received: from [192.168.153.208] (herdubreid.intern.smo.de [192.168.153.208]) by bologna.intern.smo.de (8.13.4+Sun/8.13.4) with ESMTP id k9DGJgxu018737 for ; Fri, 13 Oct 2006 18:19:42 +0200 (CEST) Message-ID: <452FBD88.2030206@smo.de> Date: Fri, 13 Oct 2006 18:23:36 +0200 From: Philipp Ost User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20060825 X-Accept-Language: de, en-us, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [PATCH] format violation in /lang/f2c fixed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 16:20:07 -0000 Hi list, I fixed this error which occurs when installing /lang/f2c via ports: # portinstall f2c [Updating the pkgdb in /var/db/pkg ... - 254 packages found (-0 +3) ... done] ---> Installing 'f2c-20060506' from a port (lang/f2c) ---> Building '/usr/ports/lang/f2c' ===> Cleaning for unzip-5.52_2 ===> Cleaning for gmake-3.81_1 ===> Cleaning for gettext-0.14.5_2 ===> Cleaning for libtool-1.5.22_2 ===> Cleaning for libiconv-1.9.2_2 ===> Cleaning for f2c-20060506 ===> Vulnerability check disabled, database not found ===> Extracting for f2c-20060506 => MD5 Checksum OK for f2c-20060506/f2c.tar. => SHA256 Checksum OK for f2c-20060506/f2c.tar. ===> f2c-20060506 depends on file: /usr/local/bin/unzip - found cd /usr/ports/lang/f2c/work/f2c && /usr/bin/find . -name "*.gz" | /usr/bin/xargs /usr/bin/gunzip -f gunzip: ./.master.gz: invalid compressed data--format violated *** Error code 1 Stop in /usr/ports/lang/f2c. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.7170.0 env make ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! lang/f2c (unknown build error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed # .master.gz in /usr/ports/lang/f2c/work/f2c was violated: I couldn't use gunzip on my FreeBSD-box to extract it. I tried gunzip on a Solaris 10 machine which succeeded[0]. Anyway: I created a new .master with the exact same content, gzipped that, patched distinfo (new checksums and filesize), copied the new f2c.tar to /usr/ports/distfiles/f2c-20060506 and all was well :) The new f2c.tar and distinfo are available at http://www.familie-ost.info/~pj/FreeBSD/patches.html I don't intend to host the files forever, I think four weeks should be enough to test and merge this changes into the ports-tree. :) I tested it with FreeBSD 6.2-PRERELEASE (last updated Fri Oct 6 17:15:26 CEST 2006) and it installed without errors. :) Greetings, Philipp P.S.: Please CC me in your answer as I'm not subscribed to the list. Thanks :) [0] Some numbers: Solaris: $ gunzip -V gunzip 1.3.3-patch.1 (2002-03-08) [copyright and license information snipped] $ uname -rsm SunOS 5.10 sun4u FreeBSD: $ gunzip -V gunzip 1.2.4 (18 Aug 93) Compilation options: DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H ASMV $ uname -rsm FreeBSD 6.2-PRERELEASE i386 -- www.familie-ost.info/~pj