LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-22-2003, 12:06 PM   #1
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
building rpms as non-root user - temp probs


I'm trying to build rpms from src.rpms and tarballs as a non-root user in mandrake 9.1.

So far I've mirrored /usr/src/rpm/ (with internal folders etc) in my home dir and created a .rpmmacros file (also in home dir) which points the top-level directory for rpm and rpmbuild to /home/me/rpm by running;

[me@mybox]$ echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros

but I'm getting inaccessible temp errors (verbose output below)

Code:
[me@mybox programs]$ rpmbuild -vv -ta gaim-0.70.tar.gz
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: ========== +++ gaim-0.70-1
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: Requires: libao-devel                                   YES (db provides)
D: Requires: libgtk+2.0_0-devel                            YES (db provides)
D: Requires: gtkspell-devel                                YES (db provides)
D: Requires: libtool                                       YES (db provides)
D: Requires: audiofile-devel                               YES (db provides)
D: Requires: pkgconfig                                     YES (db provides)
D: Requires: libnss3-devel                                 YES (db provides)
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Depends
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
error: Unable to open temp file.
RPM build errors:
Unable to open temp file.
How do I tell it to use /home/me/tmp for building?

Would creating a rpm database in my home folder work (i.e. look there rather than in /var/lib/rpms for dependencies etc) - a couple of docs mentioned this, but implied it wasn't necessary. I haven't had a chance to try it yet (not at home).

BTW: I know the package is ok, it has a spec file and builds as root, but I'm fed up with su-ing just to build a bloody package (besides, it's _frowned upon_ to build as root).
 
Old 11-22-2003, 04:01 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I suggest that you use checkinstall to build rpms from tar balls. The procedure is:
./configure
make
checkinstall

http://asic-linux.com.mx/~izto/checkinstall/


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-23-2003, 04:41 PM   #3
frogman
Member
 
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Original Poster
Rep: Reputation: 31
will give that a try,

Thanks
 
  


Reply



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
Building RPMs from source IronBeagle Linux - Software 2 03-04-2005 01:46 PM
Building RPMs Brian of Gep Linux - Newbie 2 05-02-2004 10:26 AM
building rpms from cyrus-sasl help... tarballed Linux - Software 0 08-21-2003 06:09 PM
Mandrake 9 - Building and Misc Probs ambian307 Linux - Software 1 08-11-2003 09:55 AM
Building my own kernel - first probs Faeroon Slackware 10 01-20-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration