[MacPorts] #22716: Build and Use Macports on a Linux System
MacPorts
noreply at macports.org
Sat Nov 28 12:27:59 PST 2009
#22716: Build and Use Macports on a Linux System
-----------------------------------+----------------------------------------
Reporter: mmpestorich@… | Owner: macports-tickets@…
Type: request | Status: new
Priority: Not set | Milestone: MacPorts Future
Component: base | Version: 1.8.99
Keywords: linux | Port:
-----------------------------------+----------------------------------------
I recently got the trunk to compile on my Linux system and thought I would
share the few things I had to do in order to get it to do so.
I created a patch that adds strlcpy() to
[source:/trunk/base/src/pextlib1.0/tracelib.c pextlib1.0/tracelib.c] and
sysctlbyname() to [source:trunk/base/src/macports1.0/sysctl.c
macports1.0/sysctl.c]. These C Library functions are available in BSDs but
not in Linux. I pulled these implementations from OpenBSD.
After a successful ''make'' and ''make install'', running the ''port''
command would segfault on {{{unsetenv *}}} in
[source:/trunk/base/src/port1.0/portutil.tcl port1.0/portutil.tcl] on
[source:/trunk/base/src/port1.0/portutil.tcl at 60372#L394 Line #394].
So I simply removed the line of code (probably not the best fix):
{{{
sed -i "s:unsetenv \*::" ${PREFIX}/share/macports/Tcl/port1.0/portutil.tcl
}}}
Seems to run with no problems.
Don't know if anyone would be interested in any of this and not sure that
creating a ticket is the right place for this information, but it would be
nice to see macports supported on the linux platform as it's a fantastic
package management tool.
--
Ticket URL: <http://trac.macports.org/ticket/22716>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list