Building the package in mock fails: make[2]: Entering directory `/builddir/build/BUILD/xorg-x11-fonts-7.0/font-adobe-utopia-type1-1.0.1' /usr/bin/mkfontscale /var/tmp/xorg-x11-fonts-7.0-3-buildroot/usr/share/X11/fonts/Type1 /usr/bin/mkfontdir /var/tmp/xorg-x11-fonts-7.0-3-buildroot/usr/share/X11/fonts/Type1 /var/tmp/xorg-x11-fonts-7.0-3-buildroot/usr/share/X11/fonts/Type1 make[2]: execvp: /var/tmp/xorg-x11-fonts-7.0-3-buildroot/usr/share/X11/fonts/Type1: Permission denied make[2]: *** [install-data-hook] Error 127 make[2]: Leaving directory `/builddir/build/BUILD/xorg-x11-fonts-7.0/font-adobe-utopia-type1-1.0.1' make[1]: *** [install-data-am] Error 2 make[1]: Leaving directory `/builddir/build/BUILD/xorg-x11-fonts-7.0/font-adobe-utopia-type1-1.0.1' make: *** [install-am] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.57487 (%install) Normally, the makefile would call $(FCCACHE) /var/tmp/xorg-x11-fonts-7.0-3-buildroot/usr/share/X11/fonts/Type1 but as $(FCCACHE) is undefined due to no fc-cache binary being installed, it just tries to execute /var/tmp/xorg-x11-fonts-7.0-3-buildroot/usr/share/X11/fonts/Type1 which naturally fails. Installing fontconfig fixes this. Attached is a pathc, adding the necessary BuildRequirement.
Created attachment 129284 [details] Patch, adding the missing buildreqs
There is no reason for the makefiles to be invoking fc-cache at build time. That introduces a totally unnecessary dependency on fontconfig. The proper fix is to patch out fc-cache from being invoked at all. We can do that in a future build. I'd recommend reporting this to X.Org bugzilla also, to have the fc-cache call removed upstream.
Ugh. That means patching each individual font tarball, and reinvoking autotools on each one, and then having to adjust the patch every time upstream changes one of the font tarballs. Since that would be a maintenance nightmare, I've decided to just add the dependency on fontconfig instead, although I think upstream should not be invoking fc-cache at all.
* Fri 26 May 2006 Mike A. Harris <mharris> 7.0-4 - Added "BuildRequires: fontconfig" for (#192038)