I'm using LTIB on Ubuntu 7.10, targeting the MPC8315e.
Since I've determined that GNU parted is not currently available for
LTIB, I'm attempting to port parted so it is available on our target.
I've followed the instructions in the LTIB FAQ as best I can but am
getting an error that I can't find an explanation for.
I downloaded parted-1.8.8.tar.bz2 from fsf. I unpacked it so I could
later tar it to .gz as is expected by the instructions in the FAQ.
So, starting with section "How can I add a completely new package to the
root filesystem" in the LTIB FAQ:
1. First clean your sources...
Since I had just downloaded and untarred the package, I did not "make
clean". I executed "tar zcvf parted-1.8.8.tar.gz parted-1.8.8"
2. Move this tarball...
I executed "cp parted-1.8.8.tar.gz /opt/freescale/pkgs/
3; Create a specfile...
I executed:
cd .../ltib/ltib-mpc8315erdb-20071129
mkdir dist/lfs-5.1/parted
cp dist/lfs-5.1/template/template.spec dist/lfs-5.1/parted/parted.spec
4: Edit and fixup the template...
My edited specfile is:
8--
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : GNU parted - partition editor
Name : parted
Version : 1.8.8
Release : 1
License : GPL
Vendor : Free Software Foundation
Packager : xxxx
Group : xxxx
URL : http://directory.fsf.org/project/parted/
Source : %{name}-%{version}.tar.bz2
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup
%Build
./configure --prefix=%{_prefix} --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}/*
--8
5. Unpack the new package source:
Here is where I encounter the error. When I execute "./ltib -d -m prep
-p parted" (I am dry-running to see what it will do), I see the message:
8--
Cannot find spec file that contains the package name parted.
If necessary please give the whole spec file name (with the
.spec extension).
Exiting on error or interrupt
--8
I tried various commands trying to give the full specfile pathname, with
no success. The last command I tried was "./ltib -d -m prep -p
.../ltib/ltib-mpc8315erdb-20071129/dist/lfs-5.1/parted/parted.spec" (I
tried this with sudo also). I got the error message:
8--
get_spec: can't find spec file
.../dist/ltib-mpc8315erdb-20071129/lfs-5.1/parted/parted.spec
in search any of the directories:
.../ltib/ltib-mpc8315erdb-20071129/rpm/SPECS
.../ltib/ltib-mpc8315erdb-20071129/config/platform/mpc8315erdb
.../ltib/ltib-mpc8315erdb-20071129/dist/lfs-5.1
Processing platform: Freescale MPC8315E RDB PowerPC board
===========================================================
using config/platform/mpc8315erdb/.config
Processing: .../dist/lfs-5.1/parted/parted
=======================================================================================
skipping .../ltib/ltib-mpc8315erdb-20071129/dist/lfs-5.1/parted/parted,
specfile not found
f_prep() returned an error, exiting
Exiting on error or interrupt
--8
It seems I'm doing something basic incorrectly, but I can't see what it
might be.
Any suggestions?