Ticket #25 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Add DESTDIR support to allow users to install parallel-netcdf to stage directory

Reported by: sunpoet@… Owned by: robl
Priority: major Milestone:
Component: parallel-netcdf Version: 1.8.0
Keywords: Cc:

Description

Add DESTDIR support to allow users to install parallel-netcdf to stage directory [1].

from [1]: The stage directory support means that a port does not install directly into the destination directories, but instead into a separate directory (automake packages call this DESTDIR) from which the package is then built - in many cases, this does not require root privileges. If enabled for a port, the package is first built, installed into the STAGEDIR, packaged, and then installed from the package.

I'm maintainer of parallel-netcdf port in FreeBSD Ports tree. I patch Makefile.in and rules.make in order to support DESTDIR [2][3].

That is to change install destination:

$(BINDIR) -> $(DESTDIR)$(BINDIR)

$(INCDIR) -> $(DESTDIR)$(INCDIR)

$(LIBDIR) -> $(DESTDIR)$(LIBDIR)

I hope this can be added upstream instead of local patch in our ports tree. Thanks.

[1] https://wiki.freebsd.org/ports/StageDir

[2] https://svnweb.freebsd.org/ports/head/science/pnetcdf/Makefile?revision=429011&view=markup

[3] https://svnweb.freebsd.org/ports/head/science/pnetcdf/files/patch-rules.make?revision=427958&view=markup

Change History

comment:1 Changed 3 years ago by wkliao

  • Status changed from new to closed
  • Version changed from 1.7.0 to 1.8.0
  • Resolution set to fixed

This has been added. See r2745. Thanks for the suggestion.

Note: See TracTickets for help on using tickets.