FS#49954 - New dependency type: "enhances"

Attached to Project: Pacman
Opened by felix (fstirlitz) - Tuesday, 05 July 2016, 08:50 GMT
Last edited by Allan McRae (Allan) - Monday, 10 October 2016, 12:50 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 5.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Semantics would be as follows: when a package has "enhances" dependencies, but none of the packages listed in "enhances" are installed, the package is considered unused (for the purposes of listing in pacman -Qt). Otherwise the package is considered used. "Enhances" dependencies may not block removal of enhanced packages; pacman may warn about "enhancing" packages becoming orphaned when an "enhanced" package is removed.

The primary use case for this would be debug packages (which currently use "requires", whose semantics is quite unsuited for this purpose), but I'm confident it can find other uses as well.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 10 October 2016, 12:50 GMT
Reason for closing:  No response
Comment by Allan McRae (Allan) - Tuesday, 05 July 2016, 11:29 GMT
Can you give a concrete example here? I don't understand any benefit of your proposal.
Comment by Pablo Lezaeta (Jristz) - Wednesday, 07 September 2016, 04:13 GMT
The explication look like just optdeps do now, enhance using optional dependencies.

Please upgrade and give explications why optdepend and enhance are differents
Comment by Martin Kühne (mar77i) - Monday, 10 October 2016, 12:40 GMT
I don't see a use case for this feature as the handling of debug-symbols-as-a-package is an official makepkg feature now.
Pacman's own pacman-debug package relies on "depends=(pacman)", and not, as stated by OP on "requires", which incidentally, I can't find in `man PKGBUILD`. I don't understand the difference, though, as there is a good tool to remove all packages that depend on a package, which is pacman -Rc.

Unless there are any follow-ups, I'd like to suggest to WONTFIX this task until the end of the year.
Comment by Allan McRae (Allan) - Monday, 10 October 2016, 12:50 GMT
I'm closing this due to lack of concrete example. Without more details we can not consider the request.

Loading...