Hi,
As part of a Portfile I am writing, I need to install a Ruby gem, so I have
added this build block:
build {
system ${prefix}/bin/gem-1.8 install CFPropertyList
}
This fails, because without root privileges, the gem cannot be installed.
However if I change the build block to use sudo:
On Tuesday December 09 2014 23:11:44 Behrang Saeedzadeh wrote:
As part of a Portfile I am writing, I need to install a Ruby gem, so I have
added this build block:
Is that a build dependency or a part of the port for which you're writing the
Portfile? If the former, you'd have to write a port
On Dec 9, 2014, at 6:11 AM, Behrang Saeedzadeh wrote:
As part of a Portfile I am writing, I need to install a Ruby gem, so I have
added this build block:
build {
system ${prefix}/bin/gem-1.8 install CFPropertyList
}
This fails, because without root privileges, the gem cannot
I did invoke the port with sudo, but somehow didn't get passed to the
system command.
Here's my Portfile:
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil;
c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 124084 2014-08-18 17:05:27Z
On Dec 9, 2014, at 8:03 AM, Behrang Saeedzadeh wrote:
I did invoke the port with sudo, but somehow didn't get passed to the
system command.
That is correct. MacPorts drops privileges to the unprivileged macports user
to prevent portfiles from doing things to areas of the disk they're not