[MacPorts] #20862: screen port fails to compile under Snow Leopard 10.6
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- This ticket is essentially a resurrection of #13009, except it's for Snow Leopard instead of Leopard this time. Install attempt output: {{{ t# port install screen ---> Computing dependencies for screen ---> Building screen Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_screen/work/screen-4.0.3" && /usr/bin/make -j2 all " returned error 2 Command output: utmp.c:499: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c: At top level: utmp.c:639: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c:668: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c:678: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c: In function 'getutslot': utmp.c:682: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c: In function 'pututslot': utmp.c:691: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c: In function 'makedead': utmp.c:710: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) utmp.c: In function 'makeuser': utmp.c:725: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) /usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 loadav.c In file included from screen.h:144, from loadav.c:41: display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) In file included from screen.h:145, from loadav.c:41: window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) /usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 pty.c In file included from screen.h:144, from pty.c:30: display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) In file included from screen.h:145, from pty.c:30: window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96) pty.c:38:26: error: sys/stropts.h: No such file or directory make: *** [pty.o] Error 1 make: *** Waiting for unfinished jobs.... Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/20862> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by toby@…): Just need to pull patches from http://www.opensource.apple.com/source/screen/screen-16/ I'll get around to it eventually, but there isn't really much reason to use screen from MacPorts on Snow Leopard. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by mina.macports@…): Replying to [comment:1 toby@…]:
Just need to pull patches from http://www.opensource.apple.com/source/screen/screen-16/
I'll get around to it eventually, but there isn't really much reason to use screen from MacPorts on Snow Leopard.
Actually there is. The screen that ships with Leopard, and Snow Leopard, is buggy. It simply refuses to remember the current directory. Every new window started within a screen session starts in ~, no matter what the original directory was when screen was started. Just googled it actually, and people have been coming up with some [http://code.google.com/p/silassewell/wiki/ScreenOSX nasty hacks] to work around that problem. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => digdog@… -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by toby@…): Replying to [comment:2 mina.macports@…]:
The screen that ships with Leopard, and Snow Leopard, is buggy.
It simply refuses to remember the current directory.
Every new window started within a screen session starts in ~, no matter what the original directory was when screen was started.
Just googled it actually, and people have been coming up with some [http://code.google.com/p/silassewell/wiki/ScreenOSX nasty hacks] to work around that problem.
I cannot reproduce this issue. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by toby@…): Also... where did the giant list of cc'd people come from? -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by xmitchx@…): Replying to [comment:6 toby@…]:
Also... where did the giant list of cc'd people come from?
I'm not sure, but I was on the python26 ticket (#20284) and it looks like someone copied my email address over to this ticket when, although I use screen and I'm interested, is not nearly blocking to me as the python26 issue is. I've removed myself. Please don't cherrypick my email and CC me on random tickets. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by tomvons@…): Odd, I was on the python26 ticket as well... though I actually have an interest in this ticket, coincidentally enough. I have the same problem/motivation as mina.macports@, no matter where I start screen, new windows open in ~ and not in the directory I started screen in. This was the same for 10.5 as well, which is my only motivation for installing screen from ports. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by toby@…): Someone who can reproduce this, please provide more detailed steps. screen definitely preserves the working directory for me, and there's nothing particularly interesting about my shell setup. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by toby@…): (on Snow Leopard... not interested in Leopard) -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 ----------------------------------------------------+----------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: screen snow leopard 10.6 sys stropts.h | Port: screen ----------------------------------------------------+----------------------- Comment(by tomvons@…): Try adding this to your ~/.screenrc: {{{ shell -$SHELL }}} Without that line, it works as it should (though screen from macports and screen on ubuntu and debian systems don't have a problem with it). -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 -------------------------------------+-------------------------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: screen -------------------------------------+-------------------------------------- Changes (by jmr@…): * cc: mcalhoun@…, kentk@…, mike@…, alexguo@…, tamyrvoll@…, john+macports@…, joshua_anderson@…, faisal.moledina@…, benjaminkreeger@…, m@…, andrius.laikina@…, dizzyd@…, treaves@…, shrift@…, tannhaus@… (removed) * cc: tharant@… (added) * keywords: screen snow leopard 10.6 sys stropts.h => snowleopard Comment: Cleaning up after cc malfunction. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 -------------------------------------+-------------------------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: screen -------------------------------------+-------------------------------------- Comment(by mccune.jeff@…): I created the patch based on the patches located at http://www.opensource.apple.com/source/screen/screen-16/patches/ and {{{vproc_priv.h}}} from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h?re... Apply the patch using {{{patch -p1 < screen-4.0.3-snowleopard.patch}}}. Here's how I've compiled screen while MacPorts is updated: {{{./configure --enable-locale --enable-telnet --enable-colors256 --enable-rxvt_osc --prefix=/usr/local}}} Enjoy. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 -------------------------------------+-------------------------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: screen -------------------------------------+-------------------------------------- Comment(by dports@…):
attachment patch-screen.diff added
Patch for Snow Leopard
In case you missed my message on irc -- I'm using this patch now and screen builds and runs correctly with it. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:30> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 --------------------------------------+------------------------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: snowleopard Port: screen | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: new => closed * resolution: => fixed Comment: Committed Rainer's patch in r62349. Thanks. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:31> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 --------------------------------------+------------------------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: | Keywords: snowleopard Port: screen | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: closed => reopened * resolution: fixed => Comment: This breaks the build on Leopard. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:32> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20862: screen port fails to compile under Snow Leopard 10.6 --------------------------------------+------------------------------------- Reporter: mina.macports@… | Owner: digdog@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: snowleopard Port: screen | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Fixed Leopard in r62355. -- Ticket URL: <http://trac.macports.org/ticket/20862#comment:33> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts