[HEADSUP] please add DESTDIR support to your packages

Thomas Klausner <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
Hi!

As you've probably noticed, most pkgsrc packages have been converted
and can be built with destdir support; this means that the package
"install" step installs into a temporary installation directory (the
DESTDIR) and a binary package is created from there; the binary
package can then be installed in the usual way (though 'make
package-install' will also do it for you).

To enable destdir support when building packages on your system, set
USE_DESTDIR=yes
in your /etc/mk.conf file.

When developing packages, you should already have PKG_DEVELOPER=yes in
that file; if not, add it now. This will alert you to some common
problems; in particular, PLIST problems.

To convert your packages to destdir support, the simplest method is to
just mark them as converted and pray for the best -- just add
PKG_DESTDIR_SUPPORT=user-destdir
in the package's Makefile. For over 80% of all packages that's all
that's needed.

If you have manual installation steps in the pkgsrc Makefile, you need
to put ${DESTDIR}${PREFIX} when installing (instead of ${PREFIX}).

The guide has some more details in section 19.6.4, "Adding DESTDIR
support to packages".

Non-destdir support will be removed from pkgsrc not that far off, so
please convert your packages if you haven't done so.

Thanks,
 Thomas

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.