Bug 215820 - appling the chroot patch to openssh-4.9_p1 fails
Bug#: 215820 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: gentoo@cybertinus.nl
Component: Applications
URL: 
Summary: appling the chroot patch to openssh-4.9_p1 fails
Keywords:  
Status Whiteboard: 
Opened: 2008-04-02 07:06 0000
Description:   Opened: 2008-04-02 07:06 0000
When I try to upgrade OpenSSH to version 4.9_p1 the emerge process failes, when
it tries to apply the chroot patch to it.

Reproducible: Always

Steps to Reproduce:
1. allow to install the ~amd64 version
2. run the command 'emerge openssh'

Actual Results:  
It fails with the message that applying the patch has failed.

Expected Results:  
The patch should be applied and OpenSSH should be updated to version 4.9_p1.

# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2,
2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Wed, 02 Apr 2008 06:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18.50.0.5
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.2
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_GB en_US nl"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/php-testing /usr/local/layman/berkano
/usr/local/layman/php-experimental /root/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 apache2 bash-completion berkdb cairo cdr cli cracklib
crypt cups dbus dga doc dri dvd dvdr dvdread emboss encode evo fam firefox
fortran gdbm gif glitz gpm gstreamer hal iconv ipv6 isdnlog jpeg kde kipi mad
midi mikmod mmx mmxext mp2 mp3 mpeg mudflap mysql ncurses nls nptl nptlonly
nvidia ogg opengl openmp oss pam pcre pdf perl png postgres pppd python qt qt3
qt3support qt4 quicktime readline reflection sdl server session spell spl
sqlite sse sse2 sse3 ssl ssse3 svg tcpd threads tiff tk truetype unicode
vim-syntax vorbis x264 xinerama xml xorg xv zlib" ALSA_CARDS="ali5451 als4000
atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968
fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi
null plug rate route share shm softvol" APACHE2_MODULES="actions alias
auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file
authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user
autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache
filter headers ident imagemap include info log_config logio mem_cache mime
mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http
rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="en en_GB en_US nl" USERLAND="GNU" VIDEO_CARDS="(-apm) (-ark)
(-chips) (-cirrus) (-cyrix) (-dummy) (-fbdev) (-glint) (-i128) (-i810) (-mga)
(-neomagic) nv (-rendition) (-s3) (-s3virge) (-savage) (-siliconmotion) (-sis)
(-sisusb) (-tdfx) (-tga) (-trident) (-tseng) (-v4l) vesa vga (-via) vmware
(-voodoo) (-epson) (-fglrx) (-i740) (-impact) (-imstt) (-mach64) (-mga)
(-newport) (-nsc) nvidia (-r128) (-radeon) (-sunbw2) (-suncg14) (-suncg3)
(-suncg6) (-sunffb) (-sunleo) (-suntcx)"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I don't file a bugreport very often, so if you need any more information,
please tell me, so I can supply it.

------- Comment #1 From Cybertinus 2008-04-02 07:08:23 0000 -------
Created an attachment (id=148055) [details]
The error said to include this file in the bugreport, so here it is :)

------- Comment #2 From Cybertinus 2008-04-02 07:09:51 0000 -------
Created an attachment (id=148056) [details]
This is the build log

------- Comment #3 From Cybertinus 2008-04-02 07:10:20 0000 -------
Created an attachment (id=148058) [details]
The ebuild environment file

------- Comment #4 From Ben de Groot 2008-04-02 15:43:17 0000 -------
*** Bug 215900 has been marked as a duplicate of this bug. ***

------- Comment #5 From Charles Clément 2008-04-02 16:37:02 0000 -------
Same bug on ~x86 arch.

------- Comment #6 From Charles Clément 2008-04-02 17:02:00 0000 -------
As said Sergey Dryabzhinsky in Bug 215900, the patch doesn't seem to be needed
any more, as chroot support as been added upstream.
Maybe we should drop the chroot USE flag in this case.

------- Comment #7 From Jaak Ristioja 2008-04-02 18:52:13 0000 -------
Therefore the chroot USE-flag should be removed from the ebuild.

------- Comment #8 From SpanKY 2008-04-02 21:01:17 0000 -------
USE=chroot dropped

------- Comment #9 From Dmitriy Bogun 2009-02-08 23:10:27 0000 -------
Very bad...

Internal ChrootDirectory have less abilities in compare to the chroot patch.
Wth patch I can set chroot path individually for each user and assign them to
predefined sandboxes. With internal chroot support I can't do that.

sadly...