[MacPorts] #17342: MacPorts - new port - shells/osh
MacPorts
noreply at macports.org
Sun Nov 23 08:07:18 PST 2008
#17342: MacPorts - new port - shells/osh
--------------------------------+-------------------------------------------
Reporter: jan+mp@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Submissions
Component: ports | Version: 1.6.0
Keywords: | Port: osh
--------------------------------+-------------------------------------------
Comment(by jan+mp@…):
> Hmm, a trunk-based MacPorts (what will be 1.7) doesn't like INSTALL
being set in destroot.args but env works fine.
Both work fine in 1.6.
So, let's use the env version to cover both.
Thus, the destroot phase is OK.
> ... how about not having configure at all and moving the build stuff to
just the build phase, as it does appear to simplify things a bit.
I agree, but there is one catch.
{{{
build.args PREFIX=${prefix}
}}}
...
At least in 1.6, build phase PREFIX=... gets overwritten by the +universal
build.args when doing a
{{{
port install osh +universal
}}}
...
Using build.pre_args globally avoids this conflict.
To have a valid osh installation, PREFIX and SYSCONFDIR cannot get lost in
the build phase.
I have attached Portfile.jan with this fix.
Native (non-universal) installation example and results follow (debug log
attached).
{{{
% sudo fd2 port -d install osh > jan_install_osh.log
% port installed osh
The following ports are currently installed:
osh @20081122_0 (active)
% file /opt/local/bin/osh
/opt/local/bin/osh: Mach-O executable i386
% strings /opt/local/bin/osh | grep /opt/local/etc
/opt/local/etc/osh.logout
/opt/local/etc/osh.oshrc
/opt/local/etc/osh.login
}}}
Universal installation example and results follow (debug log attached).
{{{
% sudo fd2 port -d install osh +universal > jan_install_osh_universal.log
% port installed osh
The following ports are currently installed:
osh @20081122_0+universal (active)
% file /opt/local/bin/osh
/opt/local/bin/osh: Mach-O universal binary with 2 architectures
/opt/local/bin/osh (for architecture i386): Mach-O executable i386
/opt/local/bin/osh (for architecture ppc7400): Mach-O executable ppc
% strings /opt/local/bin/osh | grep /opt/local/etc
/opt/local/etc/osh.login
/opt/local/etc/osh.oshrc
/opt/local/etc/osh.logout
}}}
Before fixing w/ build.pre_args, the output from grep was zero length w/
an exit status of 1.
--
Ticket URL: <http://trac.macports.org/ticket/17342#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list