Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545532 - sys-libs/ncurses - sed: file /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/csn8mB31/subs-1.sed line 27: unterminated `s' command
Summary: sys-libs/ncurses - sed: file /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/cs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 545710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-04-04 16:54 UTC by Nick Bowler
Modified: 2015-04-06 23:33 UTC (History)
1 user (show)

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


Attachments
Build log (sys-libs:ncurses-5.9-r4:20150404-164014.log,23.16 KB, text/plain)
2015-04-04 16:54 UTC, Nick Bowler
Details
config.log (config.log,96.20 KB, text/plain)
2015-04-04 16:56 UTC, Nick Bowler
Details
subs-1.sed (subs-1.sed,1.44 KB, text/plain)
2015-04-05 02:07 UTC, Nick Bowler
Details
ncurses-5.9-fix-echo_c.patch (ncurses-5.9-fix-echo_c.patch,726 bytes, patch)
2015-04-06 22:48 UTC, Dustin C. Hatch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Bowler 2015-04-04 16:54:03 UTC
Created attachment 400564 [details]
Build log

Yesterday's upgrade fails to build ncurses:

<lots of this:>:
  sed: file /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/csn8mB31/subs-1.sed line 27: unterminated `s' command
<then this>:
  Makefile:1: *** recipe commences before first target.  Stop.

Since the newfangled "true multilib" support requires a USE flag change on
ncurses, this basically blocks the entire update.  However, the build fails
the same way regardless of the ABI_X86 setting.

Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r2, 3.10.54 x86_64)
=================================================================
System uname: Linux-3.10.54-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.2
KiB Mem:     2054816 total,     90460 free
KiB Swap:    2097148 total,   1861432 free
Timestamp of repository gentoo: Sat, 04 Apr 2015 00:45:01 +0000
sh dash 0.5.8.2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
ccache version 3.2.1 [enabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.1-r1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.9.6-r3::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.6.3::gentoo, 4.7.3::gentoo, 4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://athena/gentoo-portage
    priority: -1000

gentoo-draconx
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @OTHER-FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d/binutils /etc/env.d/gcc /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --quiet-build=y --autounmask-write=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
INSTALL_MASK="/usr/share/cursors/xorg-x11/default 	/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf 	/etc/profile.d/qtgui4.sh"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/local/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cjk cli cracklib crypt cscope cups curl cxx djvu doc dri dts dvd dvdr emboss encode exif faad fam fbcon ffmpeg fftw firefox flac fontconfig fontforge fortran gdbm gif gimp glamor gmp gnutls gphoto2 gpm graphviz gs gtk iconv icu idn imagemagick iproute2 ipv6 jack jadetex jpeg jpeg2k kerberos kpathsea latex lcms libsamplerate lua mad mikmod mmx mmxext mng mod modplug modules mp3 mp4 mpeg multilib musepack ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds python qt3support readline samba sdl session speex sse sse2 ssl svg tcpd theora tiff truetype udev unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xft xinerama xml xv zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_CA en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm mips mipsel ppc ppc64" RUBY_TARGETS="ruby19 ruby20 ruby22" SANE_BACKENDS="hp3900 plustek" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nick Bowler 2015-04-04 16:56:28 UTC
Created attachment 400566 [details]
config.log
Comment 2 Alex Xu (Hello71) 2015-04-04 19:13:40 UTC
please paste (or if very large, attach) the contents of /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/csn8mB31/subs-1.sed.
Comment 3 Enne Eziarc 2015-04-04 20:04:12 UTC
Can reproduce on no-multilib profile; subs-1.sed doesn't exist anywhere within /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/.
Comment 4 Alex Xu (Hello71) 2015-04-04 20:06:02 UTC
(In reply to Anthony Parsons from comment #3)
> Can reproduce on no-multilib profile; subs-1.sed doesn't exist anywhere
> within /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/.

then it must be a different error. please open a new bug.
Comment 5 Nick Bowler 2015-04-05 02:07:31 UTC
Created attachment 400578 [details]
subs-1.sed

(In reply to Alex Xu (Hello71) from comment #2)
> please paste (or if very large, attach) the contents of
> /var/tmp/portage/sys-libs/ncurses-5.9-r4/temp/csn8mB31/subs-1.sed.

It seems that the file gets deleted by the build process before it actually errors out.  I had to suspend the build while it was printing those error messages and copy the file out then.  The offending command is:

s,@ECHO_C@,
,;t t
Comment 6 SpanKY gentoo-dev 2015-04-06 20:06:24 UTC
*** Bug 545710 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2015-04-06 20:11:05 UTC
should be all set now in the tree; thanks for the report!

Commit message: Force usage of bash when running the configure script
http://sources.gentoo.org/sys-libs/ncurses/ncurses-5.9-r4.ebuild?r1=1.2&r2=1.3
Comment 8 Dustin C. Hatch 2015-04-06 22:48:12 UTC
Created attachment 400732 [details, diff]
ncurses-5.9-fix-echo_c.patch

Here's a patch to configure that allows it to work without requiring Bash.
Comment 9 SpanKY gentoo-dev 2015-04-06 23:30:54 UTC
(In reply to Dustin C. Hatch from comment #8)

i don't see the point.  autoconf normally detects that the active shell is featureless and re-execs itself with bash.  the fact that the ebuild sets CONFIG_SHELL=/bin/bash explicitly doesn't change the bash requirement.