Re: Building RPMs

From: Rui Miguel Seabra (rms@multicert.com)
Date: Mon Feb 25 2002 - 11:50:54 GMT

  • Next message: j.m.maurer: "Re: RPM Building"

    Building RPMS in /usr/src/redhat presumes you are root.
    chown'ing the directories is not the best option.

    It's best to do this:
    [dchart@localhost dchart]$ echo '%_topdir /home/dchart/redhat' >
    .rpmmacros [dchart@localhost dchart]$ mkdir -p
    redhat/{BUILD,RPMS/{i386,i486,i586,i686,noarch,athlon},SOURCES,SPECS,SRPMS}

    Hugs, rms

    On Sat, 2002-02-23 at 07:40, Jesper Skov wrote:
    > On Sat, 2002-02-23 at 00:02, David Chart wrote:
    > > I'm trying to build 0.99.2 RPMs on Ximianised Yellow Dog 2.1. Abi
    > > builds, but the packaging chokes as follows:
    > >
    > > (cd /home/David/abiword-0.99.2/abi/../abidistfiles/icons; cp abi*
    > > /home/David/abifiles//Linux_2.4.10-12a_ppc_OBJ/AbiSuite/icons)
    > > (cd /home/David/abiword-0.99.2/abi/../unixfonts/fonts ; cp *.*
    > > /home/David/abifiles//Linux_2.4.10-12a_ppc_OBJ/AbiSuite/fonts)
    > > make[1]: Leaving directory `/home/David/abiword-0.99.2/abi/src'
    > > make ABI_ROOT=/home/David/abiword-0.99.2/abi prefix=/usr/local -C src
    > > distribution
    > > make[1]: Entering directory `/home/David/abiword-0.99.2/abi/src'
    > > Building distribution packages for linux...
    > > make[2]: Entering directory
    > > `/home/David/abiword-0.99.2/abi/src/pkg/linux'
    > > Making source pack in directory
    > > [/home/David/abiword-0.99.2/abi/../abiword-0.99.2]...
    > > tar (child): /usr/src/redhat/SOURCES/abiword-0.99.2.tar.gz: Cannot open:
    > > No such file or directory
    > > tar (child): Error is not recoverable: exiting now
    > > make[2]: *** [pack_rpm] Error 141
    > > make[2]: Leaving directory
    > > `/home/David/abiword-0.99.2/abi/src/pkg/linux'
    > > make[1]: *** [distribution] Error 2
    > > make[1]: Leaving directory `/home/David/abiword-0.99.2/abi/src'
    > > make: *** [distribution] Error 2
    > >
    > > How do I stop it choking at this point?
    >
    > I think you need to set up your .rpmmacros or something like that. You
    > have the source installed in ~David, but by default RPM expects to build
    > from /usr/src/redhat.
    >
    > Alternatively, do '# chown David.David -R /usr/src/redhat', and build
    > from there (as David). That's what I do (well, as jskov :)
    >
    > Jesper
    >

    -- 
    + No matter how much you do, you never do enough -- unknown
    + Whatever you do will be insignificant,
    | but it is very important that you do it -- Ghandi
    + So let's do it...?
    




    This archive was generated by hypermail 2.1.4 : Mon Feb 25 2002 - 07:01:56 GMT