Fulko Hew wrote: > If I have a project that I've inherited, and when I > run it's make install it scatters files all over the filesystem... Oh fun... > Is there an easy way of finding out what files went where, > in order to come up with the list of files to put into the %files section? Look into 'checkinstall'. I have not personally used it but many people report it as a good tool for this application. http://www.asic-linux.com.mx/~izto/checkinstall/ I usually create two chroots, install in one, diff between the two chroots, and determine what happened based upon that process. Of course that works pretty well but may be more work than some people want to put into things. I assume checkinstall makes this easier. > The project uses 'configure' and I thought I could adjust > the -prefix option to 'install' the project into a 'jail' directory > that I could just then scan, but the -prefix value tends > to be used inside the applications to 'know where they > were installed'. One: If it is a reasonable set of autotools then setting DESTDIR will override the installation root. Look to see if that is available. If so then that is definitely the better of the two things to set. Two: There is configure time, build time, and install time. You can probably configure normally but then at installation time override prefix with 'make install prefix=/var/tmp/imagedir' and since everything is already compiled and configured and only installation is happening it should install into the prefix directory with everything configured for the runtime directory. > There has to be an easy way! > How does everyone else do it? I always use %makeinstall in rpm spec files and ensure that the system's %configure and %makeinstall are reasonable. Outside of spec files I always use DESTDIR when possible. Bob _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list