Bug 144617

Summary: X.org SRPM rebuild fails: mkallcomposecaches creates no cache files
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Joachim Schnitter <joachim.schnitter>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Critical    
Priority: P5 - None CC: joachim.schnitter
Version: unspecifiedKeywords: build
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joachim Schnitter 2006-01-21 15:36:15 UTC
Rebuilding xorg-x11-6.8.2-100.2.src.rpm fails. mkallcomposecaches or mkcomposecache, respectively, do not produce any outout files during the %install phase of the RPM package rebuild. I could not manage mkcomposecache to output anything when called manually, not even an error message.

This but was entered with severity set to critical because it affects patching and further development by the community.

I tried to rebuild with different settings of LANG and LC_CTYPE but to no avail. Rebuild failed with LANG set to de_DE.UTF-8, en_US.UTF-8, and unset. LC_CTYPE settings did not affect he outcome of the procedure.

Here are the last few lines from the log file:
--
/usr/src/packages/BUILD/xc
+ install -m 755 /usr/src/packages/SOURCES/mkallcomposecaches.sh /var/tmp/xorg-x11-6.8.2-build/usr/X11R6/bin/mkallcomposecaches
+ /var/tmp/xorg-x11-6.8.2-build/usr/X11R6/bin/mkallcomposecaches /var/tmp/xorg-x11-6.8.2-build
/var/tmp/xorg-x11-6.8.2-build /usr/src/packages/BUILD/xc
/usr/src/packages/BUILD/xc
chmod: cannot access `/var/tmp/xorg-x11-6.8.2-build/var/X11R6/compose-cache/*': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.32871 (%install)


RPM build errors:
    Unknown option ? in verify_permissions(:-:)
    Unknown option ? in verify_permissions(:-:)
    Bad exit status from /var/tmp/rpm-tmp.32871 (%install)

--
Please contact me in case more information is necessary.
Comment 1 Stefan Dirsch 2006-01-21 16:38:51 UTC
Good catch! For whatever reason this problem does *not* happen when using SUSE's (auto)build. I've fixed this now for 10.1 Beta2 by disabling Xvfb's authentication in mkallcomposecaches.

--- mkallcomposecaches.sh.old
+++ mkallcomposecaches.sh
@@ -12,7 +12,7 @@
 mkdir -p $RPM_BUILD_ROOT/var/X11R6/compose-cache
 
 tmpfile=$(mktemp /tmp/Xvfb.log.XXXXXXXXXX)
-$RPM_BUILD_ROOT/usr/X11R6/bin/Xvfb \
+$RPM_BUILD_ROOT/usr/X11R6/bin/Xvfb -ac \
   -fp $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc/ \
   -sp $RPM_BUILD_ROOT/etc/X11/xserver/SecurityPolicy \
   -co $RPM_BUILD_ROOT/usr/X11R6/lib/X11/rgb \