RPM rebuild made easier?

Joel Sherrill joel.sherrill at OARcorp.com
Thu Feb 27 15:15:44 UTC 2003


I don't personally have a problem with any of this as long as it
works, is documented, and doesn't alter the standard packaging
process.

Thomas Doerfler wrote:
> 
> Hello Joel,
> >
> > ALthough this may result in RPMS that have different install points,
> it
> > doesn't solve the problem that the packages conflict.  You can't
> install
> > "group rtems package binutils X" and "group rtems package binutils
> Y".
> > RPM will complain.  I think that for this to work you have to
> override
> > at least the group and prefix.  Otherwise RPM will think they are
> the
> > same package.
> here is an output from my console:
> zerberus:/usr/src/packages/SPECS # rpm -q -i `rpm -q -a |grep
> i386-rtems- binutils`
> Name        : i386-rtems-binutils          Relocations: (not
> relocateable)
> Version     : 2.9.5.0.24                        Vendor: OAR
> Corporation
> Release     : 1                             Build Date: Die 09 Mai
> 2000 00:47:26 CEST
> Install date: Son 26 Aug 2001 12:02:42 CEST      Build Host: ireland
> Group       : rtems                         Source RPM:
> i386-rtems-binutils- collection-2.9.5.0.24-1.nosrc.rpm
> Size        : 24656619                         License: GPL/LGPL
> Packager    : corsepiu at faw.uni-ulm.de and joel at OARcorp.com
> Summary     : rtems binutils for i386-rtems
> Description :
> RTEMS is an open source operating system for embedded systems.
> This is the GNU binutils for RTEMS targetting i386-rtems.
> Authors:
> --------
>     Joel Sherrill (joel at oarcorp.com)
>     ...
> Distribution: Linux
> Name        : i386-rtems-binutils          Relocations: /opt
> Version     : 2.10                              Vendor: OAR
> Corporation
> Release     : 3                             Build Date: Die 06 Aug
> 2002 09:09:55 CEST
> Install date: Die 06 Aug 2002 09:16:18 CEST      Build Host:
> zerberus.imd- systems.local
> Group       : rtems                         Source RPM:
> i386-rtems-binutils- collection-2.10-3.nosrc.rpm
> Size        : 22740394                         License: GPL/LGPL
> Packager    : corsepiu at faw.uni-ulm.de and joel at OARcorp.com
> Summary     : rtems binutils for i386-rtems
> Description :
> RTEMS is an open source operating system for embedded systems.
> This is the GNU binutils for RTEMS targetting i386-rtems.
> Distribution: Linux
> Name        : i386-rtems-binutils          Relocations:
> /opt/rtems/binutils- 2.13-gcc-3.2-newlib-1.10.0
> Version     : 2.13                              Vendor: OAR
> Corporation
> Release     : 1                             Build Date: Son 13 Okt
> 2002 21:23:18 CEST
> Install date: Son 13 Okt 2002 22:18:49 CEST      Build Host:
> zerberus.imd- systems.local
> Group       : rtems                         Source RPM:
> i386-rtems-binutils- collection-2.13-1.nosrc.rpm
> Size        : 26919396                         License: GPL/LGPL
> Packager    : corsepiu at faw.uni-ulm.de and joel at OARcorp.com
> Summary     : rtems binutils for i386-rtems
> Description :
> RTEMS is an open source operating system for embedded systems.
> This is the GNU binutils for RTEMS targetting i386-rtems.
> Distribution: Linux
> Name        : i386-rtems-binutils          Relocations:
> /opt/rtems/binutils- 2.13.2.1-gcc-3.2.1-newlib-1.11.0
> Version     : 2.13.2.1                          Vendor: OARCorp
> Release     : 2                             Build Date: Die 25 Feb
> 2003 22:11:23 CET
> Install date: Die 25 Feb 2003 23:22:40 CET      Build Host:
> zerberus.imd- systems.local
> Group       : rtems                         Source RPM:
> i386-rtems-binutils- collection-2.13.2.1-2.nosrc.rpm
> Size        : 26914941                         License: GPL/LGPL
> Packager    : corsepiu at faw.uni-ulm.de and joel at OARcorp.com
> Summary     : rtems binutils for i386-rtems
> Description :
> RTEMS is an open source operating system for embedded systems.
> This is the GNU binutils for RTEMS targetting i386-rtems.
> Distribution: Linux
> zerberus:/usr/src/packages/SPECS # rpm --version
> RPM Version 3.0.6
> zerberus:/usr/src/packages/SPECS #
> At least the last version (2.13.2.1-2) was installed after a rebuilt
> (last night) without forcing RPM to anything it did not want to do on
> its own. So FOR ME it is working (and maybe I shouldn't ask why too
> hard, otherwise it will not work anymore...).
> I admit that this is not perfect. But it makes it definitively easier
> for me to install tools the way I like them. And, I think, it doesn't
> break anything for the "clean" way...
> wkr,
>       Thomas.
> >
> >
> > > Thomas.
> > > > >  Any improvements possible?
> > > > Of cause ;)
> > > >
> > > > For the moment, there is an easier way to apply a different
> > > installation prefix:
> > > >
> > > > In RTEMS source tree,
> > > > cd scripts
> > > > ../bootstrap
> > > > ./configure --prefix=/opt/rtems-4.6
> > > > make
> > > >
> > > > The rpm-specs generated then will apply /opt/rtems-4.6 instead
> of
> > > > /opt/rtems.
> > > >
> > > > > The anybody who wants to rebuild the toolset simply has to
> > > > > call RPM as follows:
> > > > >
> > > > >
> > > > > $ rpm -ba --define 'prefix /opt/rtems/binutils-2.13.2.1-gcc-
> > > > > 3.2.1-newlib-1.11.0' --define 'gnat 0' --define 'gcj 0'
> > > > > powerpc-rtems-gcc-3.2.1-newlib-1.11.0.spec
> > > > >
> > > > > No more hacking around inside the specs...
> > > > You've just discovered, why it is implemented the way it is.
> > > >
> > > > Except of the prefix you are using, it's exactly what I am using
> for
> > > > speeding up testing the rpms.
> > > >
> > > > > Is it possible to integrate this into the toolse specs?
> > > >
> > > > Ralf
> > > >
> > > --------------------------------------------
> > > IMD Ingenieurbuero fuer Microcomputertechnik
> > > Thomas Doerfler           Herbststrasse 8
> > > D-82178 Puchheim          Germany
> > > email:    Thomas.Doerfler at imd-systems.de
> > > PGP public key available at: http://www.imd-
> > > systems.de/pgp_keys.htm
> >
> > --
> > Joel Sherrill, Ph.D.             Director of Research & Development
> > joel at OARcorp.com                 On-Line Applications Research
> > Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> > Support Available                (256) 722-9985
> --------------------------------------------
> IMD Ingenieurbuero fuer Microcomputertechnik
> Thomas Doerfler           Herbststrasse 8
> D-82178 Puchheim          Germany
> email:    Thomas.Doerfler at imd-systems.de
> PGP public key available at: http://www.imd-
> systems.de/pgp_keys.htm

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list