ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Problems Building a Toolchain RPM


From: Mark
Subject: Re: [Ltib] Problems Building a Toolchain RPM
Date: Wed, 3 Nov 2010 17:28:59 +0000
User-agent: KMail/1.13.5 (Linux/2.6.34.7-0.5-desktop; KDE/4.4.4; x86_64; ; )

Hello Stuart

Thanks for the example. The spec file that I had created does pretty much the 
same thing as the one that you sent. The toolchain that I have is a tarball of 
the binaries, so I was just trying to copy them to the right location. ( I do 
have the source for the toolchain too).

I've been running rpm/rpmbuild with debugging messages turned on, and it looks 
like the rpm builds correctly, but doesn't extract correctly...

When running rpmbuild:

D: fini      100644  1 (   0,   0)     17828 /usr/local/arm/gcc-arm-926ejs-
linux-gnueabi-soft-1.0/cross-gcc-4.4.1-eglibc-2.10-soft/i686-pc-linux-
gnu/share/locale/zh_TW/LC_MESSAGES/cpplib.mo 
D: fini      100644  1 (   0,   0)    475168 /usr/local/arm/gcc-arm-926ejs-
linux-gnueabi-soft-1.0/cross-gcc-4.4.1-eglibc-2.10-soft/i686-pc-linux-
gnu/share/locale/zh_TW/LC_MESSAGES/gcc.mo 
D: fini      100644  1 (   0,   0)     44839 /usr/local/arm/gcc-arm-926ejs-
linux-gnueabi-soft-1.0/cross-gcc-4.4.1-eglibc-2.10-soft/i686-pc-linux-
gnu/share/locale/zh_TW/LC_MESSAGES/ld.mo 
GZDIO:    4558 writes, 93293600 total bytes in 39.144 secs
D: Signature: size(160)+pad(0)
Wrote: /opt/ltib/usr/src/rpm/RPMS/x86_64/gcc-arm-926ejs-linux-gnueabi-
soft-1.0-1.x86_64.rpm
Executing(%clean): /bin/sh -e /opt/ltib/var/tmp/rpm-tmp.29310
+ umask 022
+ cd /opt/ltib/usr/src/rpm/BUILD
+ rm -rf /opt/ltib/var/tmp/gcc-arm-926ejs-linux-gnueabi-soft-1.0
+ rm -rf /opt/ltib/usr/src/rpm/BUILD/gcc-arm-926ejs-linux-gnueabi-soft
+ exit 0

When extracting with rpm:

D: fini      100755  2 (   0,   0)         0 /usr/local/arm/gcc-arm-926ejs-
linux-gnueabi-soft-1.0/cross-gcc-4.4.1-eglibc-2.10-soft/i686-pc-linux-
gnu/arm-926ejs-linux-gnueabi/lib/libstdc++.so.6.0.12;4cd14483 
D: fini      100755  2 (   0,   0)    917184 /usr/local/arm/gcc-arm-926ejs-
linux-gnueabi-soft-1.0/cross-gcc-4.4.1-eglibc-2.10-soft/i686-pc-linux-
gnu/arm-926ejs-linux-gnueabi/sys-root/usr/lib/libstdc++.so.6.0.12;4cd14483 
D: fini      120777  2 (   0,   0)        19 /usr/local/arm/gcc-arm-926ejs-
linux-gnueabi-soft-1.0/cross-gcc-4.4.1-eglibc-2.10-soft/i686-pc-linux-
gnu/arm-926ejs-linux-gnueabi/lib/libstdc++.so.6;4cd14483 
D: undo      000000  0 (   0,   0)         0  unknown
GZDIO:   10668 reads, 87392256 total bytes in 2.000 secs
error: unpacking of archive failed: cpio: Bad magic
D: closed   db index       /opt/ltib/var/lib/rpm/Conflictname
D: verified db index       /opt/ltib/var/lib/rpm/Conflictname
D: closed   db index       /opt/ltib/var/lib/rpm/Basenames
D: verified db index       /opt/ltib/var/lib/rpm/Basenames
D: closed   db index       /opt/ltib/var/lib/rpm/Name
D: verified db index       /opt/ltib/var/lib/rpm/Name
D: closed   db index       /opt/ltib/var/lib/rpm/Packages
D: closed   db environment /opt/ltib/var/lib/rpm/Packages
D: removed  db environment /opt/ltib/var/lib/rpm/Packages
D: verified db index       /opt/ltib/var/lib/rpm/Packages


I was trying to work out which file it might be failing on, but it doesn't 
look like the file order is the same for the build and extract processes.

Mark

On Tuesday 02 Nov 2010 20:54:50 Stuart Hughes wrote:
> Hi Mark,
> 
> What format was this provided to you in? May you can asked them for an rpm?
> 
> Make sure you have access to the sources as if you distribute you will
> be liable to supply these.
> 
> However, I would not re-build the toolchain.  Your best bet is to make a
> .spec file that just copies the binaries into the right place in the
> package.  I've attached an example which is not tested but based on
> something I used to use a long time ago.  To build it, copy into your
> host rpm's SPEC area and then run  rpm -ba tc-bin.spec  (rename this and
> edit the .spec to be as you need it before hand).
> 
> Regards, Stuart
> 
> Mark wrote:
> > Hello
> > 
> > I've been using LTIB with an independent toolchain provided by the
> > manufacturer of the development board that we are using. I am trying to
> > package the toolchain into an RPM so that it can form part of my LTIB
> > release. I am having trouble in creating an 'LTIB-compatible' RPM.
> > 
> > My first approach was to use the RPM tools that came with my distro
> > (openSUSE 11.3, RPM 4.8.0), but the resulting RPM is rejected by LTIB
> > based on a failed dependency 'rpmlib(PayloadIsLzma)'. I understand that
> > this may be to do with changes in the compression technique used for the
> > RPM payload.
> > 
> > Then I tried building an RPM using the LTIB environment with RPM 4.0.4,
> > but this time the process fails with 'unpacking of archive failed: cpio:
> > Bad magic'.
> > 
> > I just wondered whether anybody has any suggestion or pointers that might
> > help me.
> > 
> > Thanks
> > 
> > Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]