LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2004, 09:18 PM   #1
HCLogo
Member
 
Registered: Apr 2004
Location: Ontario, Canada
Distribution: Kubuntu (KDE 4.1)
Posts: 59

Rep: Reputation: 15
Question Building RPM's - Finding dependancies?


I'm trying to learn how to build RPM's from source (usually .tar.gz). I have downloaded and installed "checkinstall", since it looks like it will make this process much easier, however I find myself running into a brick wall when trying to build the RPM. Is there a way to determine which packages are needed in order to build the RPM?

I realize this post may be a little confusing to follow, so let me know if you need any clarification.

Thanks,
HCLogo
 
Old 05-18-2004, 09:29 PM   #2
HCLogo
Member
 
Registered: Apr 2004
Location: Ontario, Canada
Distribution: Kubuntu (KDE 4.1)
Posts: 59

Original Poster
Rep: Reputation: 15
In case you were wondering.. This is the error that checkinstall produces when trying to build an RPM for superkaramba.

(configure and make worked fine)


// Error Message Starts Here //

Building target platforms: i386
Building for target i386
Processing files: superkaramba-0.33-1
Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides
Using BuildRoot: /home/chris/superkaramba-0.33/buildroot to search libs
Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /home/chris/superkaramba-0.33/build
root i386
Provides: superkaramba
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: libart_lgpl_2.so.2 libaudio.so.2 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libDCOP.so.
4 libdl.so.2 libexpat.so.0 libfam.so.0 libfontconfig.so.1 libfreetype.so.6 libgcc_s.so.1 libGL.so.1 libICE.s
o.6 libjpeg.so.62 libkdecore.so.4 libkdefx.so.4 libkdesu.so.4 libkdeui.so.4 libkio.so.4 libmng.so.1 libm.so.
6 libpng.so.3 libpthread.so.0 libpython2.3.so.1.0 libqt-mt.so.3 libresolv.so.2 libSM.so.6 libstdc++.so.5 lib
stdc++.so.5(GLIBCPP_3.2) libutil.so.1 libX11.so.6 libXcursor.so.1 libXext.so.6 libXft.so.2 libXinerama.so.1
libXi.so.6 libXmu.so.6 libXpm.so.4 libXrandr.so.2 libXrender.so.1 libXt.so.6 libz.so.1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/chris/superkaramba-0.33/buildroot
error: Installed (but unpackaged) file(s) found:



RPM build errors:
Installed (but unpackaged) file(s) found:

// Error Message Ends Here //


Any help at all would be greatly appreciated.
 
Old 08-25-2004, 07:27 AM   #3
mkaman
Member
 
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Rep: Reputation: 16
I have suffered the same error. It's due to a new behaviour in the latest version of rpm. This checks files that are instaled but not are included in the package to prevent mismatches between builds.

But this is really and inconvenience. I'm building an rpm for pygtk-2.2 and it complained about files created by the install. But these files are created in that process. They are not meant to be included in the rpm.

So you can solve it adding this macros:
%_unpackaged_files_terminate_build 0
%_missing_doc_files_terminate_build 0

This enable the backward compatibility mode.
You can put it in this file $HOME/.rpmmacros and make it global or you can put it in each spec file to make it local to each build. Beware about global options, maybe that can crash some builds but help you in others.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building RPM's - Finding dependancies? HCLogo Linux - Software 0 05-20-2004 02:05 PM
Upgrading Software by Building new RPM's farmerdan Linux - General 2 03-28-2004 11:29 AM
Upgrading Software by Building new RPM's farmerdan Linux - General 2 03-28-2004 07:13 AM
On boot: hangs at "finding module dependancies...." djeyeless Mandriva 4 03-05-2004 09:54 AM
Building RPM's from Sources in RH 7.3 MgF Linux - Newbie 2 02-03-2003 12:36 AM


All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration