Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283938 - pkcs11 and hpn patches conflict in =net-misc/openssh-5.2_p1-r3
Summary: pkcs11 and hpn patches conflict in =net-misc/openssh-5.2_p1-r3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 293483 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-07 07:30 UTC by Rebecca Menessec
Modified: 2010-03-13 01:32 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rebecca Menessec 2009-09-07 07:30:08 UTC
If PKCS#11 patches are applied during openssh build process, hpn patches fail immediately.  Package needs at least two sets of hpn patches, including one set that takes PKCS#11 changes into account.

Reproducible: Always

Steps to Reproduce:
Attempt to compile =net-misc/openssh-5.2_p1-r3 with both hpn and pkcs11 USE flags.



 * Applying 4000_possh_pkcs11.patch ...
  [ ok ]
 * Applying 4001_possh_pkcs11-x509.patch ...
  [ ok ]
 * Applying 4100_possh_pkcs11-autoconf.patch ...
  [ ok ]
 * Applying 4101_possh_pkcs11-x509-autoconf.patch ...
  [ ok ]
 * Applying openssh-5.2p1-gsskex-all-20090726.patch ...
  [ ok ]
 * Applying openssh-5.2_p1-gsskex-fix.patch ...
  [ ok ]
 * Applying openssh-5.2p1-hpn13v6.diff.gz ...

 * Failed Patch: openssh-5.2p1-hpn13v6.diff.gz !
Comment 1 Stijn Tintel 2009-10-05 20:21:06 UTC
Same problem here.

taz ~ # cat /etc/portage/package.use/ssh 
net-misc/openssh	hpn X509

>>> Unpacking source...
>>> Unpacking openssh-5.2p1.tar.gz to /var/tmp/portage/net-misc/openssh-5.2_p1-r3/work
>>> Unpacking openssh-5.2pkcs11-0.26.tar.bz2 to /var/tmp/portage/net-misc/openssh-5.2_p1-r3/work
 [32;01m*[0m Applying 1000_all_log.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 1001_all_ssh-agent-log-level.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2000_all_pkcs11-docs.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2001_all_pkcs11-core.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2003_all_pkcs11-scp.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2004_all_pkcs11-scp-man.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2005_all_pkcs11-ssh.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2006_all_pkcs11-ssh-man.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2007_all_pkcs11-ssh-keygen.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2008_all_pkcs11-ssh-keygen-man.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2009_all_pkcs11-agent.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 2010_all_pkcs11-agent-man.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 4000_possh_pkcs11.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 4001_possh_pkcs11-x509.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 4100_possh_pkcs11-autoconf.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 4101_possh_pkcs11-x509-autoconf.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying 1000_all_log.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying openssh-5.2p1+x509-6.2.1.diff.gz ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying openssh-5.2_p1-x509-hpn-glue.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying openssh-3.9_p1-opensc.patch ...
[A[149C  [34;01m[ [32;01mok[34;01m ][0m
 [33;01m*[0m Sorry, X509 and ldap don't get along, disabling ldap
 [32;01m*[0m Applying openssh-5.2p1-hpn13v6.diff.gz ...

 [31;01m*[0m Failed Patch: openssh-5.2p1-hpn13v6.diff.gz !
 [31;01m*[0m  ( /var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/30538.patch )
 [31;01m*[0m 
 [31;01m*[0m Include in your bugreport the contents of:
 [31;01m*[0m 
 [31;01m*[0m   /var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/openssh-5.2p1-hpn13v6.diff.gz-30538.out

 [31;01m*[0m 
 [31;01m*[0m ERROR: net-misc/openssh-5.2_p1-r3 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   49:  Called src_unpack
 [31;01m*[0m             environment, line 3333:  Called epatch '/var/tmp/portage/net-misc/openssh-5.2_p1-r3/distdir/openssh-5.2p1-hpn13v6.diff.gz'
 [31;01m*[0m             environment, line 1805:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m                   die "Failed Patch: ${patchname}!";
 [31;01m*[0m  The die message:
 [31;01m*[0m   Failed Patch: openssh-5.2p1-hpn13v6.diff.gz!
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/environment'.
 [31;01m*[0m 

Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 05 Oct 2009 19:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=core2 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-act
ive/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=core2 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB nl"
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 --ex
clude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/sunrise /usr/local/portage/layman/zugaina /usr/local/portage/layman/rion
 /usr/portage/local/misc"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aio alsa amd64 ao apache2 applet async atm automount avahi bash-completion berkdb bluetooth bonobo branding bzip2 cairo ca
ps cdparanoia cdr cdrkit cli consolekit cracklib crypt cscope css cups curl custom-optimization daap dbus directfb dnotify dri dts dv dvb dvd dvdr emboss eme
rald enca encode examples exif fam fbcon fbsplash ffmpeg flac fontconfig foomaticdb ftp fuse galago gcc4 gcj gconf gdbm gdm gif gimp gimpprint git glib glitz
 gnome gnome-keyring gnome-print gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal hddtemp hfs http iconv idn ieee1394 imagemagick imap ipod iproute
2 ipv6 isdnlog ithreads java java6 jpeg jpeg2k keyring kvm lame laptop lcms ldap libnotify lm_sensors logrotate lua lvm lzma lzo mad matroska midi mikmod mma
p mmx mng modules mono mozbranding mp3 mp4 mpeg mpi mpi-threads msn mtp mudflap multilib mysql nas nautilus ncurses network network-cron networkmanager nfs n
ptl nptlonly nsplugin ntp nvidia obex offensive ogg openal openct openexr opengl openmp pam pcre pcsc-lite pdf perl php pkcs11 plotutils pm-utils pmu png pol
icykit posix ppds pppd prelude pulseaudio python qt3support quicktime rar readline reflection resolvconf rtc samba scanner sdl server session sharedmem slp s
martcard smp snmp sockets socks5 spell spl srt sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink sysfs taglib tcpd tetex theora threads thu
nar thunderbird tiff truetype truetype-fonts udev unicode urandom usb v4l2 vdpau vim vim-syntax vorbis webdav widescreen wifi wma wmf x264 xattr xcb xcomposi
te xforms xfs xinerama xml xml2 xmp xorg xprint xsettings xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="emu10k1x hda-intel" ALSA_PCM_PLUGINS="adpcm alaw a
sym 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" A
PACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_o
wner authz_user autoindex cache 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" APACHE2_MPMS="worker" CAMERAS="ptp2" ELIBC="glibc
" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US e
n_GB nl" USERLAND="GNU" VIDEO_CARDS="dummy nouveau nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 yuk 2009-10-15 07:05:31 UTC
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-misc/openssh-5.2_p1-r3
 * openssh-5.2p1-hpn13v6.diff.gz RMD160 SHA1 SHA256 size ;-) ...          [ ok ]
 * openssh-5.2p1-gsskex-all-20090726.patch RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * openssh-5.2p1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                   [ ok ]
 * openssh-5.2pkcs11-0.26.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...         [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
>>> Unpacking source...
>>> Unpacking openssh-5.2p1.tar.gz to /var/tmp/portage/net-misc/openssh-5.2_p1-r3/work
>>> Unpacking openssh-5.2pkcs11-0.26.tar.bz2 to /var/tmp/portage/net-misc/openssh-5.2_p1-r3/work
 * Applying 1000_all_log.patch ...                                        [ ok ]
 * Applying 1001_all_ssh-agent-log-level.patch ...                        [ ok ]
 * Applying 2000_all_pkcs11-docs.patch ...                                [ ok ]
 * Applying 2001_all_pkcs11-core.patch ...                                [ ok ]
 * Applying 2003_all_pkcs11-scp.patch ...                                 [ ok ]
 * Applying 2004_all_pkcs11-scp-man.patch ...                             [ ok ]
 * Applying 2005_all_pkcs11-ssh.patch ...                                 [ ok ]
 * Applying 2006_all_pkcs11-ssh-man.patch ...                             [ ok ]
 * Applying 2007_all_pkcs11-ssh-keygen.patch ...                          [ ok ]
 * Applying 2008_all_pkcs11-ssh-keygen-man.patch ...                      [ ok ]
 * Applying 2009_all_pkcs11-agent.patch ...                               [ ok ]
 * Applying 2010_all_pkcs11-agent-man.patch ...                           [ ok ]
 * Applying 4000_possh_pkcs11.patch ...                                   [ ok ]
 * Applying 4001_possh_pkcs11-x509.patch ...                              [ ok ]
 * Applying 4100_possh_pkcs11-autoconf.patch ...                          [ ok ]
 * Applying 4101_possh_pkcs11-x509-autoconf.patch ...                     [ ok ]
 * Applying openssh-5.2p1-gsskex-all-20090726.patch ...                   [ ok ]
 * Applying openssh-5.2_p1-gsskex-fix.patch ...                           [ ok ]
 * Applying openssh-5.2p1-hpn13v6.diff.gz ...

 * Failed Patch: openssh-5.2p1-hpn13v6.diff.gz !
 *  ( /var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/26845.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/openssh-5.2p1-hpn13v6.diff.gz-26845.out

 *
 * ERROR: net-misc/openssh-5.2_p1-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3280:  Called epatch '/var/tmp/portage/net-misc/openssh-5.2_p1-r3/distdir/openssh-5.2p1-hpn13v6.diff.gz'
 *             environment, line 1781:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: openssh-5.2p1-hpn13v6.diff.gz!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-5.2_p1-r3/temp/environment'.
 *

>>> Failed to emerge net-misc/openssh-5.2_p1-r3, Log file:


Shouldn't you mask this ebuild?

Thanks & bye
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-10-15 08:20:49 UTC
no, somebody just needs to port the code I wrote for 5.3 that allows both.
Comment 4 SpanKY gentoo-dev 2010-02-08 20:31:26 UTC
*** Bug 293483 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2010-03-13 01:32:40 UTC
no plans to fix this.  dont use pkcs11 and hpn at the same time.