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: Stuart Hughes
Subject: Re: [Ltib] Problems Building a Toolchain RPM
Date: Tue, 02 Nov 2010 20:54:50 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

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
> 
#
# This spec file produces a binary rpm from the binary tar archive of
#
# The sources for this toolchain can be downloaded from .......
#
%define prefix              /opt/ltib/toolchains
%define Name                gcc-cross-xxxx
%define Version             x.y
%define Release             1
%define summary             GCC cross compiler
%define __os_install_post %{nil} 
%define __check_files %{nil}


Name            : %{Name}
Version         : %{Version}
Release         : %{Release}
License         : GPL
Vendor          : Vendor name
Packager        : Your name
Source0         : binary_toolchain.tar.gz
Autoreq         : 0
Autoreqprov     : no

Group           : Programming/Compiler
Summary         : %{summary}

BuildRoot       : %{_tmppath}/%{Name}-%{version}
Prefix          : %{prefix}

%Description
%{summary}

This is a binary rpm to package the binary toolchain from ....

URL:


%Prep
mkdir -p ${RPM_BUILD_DIR}/%{Name}
cd ${RPM_BUILD_DIR}/%{Name}
tar zxvf %{SOURCE0}


%Build

%Install
mkdir -p ${RPM_BUILD_ROOT}/%{prefix}
cp -a %{Name}/* ${RPM_BUILD_ROOT}/%{prefix}

%Clean
rm -rf ${RPM_BUILD_ROOT}
rm -rf ${RPM_BUILD_DIR}/%{Name}

%Files
%defattr(-,root,root)
%{prefix}/*



reply via email to

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