Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366643 - net-misc/openssh-5.8_p2 openssh-lpk-5.7p1-0.3.13.patch fails to apply
Summary: net-misc/openssh-5.8_p2 openssh-lpk-5.7p1-0.3.13.patch fails to apply
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 366705 366847 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-09 20:25 UTC by Alexander Bartha
Modified: 2011-05-16 02:31 UTC (History)
16 users (show)

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


Attachments
replacement patch (openssh-lpk-5.8p2-0.3.13.patch.gz,17.19 KB, patch)
2011-05-10 19:01 UTC, Markus Peloquin
Details | Diff
gzipped replacement patch (openssh-lpk-5.8p2-0.3.13.patch.gz,17.19 KB, application/octet-stream)
2011-05-10 19:10 UTC, Markus Peloquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bartha 2011-05-09 20:25:08 UTC
openssh-5.8_p2 fails to compile during openssh-lpk-5.7p1-0.3.13.patch.

Emerging (1 of 1) net-misc/openssh-5.8_p2
 * openssh-5.8p2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * openssh-5.8p1-hpn13v11.diff.gz RMD160 SHA1 SHA256 size ;-) ...        [ ok ]
 * openssh-lpk-5.7p1-0.3.13.patch.gz RMD160 SHA1 SHA256 size ;-) ...     [ ok ]
 * Package:    net-misc/openssh-5.8_p2
 * Repository: gentoo
 * Maintainer: robbat2@gentoo.org base-system@gentoo.org
 * USE:        X elibc_glibc hpn kernel_linux ldap pam tcpd userland_GNU x86
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking openssh-5.8p2.tar.gz to /var/tmp/portage/portage/net-misc/openssh-5.8_p2/work
>>> Unpacking openssh-5.8p1-hpn13v11.diff.gz to /var/tmp/portage/portage/net-misc/openssh-5.8_p2/work
>>> Unpacking openssh-lpk-5.7p1-0.3.13.patch.gz to /var/tmp/portage/portage/net-misc/openssh-5.8_p2/work
>>> Source unpacked in /var/tmp/portage/portage/net-misc/openssh-5.8_p2/work
>>> Preparing source in /var/tmp/portage/portage/net-misc/openssh-5.8_p2/work/openssh-5.8p2 ...
 * Applying openssh-lpk-5.7p1-0.3.13.patch ...

 * Failed Patch: openssh-lpk-5.7p1-0.3.13.patch !
 *  ( /var/tmp/portage/portage/net-misc/openssh-5.8_p2/work/openssh-lpk-5.7p1-0.3.13.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/portage/net-misc/openssh-5.8_p2/temp/openssh-lpk-5.7p1-0.3.13.patch.out

 * ERROR: net-misc/openssh-5.8_p2 failed (prepare phase):
 *   Failed Patch: openssh-lpk-5.7p1-0.3.13.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 3278:  Called epatch '/var/tmp/portage/portage/net-misc/openssh-5.8_p2/work/openssh-lpk-5.7p1-0.3.13.patch'
 *   environment, line 1787:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =net-misc/openssh-5.8_p2',
 * the complete build log and the output of 'emerge -pqv =net-misc/openssh-5.8_p2'.
 * The complete build log is located at '/var/log/portage/net-misc:openssh-5.8_p2:20110509-201731.log'.
 * The ebuild environment file is located at '/var/tmp/portage/portage/net-misc/openssh-5.8_p2/temp/environment'.
 * S: '/var/tmp/portage/portage/net-misc/openssh-5.8_p2/work/openssh-5.8p2'

>>> Failed to emerge net-misc/openssh-5.8_p2, Log file:

>>>  '/var/log/portage/net-misc:openssh-5.8_p2:20110509-201731.log'

Reproducible: Always

Steps to Reproduce:
1.emerge openssh-5.8_p2
2.
3.
Actual Results:  
build fails

Expected Results:  
build works

sudo emerge --info
Password: 
Portage 2.1.9.48 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r4-i686-Intel-R-_Pentium-R-_D_CPU_3.60GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 09 May 2011 19:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amr automount avahi avi bitmap-fonts bluetooth branding bzip2 cairo cdda cdr clamav cli consolekit cracklib cups cxx dbus device-mapper dga divx dri dts dv dvb dvd dvdnav dvdr dvdread eds emboss enca encode esd evo exif extras ffmpeg firefox flac fortran fts3 fuse gdbm gdu gif git glibc-omitfp gmedia gnome gnutls gpm gstreamer gtk gtk2 gvfs hddtemp iconv ipv6 java jpeg jpeg2k lame lcms ldap libkms libnotify live llvm lm_sensors mad matroska mdnsresponder-compat mercurial mmap mmx mng modules mp3 mp4 mpeg mplayer mudflap mysql mythtv nautilus ncurses nls no-helper nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pango pcre pdf perl png pni policykit ppds pppd python qt3support qt4 quicktime radio readline realmedia sasl sdl secure-delete session spell sqlite sse sse2 ssl startup-notification stream subversion svg sysfs tcpd teletext theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb utempter utf8 vcd vidix vlm vorbis wifi win32codecs wmp wps wx x264 x86 xanim xcb xcomposite xine xml xml2 xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ctxfi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Bartha 2011-05-09 20:28:36 UTC
USE flags:

ebuild     U ] net-misc/openssh-5.8_p2 [5.8_p1-r1] USE="X hpn ldap pam tcpd -X509 -kerberos -libedit (-selinux) -skey -static" 0 kB
Comment 2 Klemen Mihevc 2011-05-09 20:49:41 UTC
same issue
Comment 3 genfool 2011-05-10 02:33:37 UTC
I have same error message on ~amd64
emerge --info |wgetpaste
http://paste.pocoo.org/show/386142/
Comment 4 honselas 2011-05-10 02:54:20 UTC
same error for me as well.
http://paste.pocoo.org/show/386150/
Comment 5 hand1977 2011-05-10 06:38:56 UTC
me too...


