[Bug 495577] Review Request: xsw - A simple slideshow producer and viewer

bugzilla at redhat.com bugzilla at redhat.com
Fri Apr 17 08:58:50 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=495577





--- Comment #4 from Jussi Lehtola <jussi.lehtola at iki.fi>  2009-04-17 04:58:21 EDT ---
Just patch the source code, then there's no need to ship fonts or make symlinks
altogether.

I'm not fluent enough in sed to be able to write a loop that replaces the
occurrences in src/execute.c due to the double quotes:

   font = TTF_OpenFont(DATADIR "VeraBd.ttf", txt->size);
   font = TTF_OpenFont(DATADIR "VeraSeBd.ttf", txt->size);
   font = TTF_OpenFont(DATADIR "VeraMono.ttf", txt->size);
   font = TTF_OpenFont(DATADIR "VeraBd.ttf", txt->size);
   fprintf(stderr, "Default font %s could not be found. Are you sure you typed
'make install' after compiling xsd?", DATADIR "VeraBd.ttf");

Something of the like of 

for font in VeraBd.ttf VeraSeBd.ttf VeraMono.ttf; do
 sed -i 's|DATADIR "$font"|"/usr/share/fonts/bitstream-vera/$font"|g'
src/execute.c
done

should do the trick.


If you can't get that to work, then you can always patch the source code file
and replace
 DATADIR "VeraBd.ttf"
with
 "@VERABD@"
and so on, and then just run sed to replace @VERABD@ et al with the correct
paths in the spec file.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-package-review mailing list