Re: How to install source rpm's on redhat 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---------- Original Message -----------
From: "William Hooper" <whooper@xxxxxxxxxxxxx>
To: shrike-list@xxxxxxxxxx
Sent: Tue, 22 Apr 2003 11:05:39 -0400 (EDT)
Subject: Re: How to install source rpm's on redhat 9

> Darren R. Weber said:
> > On Mon, 2003-04-21 at 22:57, Michael Fratoni wrote:
> >>
> >> On Monday 21 April 2003 09:24 pm, Darren R. Weber wrote:
> >> You really shouldn't build RPMs as root. It's just an invitation for
> >> disaster. Settting up a non root rpm build environment is simple, and
> >> will save you when you make a mistake in a spec file that results in an
> >> 'rm -rf /'
> >>
> >> Instructions and a script to set it up:
> >> http://www.tuxfan.homeip.net:8080/hack.html
> >>
> > I always thought that was a bad deal to have to be root to rebuild the
> > rpms too.  Thanks for the info on how to set it up non root.
> >
> > -Darren
> 
> Interesting.  I had heard of it before, but this is much easier to 
> set up than I had imagined.  One thing, though, is there a way to 
> make tarballs work with this environment?
> 
> For example, I use Leafnode, which is distributed as a tar.bz2 file. 
>  The author does included a spec file, so I can just do:
> 
> # rpmbuild -tb leafnode-<version>.tar.bz2
> 
> When trying as a user now I get:
> 
> [whooper@xxxxxxxx whooper]$ rpmbuild -tb
> /harddrive2/storage/downloads/linux/leafnode-1.9.37.rel.tar.bz2
> error: Failed to rename
> /home/whooper/rpmbuild/SOURCES/%{name}-%{version}/rpm-spec.3oomkl to
> /home/whooper/rpmbuild/SOURCES/%{name}-%{version}/rpm-spec.3oomkl: 
> No such file or directory: No such file or directory 
> [whooper@xxxxxxxx whooper]$
> 
------- End of Original Message -------

Try rpmbuild -bb leafnode.spec file while in ~/rpms/SPECS (and with the
tarball source in ~/rpms/SOURCES) assuming you have 

[root@xxx postfix]# cat /home/xx/.rpmmacros
%_topdir /home/xx/rpms
%_tmppath %{_topdir}/tmp
                                                                             
                                            
[root@xxx postfix]#

You may have to edit leafnode.spec to point to the correct version. I do this
all the time without error in a non-root account.






[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux