[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problem building Neon RPMS on RH9

From: Chris Croome <chris_at_webarchitects.co.uk>
Date: 2003-06-26 12:38:45 CEST

Hi David

On Wed 25-Jun-2003 at 11:44:29 -0500, David Summers wrote:
>
> On Wed, 25 Jun 2003, Chris Croome wrote:
> >
> > [chris@snowball neon]$ rpmbuild ./tags/neon-0.23.9-1/neon.spec
> > error: File /usr/local/src/rpms/sources/neon-0.23.9-1/neon-0.23.9.tar.gz: No such file or directory
>
> Hmm, I don't think I've EVER tried to build an RPM from OUTSIDE the RPM
> Source directory before.....I don't know what that will do.

Actually the situation is that /home/ is nfs mounted and 97% full and
/usr/ is local hd and has loads of space so I have this:

  [chris@snowball neon-0.23.9-1]$ cat ~/.rpmmacros
  %_topdir /usr/local/src/rpms
  %_builddir %{_topdir}/build
  %_rpmdir %{_topdir}/rpms
  %_sourcedir %{_topdir}/sources/%{name}-%{version}-%{release}
  %_specdir %{_sourcedir}
  %_srcrpmdir %{_topdir}/srpms
  %_tmppath %{_topdir}/tmp

  [chris@snowball neon-0.23.9-1]$ ls -la /usr/local/
  drwxr-xr-x 11 chris chris 4096 Jun 26 10:35 src

  [chris@snowball neon-0.23.9-1]$ ls -la /home/chris/
  lrwxrwxrwx 1 chris chris 19 Jun 19 18:19 rpms -> /usr/local/src/rpms

> $ cd $HOME/rpms/sources
> $ svn co http://summersoft.fay.ar.us:81/repos/neon/tags/neon-0.23.9-1
> [it checks out the tag]
> $ cd neon-0.23.9-1
> $ make
>
> .......Yep, seems to work fine for me on RedHat 9.

Hmm, not for me, this appear like it thinks I need to be root (that
can't be right!):

  [chris@snowball neon-0.23.9-1]$ pwd
  /usr/local/src/rpms/sources/neon-0.23.9-1

  [chris@snowball sources]$ cd neon-0.23.9-1

  [chris@snowball neon-0.23.9-1]$ make
  tar cfz neon-0.23.9.tar.gz neon --exclude=".svn"
  rpmbuild -ba neon.spec
  error: cannot get shared lock on /var/lib/rpm/Packages
  error: cannot open Packages index using db3 - Operation not permitted (1)
  error: cannot open Packages database in /var/lib/rpm
  make: *** [all] Error 1

> So.......what was it you were getting confused about? :-)

Most stuff :-)

> How could it be made clearer, maybe a README file or something?

Yes please, a README that assumes the person reading it hasn't built many RPMS
from source before would be ideal!

> If you can figure out how to get apr/apr-util/apache to build under
> RedHat 9, please send me patches diffed against my current
> httpd-2.0.46-0.1 tree in Subversion. I think I've got an angle of
> attack but haven't yet had time to try it. Until then, I can't
> compile a completely RedHat 9 generated RPM.

I'm willing to give it a go, but if you can't get it working I fear I'm
not going to be much use... ;-)

Chris

-- 
Chris Croome                               <chris@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 26 12:39:49 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.