[Top][All Lists]

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

Re: [Ltib] Compile iw within ltib.

From: Francesco
Subject: Re: [Ltib] Compile iw within ltib.
Date: Wed, 7 Oct 2009 10:28:43 +0200

Hi Stuart,
yes libnl is a new package, are some libraries needed to successfully run iw command on my board.
ANd yes, I downloaded libnl from git just beacuse i need a fresh version.
I will try either to edit spec file as you stated or download an older tarball.


On Wed, Oct 7, 2009 at 10:23 AM, Stuart Hughes <address@hidden> wrote:
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

%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


+ '[' 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

Exiting on error or interrupt


Here follows libnl.spec file i created.

%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             : <>

Source          : libnl.tar.gz
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}



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

make install DESTDIR=$RPM_BUILD_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:

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

       --        Francesco Cappuccio

Francesco Cappuccio

Francesco Cappuccio

reply via email to

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