Bug 198881

Summary: [patch] Add two new special behavior variables: USE_REPO_DEPENDS and USE_REPO_DEPENDS_ONLY
Product: Ports & Packages Reporter: David Naylor <dbn>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: ports-bugs
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-add-support-for-USE_REPO_DEPENDS v1.0.0
none
patch-add-support-for-USE_REPO_DEPENDS v1.0.1
none
Update patch for upstream changes
none
Patch v2.0.0
none
Patcch v2.0.1 none

Description David Naylor freebsd_committer freebsd_triage 2015-03-24 19:44:47 UTC
Created attachment 154774 [details]
patch-add-support-for-USE_REPO_DEPENDS v1.0.0

The attached patch adds support for two new special behaviour variables: USE_REPO_DEPENDS and USE_REPO_DEPENDS_ONLY.  They follow the same behaviour pattern as USE_PACKAGE_DEPENDS(_ONLY) and can act as a fallback to USE_PACKAGE_DEPENDS(_ONLY).
Comment 1 David Naylor freebsd_committer freebsd_triage 2015-03-24 19:51:43 UTC
Created attachment 154775 [details]
patch-add-support-for-USE_REPO_DEPENDS v1.0.1

Fix extra ; after else
Comment 2 David Naylor freebsd_committer freebsd_triage 2015-06-27 10:47:34 UTC
Created attachment 158096 [details]
Update patch for upstream changes
Comment 3 Mathieu Arnold freebsd_committer freebsd_triage 2015-06-27 10:59:19 UTC
I think it should be pkg install -yA so that they get cleaned up with pkg autoremove.
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2015-06-27 11:04:34 UTC
This will have to wait for:
https://reviews.freebsd.org/D2897

That was my plan to add that afterward, thanks for having done the patch

and Yes it would need -A :)
Comment 5 David Naylor freebsd_committer freebsd_triage 2015-06-27 11:21:30 UTC
The "-A" is done in the main body of the port.  My rational is that some other location of the port's tree may want to use ${PKG_INSTALL} and intend it to be a non-dependency.
Comment 6 David Naylor freebsd_committer freebsd_triage 2015-08-20 07:13:05 UTC
Created attachment 160131 [details]
Patch v2.0.0

Update patch for changes introduced in https://reviews.freebsd.org/D2897.
Comment 7 David Naylor freebsd_committer freebsd_triage 2015-12-14 19:35:01 UTC
Created attachment 164242 [details]
Patcch v2.0.1

Update patch for changes in Mk/Scripts/do-depends.sh
Comment 8 David Naylor freebsd_committer freebsd_triage 2016-01-17 17:29:19 UTC
Ping, can someone from portmgr please have a look at this?
Comment 9 Mathieu Arnold freebsd_committer freebsd_triage 2016-04-13 11:31:43 UTC

*** This bug has been marked as a duplicate of bug 208083 ***