allow about->"software licenses" to read gzip'd files to reclaim some more disk space

Bug #1365008 reported by James Hunt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Triaged
Wishlist
Unassigned
ubuntu-system-settings (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

/usr/share/doc is stripped down to only the copyright files and yet...

$ du -sh /usr/share/doc
19M /usr/share/doc

Compressing even just the copyrights gives an appreciable gain:

$ cp -a /usr/share/doc /tmp/foo
$ find /tmp/foo/ -type f -exec gzip -9 {} \; && du -sh /tmp/foo
5.5M /tmp/foo

A saving of 13+ Meg!

However, for this to be useful, the software licenses view would need to be able to read gzip'ed files.

= Performance =

Currently, reading a *single* copyright from the software licenses screen is slow (~1-2 seconds to read what are tiny (<2k) files).

This seems like an issue that needs work before we can consider reading .gz files.

What would be rather neat is to augment the existing plain alphabetical list of software packages with icons denoting the licenses. This would allow the user to get a quick visual summary without necessarily having to click on each and every package to see what their particular licences are.

If implemented, it would make sense to generate a map of "package => licenses" at livecd-rootfs build-time. This should be

Bonus points to allow the list to be sorted by licence type :-)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, note that the "sorted by license type" would be another request and shouldn't be listed there. It's also something we look at early but dismissed (at least in the first versions) because it would require to open and parse all the files to be able to build the list, which was taking over a minute of busy cpu or some clever cache/db of those informations (which is doable, but non trivial work and not essential for a v1)

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
James Hunt (jamesodhunt) wrote :

As I say, I think we could generate some sort of ascii cache file that if available could be read to speed the operation up. This cache file would be generated as part of the build, not by the phone.

Agreed, this is all non-essential but nice to have :)

Revision history for this message
Oliver Grawert (ogra) wrote :

given we need to do the compressing in livecd-rootfs at image build time (where we already remove all of /usr/share/doc except copyrights) we could as well do the parsing there indeed and dump a list into a text file

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Triaged/Wishlist; since it's a new feature request, and is also wishlist at ubuntu-system-settings.

Changed in livecd-rootfs (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.