Failed Patch: openssh-lpk-5.7p1-0.3.13.patch !                                                                                                                                        
 *  ( /var/tmp/portage/net-misc/openssh-5.8_p2/work/openssh-lpk-5.7p1-0.3.13.patch )                                                                                                     
 *                                                                                                                                                                                       
 * Include in your bugreport the contents of:                                                                                                                                            
 *                                                                                                                                                                                       
 *   /var/tmp/portage/net-misc/openssh-5.8_p2/temp/openssh-lpk-5.7p1-0.3.13.patch.out
 * ERROR: net-misc/openssh-5.8_p2 failed (prepare phase):
 *   Failed Patch: openssh-lpk-5.7p1-0.3.13.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 3308:  Called epatch '/var/tmp/portage/net-misc/openssh-5.8_p2/work/openssh-lpk-5.7p1-0.3.13.patch'
 *   environment, line 1817:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =net-misc/openssh-5.8_p2',
 * the complete build log and the output of 'emerge -pqv =net-misc/openssh-5.8_p2'.
 * The complete build log is located at '/var/tmp/portage/net-misc/openssh-5.8_p2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-5.8_p2/temp/environment'.
 * S: '/var/tmp/portage/net-misc/openssh-5.8_p2/work/openssh-5.8p2'
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2011-05-10 07:45:31 UTC
*** Bug 366705 has been marked as a duplicate of this bug. ***
Comment 7 Felix Schäfer 2011-05-10 09:00:15 UTC
Same error here, error log is pretty much the same as already posted.
Comment 8 Pavel Chernyak 2011-05-10 09:59:22 UTC
Same log, same problem.
Comment 9 Ben 2011-05-10 10:21:00 UTC
Not that I think this will help, but of course: "same log, same here (~amd64 too)"
Now this can be maybe more powerful:"What can I do in order to help solving ?" 

(I'll start trying to find this patch and see where it does break actually...)
Comment 10 Daniel Bruce 2011-05-10 15:58:53 UTC
The patch that fails is only needed if you need ldap support in openssh.

Disabling the ldap use flag works for me (if you need ldap support then you'll probably need to wait for the patch file to be updated.  If you just want openssh to compile then this should work for you.
Comment 11 Markus Peloquin 2011-05-10 19:01:03 UTC
Created attachment 272757 [details, diff]
replacement patch

FYI there are enough 'me too' comments here.  I modified the patch for version.h so that it would apply for both -p1 and -p2 patches with/without fuzz.

I changed:

+#define SSH_LPK		"lpk"
 #define SSH_PORTABLE	"p1"
-#define SSH_RELEASE	SSH_VERSION SSH_PORTABLE
+#define SSH_RELEASE	SSH_VERSION SSH_PORTABLE SSH_LPK

To:

 #define SSH_PORTABLE	"p2"
 #define SSH_RELEASE	SSH_VERSION SSH_PORTABLE
+
+#define SSH_LPK		"lpk"
+#undef SSH_RELEASE
+#define SSH_RELEASE	SSH_VERSION SSH_PORTABLE SSH_LPK
Comment 12 Markus Peloquin 2011-05-10 19:10:00 UTC
Created attachment 272759 [details]
gzipped replacement patch

(I gzipped the patch before so it would match the format of the old patch, but I shouldn't have clicked the 'patch' checkbox.)
Comment 13 Ben 2011-05-11 08:50:54 UTC
Dan> the 'ldap' USE flag information is the most valuable information here.

Markus> Interesting to know the 'me too' makes sense (until reached quota)

Just out of curiosity: what is the roadmap now between 'reported bug', fixing, proposed workaround (here) and then --sync release ?
Comment 14 Klemen Mihevc 2011-05-11 09:38:56 UTC
attached patch works.
Comment 15 Cyprien Nicolas (fulax) 2011-05-12 13:12:56 UTC
*** Bug 366847 has been marked as a duplicate of this bug. ***
Comment 16 kenshin767 2011-05-13 22:56:09 UTC
Just a FYI, I also have the same issue on an AMD64 build. As such, I'm adding it to the Arches. Anyone experience this issue with any other arches?
Comment 17 Juergen Rose 2011-05-15 16:00:22 UTC
Removing the ldap flag I can emerge openssh-5.8_p2.
Comment 18 Sven E. 2011-05-15 20:29:20 UTC
In earlier versions of openssh the ebuild used to drop out with an info mesage that ldap support is not ready yet including the info to mask it for the time beeing by adding it to package.mask.

What happened to this option? At least users knew what they could do temporarily. (Of course msking is always an option, but the specific info concerning ldap was useful)
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-05-16 00:53:01 UTC
New final version of the patch in place.

(In reply to comment #18)
> What happened to this option? At least users knew what they could do
> temporarily. (Of course msking is always an option, but the specific info
> concerning ldap was useful)
It only triggers if no patch file is available.