Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443932 - app-misc/screen - add USE=static
Summary: app-misc/screen - add USE=static
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-19 16:32 UTC by Alessandro Di Federico
Modified: 2015-10-21 15:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for screen-4.0.3-r6.ebuild to add the static USE flag. (static-screen.patch,1.09 KB, patch)
2012-11-19 16:32 UTC, Alessandro Di Federico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Di Federico 2012-11-19 16:32:00 UTC
Created attachment 329960 [details, diff]
Patch for screen-4.0.3-r6.ebuild to add the static USE flag.

Hello, I often need screen (or tmux) on machines where I don't have root access. Having a static build of screen might be very useful so I wrote a patch for the ebuild.

I don't know if it's a good idea to have this in Portage, take a look at the patch and let me know what you think.
If it looks good I can do the same for tmux and the other available screen's ebuilds.

The only problem is that when I build the static tmux/screen I get these warnings, but as long we're using the same glibc version shouldn't be a problem.

screen.o: In function `main':
screen.c:(.text+0x302e): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
screen.c:(.text+0x305f): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
screen.c:(.text+0x2a22): warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
screen.c:(.text+0x2a58): warning: Using 'endspent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
teln.o: In function `TelConnect':
teln.c:(.text+0x428): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-10-21 14:57:01 UTC
Could you please approach upstream to make the buildsystem properly supporting static builds? As long as we have the fall outs which you described I don't see a chance to bring this into the repo.
Comment 2 Patrice Clement (RETIRED) gentoo-dev 2015-10-21 15:37:55 UTC
Closing as UPSTREAM as per previous comment.