pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[HEADSUP] please add DESTDIR support to your packages



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® 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
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index