Bug 110632 - [patch] x11-fonts/linux-fontconfig is not X11BASE clean
Summary: [patch] x11-fonts/linux-fontconfig is not X11BASE clean
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 17:40 UTC by Karol Kwiatkowski
Modified: 2007-05-23 16:00 UTC (History)
0 users

See Also:


Attachments
file.diff (354 bytes, patch)
2007-03-21 17:40 UTC, Karol Kwiatkowski
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karol Kwiatkowski 2007-03-21 17:40:18 UTC
New version of x11-fonts/linux-fontconfig installs a custom fonts.conf file (from port's files/ directory) which is not X11BASE clean.

It contains this line:
<dir>/usr/X11R6/lib/X11/fonts</dir>

Fix: Replace /usr/X11R6 with ${X11BASE} in ${PREFIX}/etc/fonts/fonts.conf after installation.

Patch attached.

Patch attached with submission follows:
How-To-Repeat: Install x11-fonts/linux-fontconfig in environment with X11BASE set to something other then /usr/X11R6.

Effect: programs relying on it (like skype) will not be able to render fonts.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-03-21 17:40:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-emulation

Over to maintainer
Comment 2 Alexander Leidinger 2007-03-21 18:39:10 UTC
This is under investigation. As already told in private mail, the patch
is good, but the goal is to use a link to the FreeBSD one as before.

I'm waiting for feedback from the gnome team ATM.
Comment 3 Scott Robbins 2007-04-07 00:15:18 UTC
I gave this patch a try too, however, I ran into the same trouble as 
Vladimir Grebenschikov as detailed 

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=270877+0+current/freebsd-emulation

-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Buffy: You're a vampire. Oh, I'm sorry. Was that an offensive 
term? Should I say undead American?
Comment 4 Scott Robbins 2007-04-07 05:57:34 UTC
Another followup.  In the course of installing jdk, I had to install
urwfonts.  This created an X11R6/lib/fonts directory (I have X11BASE set
to /usr/local like the others with the problem.)

After that, acroread works.  It gives an error if I try to open a pdf
from a browser, saying failed to initialize the plugin, however, the pdf
file will open a moment later. 

I don't think this can even be considered a workaround, but it might
help someone who runs into the problem and desperately needs to open a
pdf file.

-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-05-23 15:54:28 UTC
bsam        2007-05-23 14:54:21 UTC

  FreeBSD ports repository

  Modified files:
    x11-fonts/linux-fontconfig Makefile pkg-plist 
  Log:
  . change the prefix (/usr/X11 -> %{LOCALBASE}) at the configuration file;  [1]
  . do REINPLACE at post-patch instead of post-install;                      [2]
  . don't let the linux fc-cache mess up the native cache file (delete       [3]
    the binary and the man);
  . add some comments to the Makefile.
  
  PR:             110632  [1]
  Submitted by:   Karol Kwiatkowski <karol.kwiat at gmail.com>  [1]
  Suggested by:   pav  [2], netchild  [3]
  Approved by:    portmgr (pav)
  
  Revision  Changes    Path
  1.19      +10 -5     ports/x11-fonts/linux-fontconfig/Makefile
  1.3       +0 -2      ports/x11-fonts/linux-fontconfig/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Boris Samorodov freebsd_committer freebsd_triage 2007-05-23 15:55:40 UTC
State Changed
From-To: open->closed

Committed (with some light changes), thanks!