- Package:
- popularity-contest
- Source:
- popularity-contest
- Submitter:
- Emmanuel Bourg
- Date:
- 2014-12-07 13:27:04 UTC
- Severity:
- wishlist
Packages embedded in other packages don't have a popcon that reflect their real usage. It would be nice if their usage could be tracked by leveraging the Built-Using field. For example if a package foo declares 'Built-Using: bar', bar would be reported with the same usage stats as foo. Emmanuel Bourg
Hello Emmanuel, Do you have an example in mind ? This kind of dependency adjustement is done on the server side, not on the client (it is done for Depends already), but yes this can be done. Cheers,
Le 22/10/2014 12:01, Bill Allombert a écrit : Built-Using field with: Built-Using: acegi-security (= 1.0.7-3), bouncycastle (= 1.49+dfsg-3), commons-httpclient (= 3.1-10.2), guice (= 4.0~beta5-1), jenkins-ant-plugin (= 1.2-1), jenkins-antisamy-markup-formatter-plugin (= 1.2-1), jenkins-mailer-plugin (= 1.11-1), jenkins-matrix-auth-plugin (= 1.2-1), jenkins-matrix-project-plugin (= 1.3-1), jenkins-winstone (= 2.8-1), libcommons-fileupload-java (= 1.3.1-1), libspring-java (= 3.0.6.RELEASE-17), stapler (= 1.231-1) There is a catch though, as the Built-Using field can only track the source packages and not the binary packages. So unless there is a 1:1 relation between the source package and the binary package it's not possible to adjust the counter properly (maybe it would make sense to allow the Built-Using field to specify binary packages btw). Emmanuel Bourg
The server scripts is already doing source<->binary matching and produces statistic by source packages, so we maybe could add 'Source: acegi-security' to the final report if needed. The real issue is not to count the same dependency twice. Are you interested to work on that ? the relevant files are examples/bin/popanal.py (to generate Source: acegi-security fields) and examples/bin/popcon.pl (to add the Source value to the 'Statistics by source packages') Cheers,