diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2006-09-15 07:36:05 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2006-09-15 07:36:05 +0000 |
commit | 07c642fb5e412b6ac3ebd6ffe4ea0a5f5e6e4aeb (patch) | |
tree | 5e38548eb0a4c91f8cc4c1bf7221e5b8caae0628 /ports-mgmt | |
parent | e47df16d7d6340a9aa32b07ce08c0a4c9eae2ff3 (diff) | |
download | ports-07c642fb5e412b6ac3ebd6ffe4ea0a5f5e6e4aeb.tar.gz ports-07c642fb5e412b6ac3ebd6ffe4ea0a5f5e6e4aeb.zip |
Bring this up to the patches in ports/102300 and ports/102514, which are
currently being tested on the cluster.
Notes
Notes:
svn path=/head/; revision=173098
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.mk | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk index a8d7ce98e67c..2f9086c76464 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.mk @@ -2269,7 +2269,7 @@ PTHREAD_LIBS?= -pthread .endif .if exists(/usr/bin/fetch) -FETCH_CMD?= /usr/bin/fetch -ARr +FETCH_CMD?= /usr/bin/fetch -ApRr FETCH_REGET?= 1 .if ${OSVERSION} >= 480000 && !defined(DISABLE_SIZE) # Avoid -S for 4.7 and earlier since it causes fetch errors @@ -2456,8 +2456,12 @@ PKG_VERSION?= ${CHROOT} ${DESTDIR} /usr/sbin/pkg_version # Does the pkg_create tool support conflict checking? # XXX Slow? .if !defined(PKGINSTALLVER) +.if !defined(DESTDIR) +PKGINSTALLVER!= ${PKG_INFO} -P 2>/dev/null | ${SED} -e 's/.*: //' +.else PKGINSTALLVER!= ${CHROOT} ${DESTDIR} ${PKG_INFO} -P 2>/dev/null | ${SED} -e 's/.*: //' .endif +.endif .if ${PKGINSTALLVER} < 20030417 DISABLE_CONFLICTS= YES .endif @@ -4007,7 +4011,7 @@ install-ldconfig-file: ${CHROOT} ${DESTDIR} -${LDCONFIG} -m ${USE_LDCONFIG} .endif .endif -.if ${USE_LDCONFIG:L} != "${PREFIX}/lib" +.if ${USE_LDCONFIG} != "${PREFIX}/lib" @${ECHO_MSG} "===> Installing ldconfig configuration file" .if defined(NO_LDCONFIG_MTREE) @${MKDIR} ${PREFIX}/${LDCONFIG_DIR} @@ -4016,7 +4020,7 @@ install-ldconfig-file: > ${PREFIX}/${LDCONFIG_DIR}/${UNIQUENAME} @${ECHO_CMD} ${LDCONFIG_DIR}/${UNIQUENAME} >> ${TMPPLIST} .if defined(NO_LDCONFIG_MTREE) - @${ECHO_CMD} "@unexec rmdir ${LDCONFIG_DIR} >/dev/null 2>&1" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir ${LDCONFIG_DIR} >/dev/null 2>&1 || true" >> ${TMPPLIST} .endif .endif .endif @@ -4049,7 +4053,7 @@ install-ldconfig-file: @${ECHO_CMD} "@unexec rmdir ${LDCONFIG32_DIR} >/dev/null 2>&1" >> ${TMPPLIST} .endif .endif -# This can be removed once, all ports have been converted to USE_LDCONFIG. +# This can be removed once all ports have been converted to USE_LDCONFIG. .if defined(INSTALLS_SHLIB) .if !defined(INSTALL_AS_USER) .if !defined(DESTDIR) @@ -5707,7 +5711,7 @@ compress-man: @_manpages='${_MANPAGES:S/'/'\''/g}' && [ "$${_manpages}" != "" ] && ( eval ${GZIP_CMD} $${_manpages} ) || ${TRUE} .endif .if defined(_MLINKS) - @set ${_MLINKS}; \ + @set -- ${_MLINKS}; \ while :; do \ [ $$# -eq 0 ] && break || ${TRUE}; \ ${RM} -f $${2%.gz}; ${RM} -f $$2.gz; \ @@ -5837,7 +5841,7 @@ config: -@if [ -e ${_OPTIONSFILE} ]; then \ . ${_OPTIONSFILE}; \ fi; \ - set ${OPTIONS} XXX; \ + set -- ${OPTIONS} XXX; \ while [ $$# -gt 3 ]; do \ OPTIONSLIST="$${OPTIONSLIST} $$1"; \ defaultval=$$3; \ @@ -5917,7 +5921,7 @@ showconfig: -@if [ -e ${_OPTIONSFILE} ]; then \ . ${_OPTIONSFILE}; \ fi; \ - set ${OPTIONS} XXX; \ + set -- ${OPTIONS} XXX; \ while [ $$# -gt 3 ]; do \ defaultval=$$3; \ withvar=WITH_$$1; \ @@ -6050,7 +6054,7 @@ VALID_DESKTOP_CATEGORIES+= Application Core Development Building Debugger IDE \ check-desktop-entries: .if defined(DESKTOP_ENTRIES) - @set ${DESKTOP_ENTRIES} XXX; \ + @set -- ${DESKTOP_ENTRIES} XXX; \ if [ `${EXPR} \( $$# - 1 \) % 6` -ne 0 ]; then \ ${ECHO_MSG} "${PKGNAME}: Makefile error: the DESKTOP_ENTRIES list must contain one or more groups of 6 elements"; \ exit 1; \ @@ -6108,7 +6112,7 @@ install-desktop-entries: .if defined(DESKTOP_ENTRIES) @(${MKDIR} "${DESKTOPDIR}" 2> /dev/null) || \ (${ECHO_MSG} "===> Cannot create ${DESKTOPDIR}, check permissions"; exit 1) - @set ${DESKTOP_ENTRIES} XXX; \ + @set -- ${DESKTOP_ENTRIES} XXX; \ if [ -z "${_DESKTOPDIR_REL}" ]; then \ ${ECHO_CMD} "@cwd ${DESKTOPDIR}" >> ${TMPPLIST}; \ fi; \ |