Declaring possible update-alternatives in debian/control file

Zygmunt Krynicki zygmunt.krynicki at canonical.com
Fri Apr 5 02:08:07 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

This is a recurring topic for the command-not-found database.

I'd like to propose that we store the list of possible usages of
update-alternatives that a postinst script can invoke in the control
file. This will allow us to easily and reliably generate accurate
hints as to which package contains a particular command.

The process of building command-not-found database is currently
hindered by the fact that many popular commands are actually provided
as an update-alternative link from an actual executable that is
present in the binary package. There is no automatic way to extract
that information and current solution is based on very inaccurate
heuristics.

I've created a new tool for building [1] a database [2] of currently
used update-alternatives for 12% of packages in Ubuntu (the rest can
be added incrementally as I finish mirroring the archive)

I'd like to discuss how this database can be merged with actual source
packages. If there is a consensus on if and how to do this I will
gladly do the heavy lifting of proposing patches for each source
package that is affected.

Best regards
Zygmunt Kryniki

[1]:
https://github.com/zyga/command-not-found/blob/check-update-alternatives/UnifiedDataExtractor/check-update-alternatives

[2]: https://github.com/zyga/ubuntu-update-alternatives-data
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRXjIHAAoJECiU6TooxntHdjoQAKDHf2peAPJkYQoJZAIf4XgH
Erux06hcDHumpraWFWslXhoAkjikqySPjzRO7Tljv76nijOFnP5o/Qmeygidu6LY
qcjBLstkyyTw+D2DUclnUzP8a8RLUZpqhr1PAQjHTj4nZQoRvRuJIptcNYClI1b9
8G/VbiSv4IVgIaRmWASmanEIBTCBBmvkbrujQvv/YF/fTcjDrm7DgIbKjhxoEeBD
KKhUpsd3yUGbQxgn09gDl9i8ZWXolqXLgpcX6pYSMkUPSicI6izEqK31hZh1bVab
9tOMgrqnGYTjbODR90zSqEAXTpLQgleIxrw2KFyKWk7unIi1+xge44gd8U+W/byL
1c3rGzjXGXOLDdzr/6BLI98IsIVJeIRZS0JfKYA0ThWjGTenHWC/JuS8SuDysMXW
fSBXYfRPV4EwT7/G9Dxl+rcEXgdIG1k7cauBOrs7RST8XOcCh5fBiptOWqaw1p9f
AN4qG2vO+7Fz9cWDlAaws+IzdZUbMoye6BM77u1qsUtgmtR8owNfIQLs4UZEj1S0
6IgPVh1h78rFcs4e47WJEFsn0f6Fi8/nzmlnSSnsgiKWiFm2txYt5vtXimdfjPcp
NmhTryt6xqxThzqzoQBRY85TOMHPCVvhzUjrgoBXouiZgYBzaGcPGWkf+h+VrNwp
2WqnzsfRlZ0VdtFxj+gO
=q5hl
-----END PGP SIGNATURE-----



More information about the ubuntu-devel mailing list