Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 93034

Summary: xorg-x11-6.8.99.x: collision errors because of new FontEncDir
Product: Gentoo Linux Reporter: Georgi Georgiev <chutz+bugs.gentoo.org>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal Keywords: Inclusion
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Georgi Georgiev 2005-05-17 23:35:55 UTC
the xorg-x11-6.8.99.x series cause collision-protect errors with the encodings. The new ebuild tries to install them in /usr/lib/X11/fonts/encodings, which does not exist on ${ROOT} because it is a symlink to /usr/share/fonts and therefore /usr/lib/X11/fonts/encodings/* is claimed to not be owned by any package.

Turns out that FontEncDir was introduced and it defaults to $(LIBDIR)/fonts/encodings. The value of ENCODINGSDIR is set to FontEncDir in 6.8.99 but it used to default to $(FONTDIR)/encodings with 6.8.2.

The fix for the ebuild is:

         echo "#define FontDir /usr/share/fonts" >> ${HOSTCONF}
+        echo "#define FontEncDir /usr/share/fonts" >> ${HOSTCONF}
         echo "#define BinDir /usr/bin" >> ${HOSTCONF}

In fact I don't know if that's the proper solution. Testing from my overlay right now... may take a while.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-18 08:06:24 UTC
Sounds good. Let us know how things go.
Comment 2 Georgi Georgiev 2005-05-18 17:17:17 UTC
It had merged fine.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-18 19:19:29 UTC
I actually think this would be better, after looking into it a bit:

+        echo "#define FontEncDir $(FONTDIR)/encodings" >> ${HOSTCONF}

Could you give it a shot?
Comment 4 Georgi Georgiev 2005-05-18 19:33:34 UTC
Oh, my.... I type without thinking.

I just submitted bug #93129 which was the reason to reinstall X a few times
already and see these problems. I'll go ahead and test your recommendation now.
Comment 5 Georgi Georgiev 2005-05-18 19:36:13 UTC
Ah, I changed that to single quotes, as FONTDIR from $(FONTDIR) would be
executed in a subshell if using double quotes.
Comment 6 Georgi Georgiev 2005-05-18 20:15:49 UTC
Works like a charm (with the single quotes)
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-23 19:38:16 UTC
Fixed in 6.8.99.5. Thanks!