It is currently Tue, 21 May 2013 13:43:00 GMT



 
Author Message
 Building RPM packages: How to find which files to install from source?
Hi,

I started taking a look at how to build RPM packages from source
tarballs, and it works fine when installing non-binary stuff (eg.
documentation files.)

Thing is, the %files is supposed to list all the files that the
package must install. I took a look at a Makefile and sub-directories
once I compiled the binary file... but what a mess.

Is the standard way to run "make install", and watch what happens, and
then copy/paste this file list?

Thx
FF.



 Wed, 18 Jun 1902 08:00:00 GMT   
 Building RPM packages: How to find which files to install from source?

Yep. Making the RPM is some kind of a mess. But nice when you have to
install a program on the fourth workstation.

Well.. I would look in an existing .src.rpm - and perhaps reuse a lot of
the .spec-file.

But different programs use different methods for placing the files in
$RPM_BUILD_ROOT ('make install DESTDIR=$RPM_BUILD_ROOT', 'make install
prefix=$RPM_BUILD_ROOT' etc.). You will have to figure this out - probably
by running some commands and see what happen...

--
Rasmus B?g Hansen



 Fri, 23 May 2003 12:13:51 GMT   
 Building RPM packages: How to find which files to install from source?
On Mon, 4 Dec 2000 05:13:51 +0100,
=?ISO-8859-1?Q?Rasmus_B=F8g_Hansen?= <moffes...@amagerkollegiet.dk>
wrote:
But, I'd like to know how to build RPMs whenever I find a new piece of
SW for which no RPM is yet available :-)

Looks like hell: find exactly which files are installed, find which
system configuration files are updated (if any), and find all
dependencies...

Thx
FF.



 Wed, 18 Jun 1902 08:00:00 GMT   
 Building RPM packages: How to find which files to install from source?

The standard method is to do:

  touch /tmp/foo
  make install
  find / -cnewer /tmp/foo > /tmp/listOfFiles

But of course, you could do the install to a subdir of your choosing
instead, if the PREFIX variable is implemented in the makefile. The
method above is merely the generic one.

Peter



 Wed, 18 Jun 1902 08:00:00 GMT   
 Building RPM packages: How to find which files to install from source?
On Mon, 4 Dec 2000 21:01:45 +0100, "Peter T. Breuer"

Thx, but it only covers the files that are installed by the compiled
tarball. It doesn't deal with patches I have to create in case it
needs to add its own stuff in existing configuration files (eg. adding
itself to /etc/inetd.conf), and the specific dependencies it needs.

Thx
FF.



 Wed, 18 Jun 1902 08:00:00 GMT   
 Building RPM packages: How to find which files to install from source?

There is no way of finding such things unless you know a little of how
the makefile works. You can use the technique I gave as a base, for example.
For every directory that has changed, and every file within it that is new,
check for the existence of a file.orig that the makefile saved, and patch
against it.  If it didn't save the original, tough luck. Sue the author.

And the PREFIX method does cover your objection.

Peter



 Wed, 18 Jun 1902 08:00:00 GMT   
 
   [ 6 post ] 

Similar Threads

1. Help with installing source code package using RPM

2. help in source rpm build/install

3. rpm: not found 'packages.rpm'

4. installing RPM (RedHat Package Manager) packed files

5. Compare rpm files to installed packages

6. Permissions problems on files installed by RPM package

7. Where to install TeX input files in TeX-related rpm package

8. Newbie question....installing packages from an RPM file?

9. rpm -e reports rpm package not installed


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software