./mkbuiltins -D . getopts.def x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I./include -I.. -I../include -I../lib -I. -DDEFAULT_PATH_VALUE='"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' -DSTANDARD_UTILS_PATH='"/bin:/usr/bin:/sbin:/usr/sbin"' -DSYS_BASHRC='"/etc/bash/bashrc"' -DSYS_BASH_LOGOUT='"/etc/bash/bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -DSYSLOG_HISTORY -mtune=native -O2 -pipe -frecord-gcc-switches -Wno-parentheses -Wno-format-security getopts.c || ( rm -f getopts.c ; exit 1 ) rm -f getopts.c rm -f shopt.o ./mkbuiltins -D . shopt.def x86_64-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I./include -I.. -I../include -I../lib -I. -DDEFAULT_PATH_VALUE='"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' -DSTANDARD_UTILS_PATH='"/bin:/usr/bin:/sbin:/usr/sbin"' -DSYS_BASHRC='"/etc/bash/bashrc"' -DSYS_BASH_LOGOUT='"/etc/bash/bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -DSYSLOG_HISTORY -mtune=native -O2 -pipe -frecord-gcc-switches -Wno-parentheses -Wno-format-security shopt.c || ( rm -f shopt.c ; exit 1 ) ./shopt.def: In function 'reset_shopt_options': ./shopt.def:373:3: error: 'syslog_history' undeclared (first use in this function); did you mean 'save_history'? syslog_history = 1; ^~~~~~~~~~~~~~ save_history ./shopt.def:373:3: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [Makefile:119: shopt.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-shells/bash-5.0_p2/work/bash-5.0/builtins' make: *** [Makefile:733: builtins/libbuiltins.a] Error 1 * ERROR: app-shells/bash-5.0_p2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-shells/bash-5.0_p2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-shells/bash-5.0_p2::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-shells/bash-5.0_p2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-shells/bash-5.0_p2/temp/environment'. * Working directory: '/var/tmp/portage/app-shells/bash-5.0_p2/work/bash-5.0' * S: '/var/tmp/portage/app-shells/bash-5.0_p2/work/bash-5.0' >>> Failed to emerge app-shells/bash-5.0_p2, Log file: Portage 2.3.58 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r5, 4.19.13-gentoo x86_64) ================================================================= System uname: Linux-4.19.13-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.6 KiB Mem: 16318692 total, 5548932 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 23 Jan 2019 06:15:01 +0000 Head commit of repository gentoo: 0501074ab7b61a35d086d86996dc073c105ffc4b sh bash 5.0_p2 ld GNU ld (Gentoo 2.31.1 p5) 2.31.1 app-shells/bash: 5.0_p2::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo dev-util/cmake: 3.13.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.40.3::gentoo sys-apps/sandbox: 2.15::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.31.1-r3::gentoo sys-devel/gcc: 8.2.0-r6::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers) sys-libs/glibc: 2.28-r5::gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=native -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /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="-mtune=native -O2 -pipe -frecord-gcc-switches" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-mtune=native -O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-mtune=native -O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr 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="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias watchdog proxy proxy_connect proxy_fcgi proxy_http" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx f16c popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 xen pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access charset gzip limit_conn limit_req log proxy rewrite gunzip upstream_check stub_status geoip2" NGINX_MODULES_STREAM="geoip2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1 php7-2 php7-3" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7 pypy pypy3" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 562590 [details] build.log
Would you mind reporting this to upstream? Preferrably use the /usr/bin/bashbug binary for the report.
(In reply to Lars Wendler (Polynomial-C) from comment #2) > Would you mind reporting this to upstream? > > Preferrably use the /usr/bin/bashbug binary for the report. Not sure this is an upstream error. http://git.savannah.gnu.org/cgit/bash.git/commit/builtins/shopt.def?id=d233b485e83c3a784b803fb894280773f16f2deb: #if defined (SYSLOG_HISTORY) && defined (SYSLOG_SHOPT) extern int syslog_history; #endif It works if we define SYSLOG_SHOPT: --- /usr/portage/app-shells/bash/bash-5.0_p2.ebuild 2019-01-21 11:39:25.000000000 +0100 +++ bash-5.0_p2.ebuild 2019-01-24 07:55:45.653454809 +0100 @@ -124,7 +124,7 @@ -DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \ -DNON_INTERACTIVE_LOGIN_SHELLS \ -DSSH_SOURCE_BASHRC \ - $(use bashlogger && echo -DSYSLOG_HISTORY) + $(use bashlogger && echo -DSYSLOG_HISTORY -DSYSLOG_SHOPT) # Don't even think about building this statically without # reading Bug 7714 first. If you still build it statically,
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65328e8c4b7793f4fa9522d35cfb13e1767c18ce commit 65328e8c4b7793f4fa9522d35cfb13e1767c18ce Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-03-07 22:08:38 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-03-07 22:19:41 +0000 app-shells/bash: Revbump to add a couple of fixes Closes: https://bugs.gentoo.org/676114 Closes: https://github.com/gentoo/gentoo/pull/10949 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> app-shells/bash/bash-5.0_p2-r1.ebuild | 267 +++++++++++++++++++++ .../bash/files/bash-5.0-globpat-backslashes.patch | 174 ++++++++++++++ .../bash/files/bash-5.0-history-append.patch | 34 +++ .../bash/files/bash-5.0-history-zero-length.patch | 34 +++ .../files/bash-5.0-optimize-connection-fork.patch | 79 ++++++ .../files/bash-5.0-syslog-history-extern.patch | 15 ++ 6 files changed, 603 insertions(+)