[Darshan-users] Darshan rpm packages

Christopher J. Morrone morrone2 at llnl.gov
Mon Mar 2 15:07:04 CST 2020


Has anyone created rpm packages of Darshan?

Is anyone attached to the current way that Darshan implements DESTDIR?
The current approach does not quite approximate the way that automake
uses DESTDIR.

Is there any particular reason that Darshan avoids using automake?

automake allows a software package to be targeted for final install in
some root tree using "./configure --prefix=/usr/local".  DESTDIR on the
other hand is intended to allow a staged install to some temporary
location, which is a vital step in some packaging systems.

The standard automake DESTDIR usage is described here:

  https://www.gnu.org/software/automake/manual/html_node/DESTDIR.html

Darshan is resetting DESTDIR in its Makefile to an empty value, so it
breaks that standard automake usage.

Darshan is also setting variables like "libdir" to have the DESTDIR
prefix at the beginning of the Makefile.  That may or may not matter in
this case, but normally prepending DESTDIR is reserved for the "install"
make target rather than incorporating into all of the standard path
variables.  The issue is that setting it too early could result in the
temporary DESTDIR path appearing in compiled-in rpaths and the like.

I'll take a first pass at just relocating DESTDIR in the existing
Makefile.in files.

Chris


More information about the Darshan-users mailing list