how to correct corrupted ports tree?
Bernt Hansson
bah at bananmonarki.se
Sun Nov 18 04:18:17 UTC 2012
2012-11-17 05:56, Gary Aitken skrev:
> so, after updating bios, repartitioning, etc,
> things seem to be stable, modulo the following:
>
> decided to rebuild ports for peace of mind,
> but my basic ports tree is hosed:
>
> # portmaster -t --clean-distfiles
> ...
> "/usr/ports/Mk/bsd.php.mk", line 335: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Myes} != "")
> ...
> make: fatal errors encountered -- cannot continue
>
> ===>>> No DISTINFO_FILE in /usr/ports/lang/php4-extensions
>
> "Makefile", line 20: Could not find /usr/ports/mail/enigmail-thunderbird3/../enigmail/Makefile
> make: fatal errors encountered -- cannot continue
>
> Sure enough:
>
> # ls /usr/ports/lang/php4-extensions
> CVS Makefile pkg-descr
>
> I didn't see anything in the handbook about how to get the ports tree itself
> back to a sane condition. Do I have to blow the whole thing away and do a
> fresh extract? I don't see a way to force refetch of the actual ports files
> like "distinfo" when portsnap thinks the port is up to date.
I would do: portsnap fetch update extract or download the ports tarball.
ftp://ftp.sunet.se/pub/FreeBSD/ports/ports/ports.tar.gz
More information about the freebsd-questions
mailing list