Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356289 - net-misc/openswan - cannot install versions 2.4.15-r2, 2.6.29 and 2.6.31 when hostname has whitespace
Summary: net-misc/openswan - cannot install versions 2.4.15-r2, 2.6.29 and 2.6.31 when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 11:14 UTC by slaterc
Modified: 2011-02-27 15:32 UTC (History)
1 user (show)

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


Attachments
Outputs for emerge --info, emerge -pqv and the build log (error.log,144.48 KB, text/plain)
2011-02-24 11:16 UTC, slaterc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description slaterc 2011-02-24 11:14:15 UTC
I'm trying to install openswan on gentoo linux. But i receive and error message while the source is being compiled. Initially I've tried to compile version 2.6.31 but this failed. I then tried to emerge older versions by masking the newer ones, but I have the same result for all versions.

Reproducible: Always

Steps to Reproduce:
1.type emerge -av openswan
2.answer y to emerge openswan-x-x-xx
3.

Actual Results:  
I receive the error:

>>> Failed to emerge net-misc/openswan-2.6.31, Log file:

>>>  '/var/tmp/portage/net-misc/openswan-2.6.31/temp/build.log'

 * Messages for package net-misc/openswan-2.6.31:

 * ERROR: net-misc/openswan-2.6.31 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 3622:  Called die
 * The specific snippet of code:
 *       emake "$@" ${MYMAKE} || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =net-misc/openswan-2.6.31',
 * the complete build log and the output of 'emerge -pqv =net-misc/openswan-2.6.31'.
 * The complete build log is located at '/var/tmp/portage/net-misc/openswan-2.6.31/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openswan-2.6.31/temp/environment'.
 * S: '/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31'


Expected Results:  
The emerge program should exit normally

Outputs for emerge --info openswan, emerge -pqv openswan

#emerge --info openswan

Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Turion-tm-_64_Mobile_Technology_MK-36-with-gentoo-1.12.14
Timestamp of tree: Thu, 24 Feb 2011 09:15:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
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"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb branding bzip2 cairo cli cracklib crypt cups cxx dbus device-mapper dri dvd dvdr extras fortran gdbm gdu gnome gpm gstreamer gtk hal iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl policykit pppd python readline session sqlite sse sse2 ssl startup-notification sysfs tcpd unicode xorg xscreensaver 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 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

#emerge -pqv openswan
[ebuild  N    ] net-misc/openswan-2.6.31  USE="pam ssl -caps -curl -extra-algorithms -ldap -ms-bad-proposal -nocrypto-algorithms -nss -weak-algorithms" 

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 1 slaterc 2011-02-24 11:16:23 UTC
Created attachment 263677 [details]
Outputs for emerge --info, emerge -pqv and the build log
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-02-24 18:38:37 UTC
x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe -fno-strict-aliasing  -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/ports/linux/include  -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/ports/linux/include  -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/ports/linux/include   -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/programs/pluto/linux26 -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/include -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/lib/libcrypto -I/var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/linux/include   -DIPSECPOLICY -DPLUTO_SENDS_VENDORID -DUSE_KEYRR   -DDYNAMICDNS -DNETKEY_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES -DPFKEY -DX509_PLUTO  -DHAVE_THREADS -DPLUTO -DKLIPS -DHAVE_UDPFROMTO -DPFKEY   -DKLIPS_MAST   -DBUILDER=\"@SlaterC - Laptop\" -DDEBUG -DUSE_AES -DUSE_3DES -DIKE_ALG -DKERNEL_ALG -DAGGRESSIVE -DXAUTH -DMODECFG -DMODECFG_DNSWINS -DXAUTH_USEPAM -DNAT_TRAVERSAL -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT      -DLEAK_DETECTIVE -DSHARED_SECRETS_FILE=\"/etc/ipsec.secrets\" -DPOLICYGROUPSDIR=\"/etc/ipsec.d/policies\" -DPERPEERLOGDIR=\"/var/log/pluto/peer\" -march=k8 -O2 -pipe -fno-strict-aliasing -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes  -DALLOW_MICROSOFT_BAD_PROPOSAL  -c /var/tmp/portage/net-misc/openswan-2.6.31/work/openswan-2.6.31/programs/pluto/connections.c
x86_64-pc-linux-gnu-gcc: Laptop": No such file or directory

Given the "-DBUILDER=\"@SlaterC - Laptop\" in the above, might the environment be polluting the build and causing the break?
Comment 3 slaterc 2011-02-26 17:29:44 UTC
> 
> Given the "-DBUILDER=\"@SlaterC - Laptop\" in the above, might the environment
> be polluting the build and causing the break?
> 

I changed the hostname to one without spaces and everything built perfectly. 

Thank you for the prompt reply.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-02-27 15:32:07 UTC
@mrness:

Is there any way to prevent the build to fail when the hostname has whitespace? If not, what do you feel about adding a warning in pkg_postinst?