pkgsrc-Users archive

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

Re: pkgsrc/mail/sendmail anomalies

Le 25/12/12 02:05, Greg Troxel a écrit :

Richard PALO <> writes:

USE_DESTDIR is not meant to be set in package.

Well, it don't install unless super-user without this.  How to do this then?

USE_DESTDIR is to be set in mk.conf, to specify if the human running the
machine wants to use DESTDIR mode.  Currently, it's standard to use
DESTDIR mode and beginning to be somewhat unusual not to.

For an individual package, a different variable is used.  From

   * PKG_DESTDIR_SUPPORT has to be set to "none", "destdir", or "user-destdir".
     By default PKG_DESTDIR_SUPPORT is set to "user-destdir" to help catching
     more potential packaging problems. If is included in the
     Makefile, PKG_DESTDIR_SUPPORT needs to be set before the inclusion.

So the package, if it really needs root to build/install, should set

I tried both PKG_DESTDIR_SUPPORT=destdir and =none

Both fail during install with this type of message:

Making install in:
Configuration: pfx=, os=SunOS, rel=5.11, rbase=5, rroot=5.11, arch=i86pc, sfx=, variant=optimized Making in /tmp/pkgsrc/mail/sendmail/work/sendmail-8.14.5/obj.SunOS.5.11.i86pc/sendmail if [ ! -d /tmp/pkgsrc/mail/sendmail/work/.destdir/opt/pkg/share/misc ]; then mkdir -p /tmp/pkgsrc/mail/sendmail/work/.destdir/opt/pkg/share/misc; else :; fi ../../devtools/bin/ -c -o bin -g bin -m 444 helpfile /tmp/pkgsrc/mail/sendmail/work/.destdir/opt/pkg/share/misc/helpfile chown: /tmp/pkgsrc/mail/sendmail/work/.destdir/opt/pkg/share/misc/helpfile: Not owner
*** Error code 1

make: stopped in /tmp/pkgsrc/mail/sendmail/work/sendmail-8.14.5/obj.SunOS.5.11.i86pc/sendmail

Why does it seem to work correctly with USE_DESTDIR=full ?

Home | Main Index | Thread Index | Old Index