Apache OpenOffice (AOO) Bugzilla – Issue 103716
openoffice package contains duplicates of fonts from FSWxorg-fonts-core
Last modified: 2013-08-07 15:31:14 UTC
- on OpenSolaris 2009.06 Following directory from the openoffice package: /opt/openoffice.org/basis3.1/share/fonts/truetype/ contains a number of duplicate font files. This can be resolved by dependencies. These files should be removed from openoffice package or replaced by symlinks to /usr/X11/lib/X11/fonts/TTF/. To reproduce: (1) Liberation $ pkg install openoffice $ for i in `ls /usr/X11/lib/X11/fonts/TTF/Liberation*`; do \ b=`basename $i`; \ ls -l /usr/X11/lib/X11/fonts/TTF/$b /opt/openoffice.org/basis3.1/share/fonts/truetype/$b; \ done -r--r--r-- 1 root bin 104980 May 31 15:26 /opt/openoffice.org/basis3.1/share/fonts/truetype/LiberationMono-Bold.ttf -r--r--r-- 1 root bin 104980 Nov 13 2008 /usr/X11/lib/X11/fonts/TTF/LiberationMono-Bold.ttf .. (2) DejaVu Practically the same situation, only the files are under different names and sizes (OOo files being probably older version): $ ls -l /usr/X11/lib/X11/fonts/TTF/Deja*ttf -r--r--r-- 1 root bin 569880 Mar 28 19:31 /usr/X11/lib/X11/fonts/TTF/DejaVuSans-Bold.ttf .. vs. $ ls -l /opt/openoffice.org/basis3.1/share/fonts/truetype/Deja*ttf -r--r--r-- 1 root bin 539972 May 31 15:26 /opt/openoffice.org/basis3.1/share/fonts/truetype/DejaVuSansBold.ttf ..
reassigning
is -> hdu: do you agree with replacing the files by symlinks? Or is it sufficient to remove the files and to rely on their existence in /usr/X11/lib/X11/fonts/TTF/ ?
Optimal would be to remove the files and to rely on their existence in /usr/X11/lib/X11/fonts/TTF/, while declaring dependency on FSWxorg-fonts-core in the packages' metadata (this might need to be done in the distro-import part of the opensolaris.org pkg workspace).
@is: If the installation script can reliably determine that the fonts are already there and known system wide, then OOo should neither install nor symlink them.
From a packaging standpoint hnhn's suggestion to use package dependencies is probably even better.
Yes, sounds good to use the package dependencies.
Setting required target.