Hi list,

I fixed this error which occurs when installing /lang/f2c via ports:

# portinstall f2c
[Updating the pkgdb <format:bdb1_btree> 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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to