Hi
EDIT on sym link partial success but still need advice please
I have 2 issues with this but let me reveal my simple way first.
I load dejavu-fonts-ttf.tcz and test its loaded.......check
As I am running a build script, I tried to refresh my cache as a local user and root user with
(I am already root)
# fc-cache
# su -c 'fc-cache ' tc
in running "make check" I can't get past this error
# make check
Could not open "/usr/share/fonts/dejavu/DejaVuSans.ttf": No such file or directory
(after error research shows)
sudo find / -name DejaVuSans.ttf
/tmp/tcloop/dejavu-fonts-ttf/usr/local/share/fonts/dejavu/DejaVuSans.ttf
/usr/local/share/fonts/dejavu/DejaVuSans.ttf
Notice compiler is looking at usr/share/fonts but file is under usr/local/share/fonts
issue 2./configure --help suggests you can set your
--with-fontdir=path Specify path to font config directory ( default:
fonts/conf.d/).
AFAIK we have /etc/fonts/conf.d
but my configure has prefix=/usr/local and so the configure result screen looks like this
Environment settings:
CFLAGS: -march=i486 -mtune=i686 -Os -pipe -Wall -pedantic -std=gnu99 -D_GNU_SOURCE
CXXFLAGS: -march=i486 -mtune=i686 -Os -pipe -Wall -pedantic -D_GNU_SOURCE
LDFLAGS: -Wl,-O1
Build configuration:
cups-config: system
font directory: ${prefix}/etc/fonts/conf.d
init directory: /etc/init.d
gs-path: /usr/bin/gs
imagefilters: yes
jpeg: yes
pdftops: gs
pdftops-path: /usr/bin/gs
png: yes
php: no
php-config: system
test-font: /usr/share/fonts/dejavu/DejaVuSans.ttf
tiff: yes
avahi: no
browsing: none
werror: no
now my configure line ....it may change has no attempt to set that fonts as I am stumped
./configure --prefix=/usr/local --with-gs-path=/usr/bin/gs --with-pdftops-path=/usr/bin/gs \
--disable-avahi
This appears to be my culprit
font directory: ${prefix}/etc/fonts/conf.d
BTW I selected these flags but it still giving me pedantic
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe "
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe "
export LDFLAGS="-Wl,-O1"
I am currently thinking I may have to remove the prefix line to force the compile into normal /etc/fonts etc?
any advice will be greatly appreciated
########### would it be acceptable to ##########
add a sym link form /usr/local/share/fonts/dejavu to /usr/share/fonts/dejavu?
Would I then need to have that for tcz to work in future, by adding a tce.installed script?
that does the following:
ln -s /usr/local/share/fonts/dejavu/ /usr/share/fonts/dejavu
fc-cache
by doing so I get past make check error
Gordon