Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th December 2008, 08:53 PM
eliwap Offline
Registered User
 
Join Date: Nov 2006
Posts: 21
Confusion with rpmbuild and Fedora 10

I've tried to rebuild a couple of SRPMs and found that they did not get built in, for expample

/usr/src/redhat/RPMS/x86_64

Instead, after guessing, I found that they were build in

/root/rpmbuild/RPMS/x64_64

Is this the way things work now? Is there anyway to get the old behavior back? Any insights?

Thanks

Eli
Reply With Quote
  #2  
Old 14th December 2008, 12:03 AM
BlueC Offline
Registered User
 
Join Date: Aug 2007
Location: Liverpool, UK
Posts: 733
Not sure if that behaviour has changed but you really should NEVER build software as root user, and that includes building RPMs.

A good way is to run "rpmdev-setuptree" as a normal user and it will create an RPM build root in ~/rpmbuild/ and then whenever you build under that user it will use this directory as the build tree top directory. It will also create the file ~/.rpmmacros which you can configure to your taste.

HTH
C
Reply With Quote
  #3  
Old 14th December 2008, 05:04 AM
eliwap Offline
Registered User
 
Join Date: Nov 2006
Posts: 21
OK. Thanks for that I will try what you suggested and post back.
Reply With Quote
  #4  
Old 14th December 2008, 05:56 AM
RahulSundaram Offline
Registered User
 
Join Date: May 2005
Posts: 3,549
Hi,

Yes, the behaviour has changed and rpmbuild uses ~home/rpmbuild by default now. As the previous poster said, you should never ever build rpm packages as root. A separate user is much safer. Instead of configuring things manually, you can follow

http://fedoraproject.org/wiki/Packag...em_and_account
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
Reply With Quote
  #5  
Old 14th December 2008, 05:03 PM
eliwap Offline
Registered User
 
Join Date: Nov 2006
Posts: 21
I will be taking a look at this soonest however, do you have a quick answer as to how one is supposed to deal with 3rd party apps that have no idea which user I'm using to rebuild apps.
Reply With Quote
  #6  
Old 14th December 2008, 05:14 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Quote:
Originally Posted by eliwap View Post
I will be taking a look at this soonest however, do you have a quick answer as to how one is supposed to deal with 3rd party apps that have no idea which user I'm using to rebuild apps.
make a softlink in /usr/src to the relevant directory in the user's home.
Reply With Quote
  #7  
Old 14th December 2008, 08:00 PM
eliwap Offline
Registered User
 
Join Date: Nov 2006
Posts: 21
Now why didn't I think of that? Tells you how tired I am. Thanks sideways, that should do the trick
Reply With Quote
Reply

Tags
confusion, fedora, rpmbuild

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmbuild error on Fedora 9 RedFedora Programming & Packaging 7 29th August 2012 03:33 PM
Fedora 9 makes confusion with 2 NIC pbonavoglia Servers & Networking 17 16th November 2008 06:09 PM
Little confusion between Red Hat, Fedora, proprietary, pay, etc. Roasted Using Fedora 5 4th December 2007 09:57 PM
Fedora Summit confusion Lunitik Fedora Focus 14 30th November 2006 05:45 AM


Current GMT-time: 20:04 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat