portupgrade -P does not 'su'?

Peter Vereshagin peter at vereshagin.org
Wed Nov 9 16:22:17 UTC 2011


I'd like to install a port with 'portinstall -P' from a non-root user and it
requires an obvious dependency I already have built to be reused.

But portinstall doesn't seem to brace it into the 'su root -c':

    $ portinstall -vpP devel/p5-Test-Class


    --->  Installing 'p5-Module-Build-0.3800_1' from a package
    --->  Installation of p5-Module-Build-0.3800_1 started at: Mon, 07 Nov 2011 15:57:56 +0400
    --->  Installing the new version via the package
    lib/perl5/5.14.1/man/man3/inc::latest.3.gz: Can't create 'lib/perl5/5.14.1/man/man3/inc::latest.3.gz': Permission denied


    ** Command failed [exit code 2]: /usr/bin/script -qa /tmp/portinstall20111107-84470-1midf4x-0 /usr/bin/env UPGRADE_TOOL=portupgrade UPGRADE_PORT=p5-Module-Build-0.3800_1 UPGRADE_PORT_VER=0.3800_1 /usr/sbin/pkg_add -f /usr/ports/packages/All/p5-Module-Build-0.3800_1.tbz

It does use to be all ok with 'pkg_delete ... make install' sequence though.

Any clues?

ps. Same goes here about copying the obsoleted shared libraries to

Peter Vereshagin <peter at vereshagin.org> (http://vereshagin.org) pgp: A0E26627 

More information about the freebsd-questions mailing list