[91311] trunk/dports/net/mosh/Portfile
Ryan Schmidt
ryandesign at macports.org
Thu Mar 29 07:18:04 PDT 2012
On Mar 29, 2012, at 09:03, Quentin Smith wrote:
> On Thu, 29 Mar 2012, Ryan Schmidt wrote:
>
>> If you don't think the -lpoll part of that line was needed, I'm happy to remove the line. I'll give it a quick test without that line on a Leopard machine.
>
> There's an autoconf test that picks up the -lpoll. It just needed to be there because poll_LIBS was overridden to have the library path.
>
> Please note that mosh will still build without linking the -lpoll from the poll-emulator port; it will fail at runtime.
>
> If you're running a local sshd, you can test with "mosh localhost". (If your locale is not UTF-8, as it seems to not be on my test Leopard machine, you might want 'env LC_ALL=en_US.UTF-8 mosh --server="env LC_ALL=en_US.UTF-8 mosh-server" localhost'). You should get a shell. C-^ . to exit. If mosh exits immediately, you're instead linking against the system's libpoll.
>
> I did test it on my Leopard machine, and it appeared to build correctly without that line.
Thanks for the instructions. It works fine for me without the line, so I removed it in r91315. I also changed poll-emulator from depends_build to depends_lib, since as you point out it is linking with libpoll.dylib.
More information about the macports-dev
mailing list