LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] cfdisk-glibc trouble FC3

[ILUG] cfdisk-glibc trouble FC3

Darragh Bailey felix at compsoc.nuigalway.ie
Tue Aug 16 14:29:17 IST 2005


Quoting Frank Murphy <lists2005 at frankly3d.com>:

> Getting the follwwing:
>
> [root at frank-00 frank]# locate cfdisk-glibc
> /store00/downloads/linux/cfdisk-glibc-0.8g-1.src.rpm
> [root at frank-00 frank]# cd /store00/downloads/linux
> [root at frank-00 linux]# rpm -i cfdisk-glibc-0.8g-1.i386.rpm
> error: Failed dependencies:
>          libncurses.so.4 is needed by cfdisk-glibc-0.8g-1.i386
> [root at frank-00 linux]# locate libncurses.so
> /usr/lib/libncurses.so.5
> /usr/lib/libncurses.so.5.4
> /usr/lib/libncurses.so
> [root at frank-00 linux]#
>
> I have a newer version of ncurses,
>
> Tried it with a src.rpm get:
>
> [root at frank-00 linux]# rpm -i cfdisk-glibc-0.8g-1.src.rpm
> error: source package contains no .spec file
> [root at frank-00 linux]#
>
> How can I get over this hurdle FC3

Just took a quick look at the rpm for you and it appears that is has a .specs
file instead of a .spec.

$ rpm2cpio cfdisk-glibc-0.8g-1.src.rpm | cpio -id

should give you the following files
cfdisk-0.8g.tar.gz
cfdisk-0.8g.specs
cfdisk-0.8g.diff


cp the tarball and diff file to the SOURCES directory that you use,

If you need to setup a build area as a user see the end of this mail for
details.

cp the cfdisk-0.8g.specs to the spec folder and rename to cfdisk-0.8g.spec

after that it should be just a case of rpmbuild -ba specs/cfdisk-0.8g.spec




---- asside ------
I recommend setting up a build area under a normal user and put a .rpmmacros
file in the home directory of the user, better security practice

Then exit the file and add in the following details

#
# Macros for using rpmbuild
#
%_topdir      path_to_build_dir e.g. /home/user/build_area
%_rpmtopdir   %{_topdir}
%_tmppath     %{_rpmtopdir}/tmp
%buildroot    %{_rpmtopdir}/root/
%_builddir    %{_rpmtopdir}/build/
%_sourcedir   %{_rpmtopdir}/src/
%_specdir     %{_rpmtopdir}/specs/
%_rpmdir      %{_rpmtopdir}/rpms
%_srcrpmdir   %{_rpmdir}/srpms
%packager     youremailaddress at somewhere.com
%vendor       Company Name
%distribution Fedora Core 3
%url          homepage
%_unpackaged_files_terminate_build  0
%_missing_doc_files_terminate_build  0


Then create the following directories, assuming you use /home/user/build_area

/home/user/build_area
/home/user/build_area/tmp
/home/user/build_area/root
/home/user/build_area/build
/home/user/build_area/src
/home/user/build_area/specs
/home/user/build_area/rpms/srpms


note you can accieve the same results by putting the .rpmmacros file under a
subdirectory outside of home provided when calling rpm or rpmbuild to work with
this build area you specify the HOME variable to use when searching for this
file.

i.e.

file at /home/user/rpms/.rpmmacros

$ HOME=/home/user/rpms/ rpmbuild -bb specs/cfdisk-0.8g.spec

This will pick up the .rpmmacros file and use the values specified by it.


----- end asside -----------

--
Darragh

"Nothing's foolproof to a sufficently talented fool"



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell