Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2011 20:22:04 +0400
From:      Peter Vereshagin <peter@vereshagin.org>
To:        freebsd-questions@freebsd.org
Subject:   portupgrade -P does not 'su'?
Message-ID:  <20111107121418.GA6629@external.screwed.box>

next in thread | raw e-mail | index | archive | help
Hello.

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
/usr/local/lib/compat/pkg

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111107121418.GA6629>