Opened 15 years ago
Closed 15 years ago
#20862 closed defect (fixed)
screen port fails to compile under Snow Leopard 10.6
Reported by: | mina.macports@… | Owned by: | digdog@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | snowleopard | Cc: | tomvons@…, hiro.qli+macports@…, tharant@…, mcamou@…, bgrupe27, mccune.jeff@…, arturoc@…, greg@…, sck-nogas (Scott C. Kennedy), nan.liu@…, nerdling (Jeremy Lavergne), 858wildcat@…, fracai, drkp (Dan Ports), ryandesign (Ryan Carsten Schmidt) |
Port: | screen |
Description
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.
Attachments (2)
Change History (35)
comment:1 follow-up: 2 Changed 15 years ago by tobypeterson
comment:2 follow-up: 5 Changed 15 years ago by mina.macports@…
Replying to 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 nasty hacks to work around that problem.
comment:3 Changed 15 years ago by tharant@…
Cc: | mcalhoun@… kentk@… mike@… alexguo@… robin@… lstoll@… tamyrvoll@… john+macports@… joshua_anderson@… huahang.liu@… faisal.moledina@… tomvons@… benjaminkreeger@… m@… andrius.laikina@… dizzyd@… xmitchx@… treaves@… shrift@… tannhaus@… added |
---|
Cc Me!
comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to digdog@… |
---|
comment:5 Changed 15 years ago by tobypeterson
Replying to 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 nasty hacks to work around that problem.
I cannot reproduce this issue.
comment:6 follow-up: 8 Changed 15 years ago by tobypeterson
Also... where did the giant list of cc'd people come from?
comment:8 Changed 15 years ago by xmitchx@…
Replying to 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.
comment:9 Changed 15 years ago 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.
comment:11 Changed 15 years ago by tobypeterson
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.
comment:13 Changed 15 years ago 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).
comment:17 Changed 15 years ago by jmroot (Joshua Root)
Cc: | tharant@… added; mcalhoun@… kentk@… mike@… alexguo@… tamyrvoll@… john+macports@… joshua_anderson@… faisal.moledina@… benjaminkreeger@… m@… andrius.laikina@… dizzyd@… treaves@… shrift@… tannhaus@… removed |
---|---|
Keywords: | snowleopard added; screen snow leopard 10.6 sys stropts.h removed |
Cleaning up after cc malfunction.
Changed 15 years ago by mccune.jeff@…
Attachment: | screen-4.0.3-snowleopard.patch added |
---|
Patch to compile screen-4.0.3 in Mac OS X Snow Leopard
comment:20 Changed 15 years ago 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?rev=23880
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.
Changed 15 years ago by raimue (Rainer Müller)
Attachment: | patch-screen.diff added |
---|
Patch for Snow Leopard
comment:30 Changed 15 years ago by drkp (Dan Ports)
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.
comment:31 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Committed Rainer's patch in r62349. Thanks.
comment:32 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This breaks the build on Leopard.
comment:33 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed Leopard in r62355.
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.