Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-18-2004, 09:18 PM   #1
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.

Old 05-18-2004, 09:29 PM   #2
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/ ' ' /usr/lib/rpm/find-provides
Using BuildRoot: /home/chris/superkaramba-0.33/buildroot to search libs
Finding Requires: /usr/lib/rpm/ ' ' /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
4 libICE.s
6 lib
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
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 AM.

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