[FFE] distro-info should have posix shell cmdline tool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distro-info (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
== Feature Freeze Exception Info ==
= Proposed Changes =
* split distro-info into 2 source packages, distro-info-data and distro-info
where distro-info would depend on distro-info-data. The -data package
will provide only the data files (csv formated data) and the distro-info
package would provide binaries that read that data.
* replace the haskell version of 'distro-info' with a posix shell version
The posix shell version removes the build-dependency on haskell, while
providing roughly the same speed.
= Rationale =
This change is desireable for the following reasons:
a.) the /bin/sh are significantly smaller than haskell commands, arch independent and just as fast
b.) When there is a new distro name or data available, we will not have to SRU the distro-info package, but only the distro-info-data package. That means no rebuild is necessary and the SRU update will be much more clear and small.
c.) By removing the haskell version there is no longer a build dependency on haskelll, so both packages are suitable for main inclusion.
The distro-info package provides a nice way for packages to avoid hard-coding release names and then later requiring an SRU to support new releases. Unfortunately, right now it is not in main, meaning main packages *cannot* use that, or must provide a fallback and only use 'Suggests' for distro-info.
= Other Information =
Benjamin developed a shell test case that covered the output of the old commands and the replacement shell command. The development of the new command was done against this test case, which reasonably assures that any thing using the old will not know any difference.
== Original Description ==
when you install distro-info, you get a haskell tool to read the csv data in /usr/bin/.
It would make sense for that script to be in posix shell if it can be acceptably fast.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: distro-info 0.5.1
Architecture: amd64
Date: Fri Mar 23 08:46:13 2012
SourcePackage: distro-info
Related branches
Changed in distro-info (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
This script expects either _DISTRO_INFO_DISTRO to be set in environment, or to be edited appropriately to replace '@@DISTRO@@'
Ie:
for d in ubuntu debian; do
sed "s,@@DISTRO@@,$d," distro-info.in > $d-distro-info
done