Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44077 - net-misc/openssh: incomplete USE=static support
Summary: net-misc/openssh: incomplete USE=static support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 14:42 UTC by Sascha Silbe
Modified: 2004-03-09 06:09 UTC (History)
0 users

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


Attachments
patch for openssh-3.7.1_p2-r2.ebuild that fixes USE=static support (openssh-3.7.1_p2-r2.static.patch,562 bytes, patch)
2004-03-08 17:16 UTC, Sascha Silbe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2004-03-08 14:42:07 UTC
net-misc/openssh only gets linked statically against libcrypto, not against all the other libs:

p15138336 x # tar -xjf /usr/portage/packages/All/openssh-3.7.1_p2-r1.tbz2 ./usr/bin/ssh

bzip2: (stdin): trailing garbage after EOF ignored
p15138336 x # ldd usr/bin/ssh
        libutil.so.1 => /lib/libutil.so.1 (0x4001c000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4001f000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4002d000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40042000)
        libc.so.6 => /lib/libc.so.6 (0x4006f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


I need a statically linked ssh for a chroot. It will contain the libs needed for DNS access (glibc is broken - even if linked statically, it dlopen()'s some NSS stuff), but nothing more.



Reproducible: Always
Steps to Reproduce:
1. USE=static emerge --buildpkgonly openssh
2. tar -xjf /usr/portage/packages/All/openssh-3.7.1_p2-r1.tbz2 ./usr/bin/ssh
3. ldd ./usr/sbin/ssh

Actual Results:  
p15138336 x # ldd usr/bin/ssh
        libutil.so.1 => /lib/libutil.so.1 (0x4001c000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4001f000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4002d000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40042000)
        libc.so.6 => /lib/libc.so.6 (0x4006f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)



Expected Results:  
p15138336 x # ldd usr/bin/ssh
        not a dynamic executable



Gentoo Base System version 1.4.3.10p1
Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-thorsten-1)
=================================================================
System uname: 2.4.20-thorsten-1 i686 Intel(R) Celeron(R) CPU 2.00GHz
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm berkdb crypt encode esd foomaticdb gdbm gif gtk2 imlib ipv6 jpeg libg++ libwww mad mikmod mpeg mysql ncurses nls oggvorbis pam pdflib perl png python readline slang spell ssl truetype x86 xml2 zlib"
Comment 1 Sascha Silbe 2004-03-08 17:16:19 UTC
Created attachment 27064 [details, diff]
patch for openssh-3.7.1_p2-r2.ebuild that fixes USE=static support
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2004-03-09 06:09:54 UTC
Soon in CVS, thanks!