FS#21081 - [devtools] [finddeps] add support for optdepends

Attached to Project: Arch Linux
Opened by Ray Rashif (schivmeister) - Tuesday, 05 October 2010, 11:16 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 26 March 2011, 08:42 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Though optdepends is not something very official, it'd be nice to add the support for it at this moment. This way, we can also find out packages that have a "makedepend AND optdepend" on a package and include them in relevant rebuild lists when needed.

Patch attached (we assume the only separator used to describe optdepends is the colon).
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Saturday, 26 March 2011, 08:42 GMT
Reason for closing:  Implemented
Comment by Allan McRae (Allan) - Tuesday, 05 October 2010, 11:23 GMT
Does anybody actually use that script anymore? We usually use a script that calls readelf on all the files in each package in the repo as that is far more accurate.
Comment by Ray Rashif (schivmeister) - Tuesday, 05 October 2010, 11:47 GMT
OK, I guess I'm alone there and been using it for some time. A while ago I was wondering how the rebuild lists were generated so I came up with my own inefficient implementation [1].

Time to replace finddeps with a better script, perhaps?

[1] http://paste.pocoo.org/show/271256/
Comment by Pierre Schmitz (Pierre) - Saturday, 26 March 2011, 08:41 GMT
I have applied that patch. But using the sogrep script on pkgbuild.com is way more accurate. In future I may add the needed createlinks script into dbscripts. (The code can be found at https://projects.archlinux.de/repo-tools.git/tree/)

Loading...