[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Ltib] Can't figure out how to add my program
From: |
Alexandre Paradis |
Subject: |
RE: [Ltib] Can't figure out how to add my program |
Date: |
Tue, 9 Jun 2009 12:33:29 -0400 |
Hi Grant,
Since your custom package is not in the package list, you'll need to
specify the whole .spec filename in the arguments (-p tcpecho.spec).
There's a FAQ section that mentions how to add custom packages to the
list of local packages.
Regards,
Alex
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Grant
Edwards
Sent: June 9, 2009 12:03 PM
To: address@hidden
Subject: [Ltib] Can't figure out how to add my program
I can't seem to figure out how to get a simple "hello-world"
type program onto my target. AFAICT, I have to create an
RPM package for it. The package is named "tcpecho". I've
followed the instructions in the faq and put the source tarball
in /opt/freescale/pkgs, and the spec file in dist/lfs-5.1/tcpecho:
$ ls -l /opt/freescale/pkgs/tcpecho*
-rw-r--r-- 1 grante users 1651 Jun 9 10:28
/opt/freescale/pkgs/tcpecho-0.0.tar.gz
$ ls -l dist/lfs-5.1/tcpecho*
-rw-r--r-- 1 grante users 641 Jun 9 10:34 tcpecho.spec
------------------------------tcpecho.spec------------------------------
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : Program that echos data on TCP ports for throughput
testing
Name : tcpecho
Version : 0.0
Release : 1
License : none
Vendor : none
Packager : none
Group : Applications/Engineering
URL : none
Source : %{name}-%{version}.tar.bz2
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup
%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}/*
------------------------------------------------------------------------
The next step (prep) fails:
$ ./ltib -m prep -p tcpecho
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
Cannot find spec file that contains the package name tcpecho.
If necessary please give the whole spec file name (with the
.spec extension).
traceback:
main::mk_buildlist:1751
main::validate_sn:1797
main::build_rpm:621
main::f_prep:854
main:501
Exiting on error or interrupt
What am I dong wrong?
_______________________________________________
LTIB home page: http://bitshrine.org
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib