BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanne

Empfohlenes Aktualisieren von portmaster

Benutzer von portmaster sollten nach dem Aktualisieren des Portbaums unbedingt portmaster deinstallieren und neu installieren. Ältere Versionen von portmaster haben mit den Änderungen in ports/Mk/bsd.port.mk durch die gestern eingeführte neue DESTDIR Implementation Probleme:

# portmaster portmaster
"/usr/ports/Mk/bsd.port.mk", line 1092: Could not find /Mk/bsd.commands.mk
-p: not found
"/usr/ports/Mk/bsd.port.mk", line 1139: warning: " -p" returned non-zero status
-s: not found
"/usr/ports/Mk/bsd.port.mk", line 1147: warning: " -s" returned non-zero status
-r: not found
-e: not found
"/usr/ports/Mk/bsd.port.mk", line 1152: warning: " -r | -e 's/[-(].*//'" returned non-zero status
/^#define __FreeBSD_version/ {print $3}: not found
"/usr/ports/Mk/bsd.port.mk", line 1158: warning: " '/^#define __FreeBSD_version/ {print $3}' < /usr/include/sys/param.h" returned non-zero status
/var/db/ports//options: not found
"/usr/ports/Mk/bsd.port.mk", line 1217: warning: " "/var/db/ports//options"" returned non-zero status
make: fatal errors encountered -- cannot continue
"/usr/ports/Mk/bsd.port.mk", line 1092: Could not find /Mk/bsd.commands.mk
-p: not found
"/usr/ports/Mk/bsd.port.mk", line 1139: warning: " -p" returned non-zero status
-s: not found
"/usr/ports/Mk/bsd.port.mk", line 1147: warning: " -s" returned non-zero status
-r: not found
-e: not found
"/usr/ports/Mk/bsd.port.mk", line 1152: warning: " -r | -e 's/[-(].*//'" returned non-zero status
/^#define __FreeBSD_version/ {print $3}: not found
"/usr/ports/Mk/bsd.port.mk", line 1158: warning: " '/^#define __FreeBSD_version/ {print $3}' < /usr/include/sys/param.h" returned non-zero status
/var/db/ports//options: not found
"/usr/ports/Mk/bsd.port.mk", line 1217: warning: " "/var/db/ports//options"" returned non-zero status
-u: not found
"/usr/ports/Mk/bsd.port.mk", line 2245: warning: " -u" returned non-zero status
-e: not found
"/usr/ports/Mk/bsd.port.mk", line 2341: warning: "/usr/local/sbin/pkg_info -P 2>/dev/null | -e 's/.*: //'" returned non-zero status
make: fatal errors encountered -- cannot continue
usage: mkdir [-pv] [-m mode] directory_name ...
===>>> Update portmaster-1.18? [n] n

Aus diesem Grund sollte man zuerst portmaster wie folgt aktualisieren:

# pkg_delete portmaster\* && cd /usr/ports/ports-mgmt/portmaster && make install clean

Mehr Informationen findet man in der Mail von Doug Barton auf ports@.

 Permalink