ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Compile iw within ltib.


From: Stuart Hughes
Subject: Re: [Ltib] Compile iw within ltib.
Date: Wed, 07 Oct 2009 09:23:33 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Francesco,

Is libnl a new package you're trying to add? it looks like you've tarred up a git tree with no version number in the archive sub-directory. That's why the rpm 'prep' is failing.

To fix this immediate problem you can change your %prep to

%Prep
%Setup -n ltibs

However you'd be best to try to create (download) an "official" tarball that includes the right directory prefix (and not rooted at lib).

Regards, Stuart



Francesco wrote:
Hi all,
here is the problem, maybe my spec file is misconfigured.
Here follows full console error output and the spec file I did create based on the template coming with ltib.

address@hidden ltib-mpc837xerdb-20090826]$ ./ltib -m prep -p libnl.spec
Don't have HTTP::Request::Common
Don't have LWP::UserAgent
Cannot test proxies, or remote file availability without both
HTTP::Request::Common and LWP::UserAgent

Processing: libnl
===================
Build path taken because: build key set, no prebuilt rpm,

rpmbuild --dbpath /home/francesco/ltib-mpc837xerdb-20090826/rootfs//var/lib/rpm --target ppc --define '_unpackaged_files_terminate_build 0' --define '_target_cpu ppc' --define '__strip strip' --define '_topdir /home/francesco/ltib-mpc837xerdb-20090826/rpm' --define '_prefix /usr' --define '_tmppath /home/francesco/ltib-mpc837xerdb-20090826/tmp' --define '_rpmdir /home/francesco/ltib-mpc837xerdb-20090826/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bp /home/francesco/ltib-mpc837xerdb-20090826/dist/lfs-5.1/libnl/libnl.spec
Building target platforms: ppc
Building for target ppc
Executing(%prep): /bin/sh -e /home/francesco/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.33555
+ umask 022
+ cd /home/francesco/ltib-mpc837xerdb-20090826/rpm/BUILD
+ cd /home/francesco/ltib-mpc837xerdb-20090826/rpm/BUILD
+ rm -rf libnl-0
+ /bin/gzip -dc /home/francesco/ltib-mpc837xerdb-20090826/rpm/SOURCES/libnl.tar.gz
+ tar -xvvf -
drwxrwxr-x root/root         0 2009-09-03 00:01 libs/netlink/libnl.git/
-rw-rw-r-- root/root 228 2009-09-03 00:01

[snip]

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libnl-0
/home/francesco/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.33555: line 28: cd: libnl-0: No such file or directory error: Bad exit status from /home/francesco/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.33555 (%prep)


RPM build errors:
Bad exit status from /home/francesco/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.33555 (%prep)
Build time for libnl: 0 seconds

Failed building libnl


f_prep() returned an error, exiting
traceback:
 main:560

Exiting on error or interrupt

========

Here follows libnl.spec file i created.

libnl.spec
--------------
%define pfx /opt/freescale/rootfs/%{_target_cpu}

Summary         : libnl library
Name            : libnl
Version         : 0
Release         : 1
License         : gpl
Vendor          : Freescale
Packager        : Francesco
Group           : Development/Tools
URL             : http://k3pp0.it <http://k3pp0.it/>
Source          : libnl.tar.gz
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

%Prep
%setup

%Build
%./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
./configure --host=$CFGHOST --build=%{_build}
make

%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}

%Clean
rm -rf $RPM_BUILD_ROOT

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

Thanks for your help.





On Mon, Oct 5, 2009 at 9:42 AM, Stuart Hughes <address@hidden <mailto:address@hidden>> wrote:

    Hi Francesco,

    You'll need to add the missing packages to LTIB.  There's a section
    on adding new packages in the FAQ.

    Regards, Stuart


    Francesco wrote:

        Hi,
        after deploying kernel 2.6.30.8 on freescale MPC8377 via ltib i
        have to compile iw.
        Iw is a command line interface that depends on libnl crda and
        pkg-config.
        How do i proceed? Compile and install single sources?
        Is there a smart way to get iw working?
        Any hint appreciated.
        Thanks

-- Francesco Cappuccio




--
Francesco Cappuccio





reply via email to

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