MacPorts without root privileges: how?

James Berry jberry at macports.org
Tue Feb 15 08:23:47 PST 2011


On Feb 15, 2011, at 8:17 AM, Gf B wrote:

> I've read the manual enough to discover that it doesn't tell you how
> to find a port's portfile...  Where is it?  What is it called?
> 
> Should one have to read the entire manual just to find this out?
> 

typing "port file <portname>" will tell you the path to the Portfile.

James


> 
> On Tue, Feb 15, 2011 at 11:14 AM, Lenore Horner
> <LenoreHorner at sbcglobal.net> wrote:
>> It's the list of instructions that tells your computer how to compile and
>> install a port.
>> See http://guide.macports.org/#development and the next section as well.
>>  See
>> also http://trac.macports.org/wiki/FAQ#PortfileDevelopmentandMaintenanceQuestions.
>>  Internals may be helpful http://guide.macports.org/#internals.  Also in the
>> guide, try searching " root".
>> In short, read the manual.
>> 
>> On Feb 15, 2011, at 10:47 AM, Gf B wrote:
>> 
>> Sorry for the ignorant question: what exactly is "the portfile"?
>> 
>> Thanks,
>> 
>> G.
>> 
>> On Tue, Feb 15, 2011 at 9:38 AM, Ben Greenfield <ben at cogs.com> wrote:
>> 
>> On Feb 15, 2011, at 8:32 AM, Gf B wrote:
>> 
>> OK, I installed dbus using +no_startupitem+no_root.  Thank you all for
>> 
>> the pointers to these variants.
>> 
>> No such luck, however, with the postgresql90-server port.  This port
>> 
>> is basically uninstallable without root privileges.  This is highly
>> 
>> annoying to someone who has done dozens of PostgreSQL server
>> 
>> installations before.  I'm sure I can finish this one by hand.
>> 
>> If you work on modifying the portfile to not depend on root that would be
>> 
>> the best approach in my opinion.
>> 
>> It could be it needs a +no_root variant that others could use
>> 
>> 
>> 
>> What I
>> 
>> can't figure out is how to tell MacPorts that this port should be
>> 
>> considered installed and active.
>> 
>> So I return to the question: how to finalize the installation and
>> 
>> activation of a port "by hand"?  What must I do to mark a port as
>> 
>> installed and active?  What tricks/tools can I use to determine what's
>> 
>> left to be done?
>> 
>> Modify the portfile by hand until you get the port installed will meet your
>> 
>> goals and may help others.
>> 
>> Good Luck,
>> 
>> Ben
>> 
>> 
>> Thanks in advance,
>> 
>> G.
>> 
>> _______________________________________________
>> 
>> macports-users mailing list
>> 
>> macports-users at lists.macosforge.org
>> 
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>> 
>> 
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>> 
>> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users



More information about the macports-users mailing list