FreeBSD Bugzilla – Attachment 154775 Details for
Bug 198881
[patch] Add two new special behavior variables: USE_REPO_DEPENDS and USE_REPO_DEPENDS_ONLY
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-add-support-for-USE_REPO_DEPENDS v1.0.1
patch-add-support-for-USE_REPO_DEPENDS (text/plain), 2.40 KB, created by
David Naylor
on 2015-03-24 19:51:43 UTC
(
hide
)
Description:
patch-add-support-for-USE_REPO_DEPENDS v1.0.1
Filename:
MIME Type:
Creator:
David Naylor
Created:
2015-03-24 19:51:43 UTC
Size:
2.40 KB
patch
obsolete
>diff --git a/Mk/bsd.commands.mk b/Mk/bsd.commands.mk >index 4548490..d7158b5 100644 >--- a/Mk/bsd.commands.mk >+++ b/Mk/bsd.commands.mk >@@ -128,5 +128,6 @@ PKG_VERSION?= ${PKG_BIN} version > PKG_CREATE?= ${PKG_BIN} create > PKG_ADD?= ${PKG_BIN} add > PKG_QUERY?= ${PKG_BIN} query >+PKG_INSTALL?= ${PKG_BIN} install -y > > .endif >diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk >index 46ecb1e..75813be 100644 >--- a/Mk/bsd.port.mk >+++ b/Mk/bsd.port.mk >@@ -1037,6 +1037,12 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org > # if an existing package is not present. > # USE_PACKAGE_DEPENDS_ONLY > # - Like USE_PACKAGE_DEPENDS, but do not fallback on source. >+# USE_REPO_DEPENDS >+# - Try to install dependencies from package repositories >+# instead of building the port from scratch. Fall back on >+# source if the package is not available in the repository. >+# USE_REPO_DEPENDS_ONLY >+# - Like USE_REPO_DEPENDS, but do not fallback on source. > # INSTALL_AS_USER > # - Define this to install as the current user, intended > # for systems where you have no root access. >@@ -4360,14 +4366,28 @@ _INSTALL_DEPENDS= \ > else \ > ${PKG_ADD} -A $${subpkgfile}; \ > fi; \ >+ success="YES"; \ > elif [ -n "${USE_PACKAGE_DEPENDS_ONLY}" -a "$${target}" = "${DEPENDS_TARGET}" ]; then \ > ${ECHO_MSG} "===> ${PKGNAME} depends on package: $${subpkgfile} - not found"; \ > ${ECHO_MSG} "===> USE_PACKAGE_DEPENDS_ONLY set - not building missing dependency from source"; \ > exit 1; \ >+ fi; \ >+ fi; \ >+ if [ -n "${USE_REPO_DEPENDS}" -o -n "${USE_REPO_DEPENDS_ONLY}" -a "$$target" = "${DEPENDS_TARGET}" -a -z "$$success" ]; then \ >+ subpkgname=`(cd $$dir; ${MAKE} $$depends_args -V PKGNAME)`; \ >+ subpkgname=$${subpkgname%-*} ; \ >+ ${ECHO_MSG} "===> Installing package $${subpkgname} from repository"; \ >+ if ! ${PKG_INSTALL} -A $${subpkgname}; then \ >+ if [ -n "${USE_REPO_DEPENDS_ONLY}" ]; then \ >+ ${ECHO_MSG} "===> ${PKGNAME} depends on package: $${subpkgname} - not found"; \ >+ ${ECHO_MSG} "===> USE_REPO_DEPENDS_ONLY set - not building missing dependency from source"; \ >+ exit 1; \ >+ fi; \ > else \ >- (cd $$dir; ${MAKE} -DINSTALLS_DEPENDS $$target $$depends_args) ; \ >+ success="YES"; \ > fi; \ >- else \ >+ fi; \ >+ if [ -z "$$success" ]; then \ > (cd $$dir; ${MAKE} -DINSTALLS_DEPENDS $$target $$depends_args) ; \ > fi; \ > ${ECHO_MSG} "===> Returning to build of ${PKGNAME}";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198881
:
154774
|
154775
|
158096
|
160131
|
164242