Bug 273157

Summary: xorg-x11-libs size
Product: [openSUSE] openSUSE 10.3 Reporter: Dirk Mueller <dmueller>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P2 - High    
Version: Alpha 3plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 273170    
Attachments: filesizes

Description Dirk Mueller 2007-05-10 10:47:41 UTC
the xorg-x11-libs package contains "Compose" files, which are large and identical for most locales. still, they're not symlinked or hardlinked. 

please add a fdupes run to the specfile to save space.
Comment 1 Dirk Mueller 2007-05-10 10:48:23 UTC
Created attachment 138937 [details]
filesizes
Comment 2 Dirk Mueller 2007-05-10 10:48:57 UTC
I've only checked the file with the size 563648
Comment 3 Stefan Dirsch 2007-05-10 10:57:28 UTC
# fdupes
bash: fdupes: command not found

Could you tell me more about this command? Thanks.

b077a528e6d604b4ca92cb1be353bc85  en_US.UTF-8/Compose
b077a528e6d604b4ca92cb1be353bc85  ja_JP.UTF-8/Compose
b077a528e6d604b4ca92cb1be353bc85  ko_KR.UTF-8/Compose
b077a528e6d604b4ca92cb1be353bc85  th_TH.UTF-8/Compose
b077a528e6d604b4ca92cb1be353bc85  zh_CN.UTF-8/Compose
b077a528e6d604b4ca92cb1be353bc85  zh_HK.UTF-8/Compose
b077a528e6d604b4ca92cb1be353bc85  zh_TW.UTF-8/Compose
cdb52f5273385d9ed35f09c3f329248d  el_GR.UTF-8/Compose
d53f33844a5bf94e0dc67622288d9926  pt_BR.UTF-8/Compose
Comment 4 Dirk Mueller 2007-05-10 11:15:36 UTC
try installing it? :) its fdupes.rpm
Comment 5 Stefan Dirsch 2007-05-10 13:28:03 UTC
fdupes  -S -r /usr/share/X11/locale/
4287 bytes each:                        
/usr/share/X11/locale/el_GR.UTF-8/XLC_LOCALE
/usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE

299 bytes each:
/usr/share/X11/locale/el_GR.UTF-8/XI18N_OBJS
/usr/share/X11/locale/en_US.UTF-8/XI18N_OBJS

563648 bytes each:
/usr/share/X11/locale/zh_TW.UTF-8/Compose
/usr/share/X11/locale/en_US.UTF-8/Compose
/usr/share/X11/locale/th_TH.UTF-8/Compose
/usr/share/X11/locale/zh_CN.UTF-8/Compose
/usr/share/X11/locale/ja_JP.UTF-8/Compose
/usr/share/X11/locale/ko_KR.UTF-8/Compose
/usr/share/X11/locale/zh_HK.UTF-8/Compose

248 bytes each:
/usr/share/X11/locale/iso8859-9/XI18N_OBJS
/usr/share/X11/locale/iso8859-13/XI18N_OBJS
/usr/share/X11/locale/iso8859-2/XI18N_OBJS
/usr/share/X11/locale/iso8859-5/XI18N_OBJS
/usr/share/X11/locale/iso8859-7/XI18N_OBJS

241 bytes each:
/usr/share/X11/locale/iso8859-1/XI18N_OBJS
/usr/share/X11/locale/C/XI18N_OBJS
Comment 6 Stefan Dirsch 2007-05-10 13:28:35 UTC
I'll create symlinks for duplicates of Compose files.
Comment 7 Dirk Mueller 2007-05-10 13:37:46 UTC
script snippet:

fdupes -q -r -1  $RPM_BUILD_ROOT/usr/share/X11/locale/ | \
  sed -e "s,$RPM_BUILD_ROOT,," | \
  while read target rest; do
    for f in $rest; do
      ln -sf $target $f
  done
done


Comment 8 Stefan Dirsch 2007-05-10 13:41:14 UTC
Thanks.
Comment 9 Stefan Dirsch 2007-05-10 20:15:35 UTC
fixed for STABLE/Factory.