Bugzilla – Bug 197475
Space wasted due to duplicate files (mostly in documentation)
Last modified: 2008-08-14 20:46:36 UTC
There are a lot of files which get copied to different locations, e.g. some pngs for every language in a translation. The attached perl script finds many of the offenders (although there are some false positives). It only checks for duplicate pngs. IMHO when packaging a check should be run to test if one file gets installed to multiple locations (md5sum is calculated anyways), and a warning should be issued. Affected packages: freeciv, gtkmm-devel, probaly any package using gnome-doc-utils
Created attachment 95310 [details] Script for finding duplicates run script with zcat ARCHIVES.gz | find_duplicate_pngs.pl (ARCHIVES.gz from DVD)
Reassigning to Gnome team.
There are a bunch of kde files in the output as well, but I don't think its avoidable either because of the icon theme spec or it just needing to be fixed upstream.
This has nothing to do with the icon theme spec. A very small number of these though, are likely to be an icon installed to the hicolor theme, and one installed to the pixmaps dir, because the app may hardcode a path to the pixmaps directory icon, but we added icons in different sizes, and installed them to the theme, so we could have better app icons in the general desktop space.
Reopening. 1. gnome-doc-utils has a bug - it makes copies of every documentation image for every language if there is no "translated" image. There are a lot of images which are not "translatable" (e.g. symbols, toolbar buttons ...). Patch attached 2. There are several other files in different packages, packages which have files several times. freeciv includes images in the documentation which are identical, but packaged for every theme. The same for the documentation html files. gtkmm2-devel has identical files under /usr/share/doc/packages/gtkmm2/{docs/reference|reference}/ 3. Rerun the test program, but change .png for .html -> wasted space 30MB! 4. These are bugs which should be fixed upstream, but I am sure this happens all the time, so this should be tested on packaging: Two files, same size, same md5sum: BIG FAT WARNING
Created attachment 96283 [details] Proposed patch for gnome-doc-utils I am not sure if this fix is correct. I may be a better idea to not install a symlink, but let the help viewer find an alternative, eg: pt_BR pt_PT C. Also it breaks any package using %find_languages - the script only looks for "-type f", not for "-type l".
Please file this in bugzilla.gnome.org and get feedback on the patch there first. Put a link to b.g.o bug here so we can follow it. Thanks for the patch!
Done ... http://bugzilla.gnome.org/show_bug.cgi?id=352405 Please be aware that gdu is only number 1 in #5 , there are three other points as well. I will file 2. against gtkmm2 and freeciv, but there are more packages doing bad things, and IMHO the only solution to this problem is 4.
Waiting for upstream based on comments there.
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Closing old LATER+REMIND bugs as WONTFIX - if you still plan to work on it, feel free to reopen and set to ASSIGNED. In case the report saw repeated reopen comments, it's due to bugzilla timing out on the huge request ;(
Update resolution to UPSTREAM.
Really update.