LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-29-2005, 04:17 PM   #1
lets-eat-gary
Member
 
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 62

Rep: Reputation: 15
Recompile xorg SRPM - error


Hi People.

I am attempting to recompile an xorg source rpm.

I downloaded xorg-x11-6.8.2-7.1.102mdk.src.rpm (I also created a user and group call qatest as it has complained that the user didn't exist.)

I used the following command.:-

rpm --rebuild --target athlon xorg-x11-6.8.2-7.1.102mdk.src.rpm

--> it seemed to compile (for quite some time)

but then gave the an error, here are the last few lines:-
---------------------------------------------------------
+ cat
+ mkdir -p /home/morgan/RPM/tmp/xorg-x11-root/usr/include
+ pushd /home/morgan/RPM/tmp/xorg-x11-root/usr/include
~/RPM/tmp/xorg-x11-root/usr/include ~/RPM/BUILD/xorg-x11-6.8.2
+ ln -sf ../X11R6/include/GL GL
+ popd
~/RPM/BUILD/xorg-x11-6.8.2
+ mkdir -p /home/morgan/RPM/tmp/xorg-x11-root/var/lib/xdm
+ pushd /home/morgan/RPM/tmp/xorg-x11-root/etc/X11/xdm
~/RPM/tmp/xorg-x11-root/etc/X11/xdm ~/RPM/BUILD/xorg-x11-6.8.2
+ rm -f authdir
+ ln -sf ../../../var/lib/xdm authdir
+ popd
~/RPM/BUILD/xorg-x11-6.8.2
+ mkdir -p /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig
+ mv /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xcomposite.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xcursor.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xdamage.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xevie.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xfixes.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xft.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/pkgconfig/xrender.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig
+ chmod 0644 /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xcomposite.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xcursor.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xdamage.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xevie.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xfixes.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xft.pc /home/morgan/RPM/tmp/xorg-x11-root/usr/lib/pkgconfig/xrender.pc
+ mv /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/default /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/handhelds /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/redglass /home/morgan/RPM/tmp/xorg-x11-root/usr/X11R6/lib/X11/icons/whiteglass /home/morgan/RPM/tmp/xorg-x11-root/usr/share/icons
+ pushd linuxwacom-0.6.6
~/RPM/BUILD/xorg-x11-6.8.2/linuxwacom-0.6.6 ~/RPM/BUILD/xorg-x11-6.8.2
+ rm -f configure
+ aclocal
+ autoconf
+ autoheader
+ automake --add-missing
automake: Makefile.am: installing `./INSTALL'
automake: Makefile.am: installing `./COPYING'
src/Makefile.am:34: invalid unused variable name: `libwacomcfg_la_LDFLAGS'
src/Makefile.am:33: invalid unused variable name: `libwacomcfg_la_SOURCES'
src/Makefile.am:35: invalid unused variable name: `libwacomcfg_la_LIBADD'
error: Bad exit status from /home/morgan/RPM/tmp/rpm-tmp.11230 (%install)


RPM build errors:
Bad exit status from /home/morgan/RPM/tmp/rpm-tmp.11230 (%install)


--------------------------------------------------------

Does anyone know what is going wrong?
 
Old 06-29-2005, 07:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,796

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
I don't know if Mandrake handles .src.rpms differently from other rpm-based distros. The usual procedure is to cd to the directory containing the .spec file which was installed when you installed the .src.rpm (probably in /usr/src/<kernel version>/SPECS. Then run the rpm --rebuild command with <filename>.spec instead of <filename>.src.rpm.

I could be mistaken, but that's how I've done it with three different rpm-based distros.
 
Old 06-29-2005, 09:23 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
bigrigdriver, the method you described is for building an rpm from scratch using a spec file and source archive. The original poster is using the right method for rebuilding a source rpm.

I don't really know what the error means, but you shouldn't really worry about the group and user problem if rebuilding the source rpm as root.
 
Old 06-30-2005, 02:49 AM   #4
lets-eat-gary
Member
 
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 62

Original Poster
Rep: Reputation: 15
Hi.

I have used bigrigdriver's technique to recompile my kernel no problem, but I should be able to use the 'rpm --rebuild' command to recompile the xorg srpm.

I have tried to rebuild both as a user and as root - both give me the same error.

From looking at the erro it looks like a problem with 'libwacomcfg' ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg srpm build error texi2html dtra Linux - Software 0 10-21-2005 01:39 AM
thunderbird-1.0-2 SRPM / install error louisb Linux - Enterprise 1 07-13-2005 08:25 PM
Recompile Kernel SRPM athlon or i686 ? lets-eat-gary Mandriva 1 12-23-2004 01:00 PM
kernel 2.6.9 recompile error wnaLinux Slackware 14 12-20-2004 03:41 PM
Recompile error ryedunn Linux - General 2 02-28-2004 03:01 PM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration