Here's the tail of the compile log: i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib/isc/include -I../lib/isc/nothreads/include -I../lib/isc/unix/include -I../sntp/libopts -D_GNU_SOURCE -O2 -march=pentium4 -pipe -Wl,-O1 -Wl,--as-needed -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow -Wno-strict-prototypes -c ntpd.c ntpd.c: In function ‘ntpdmain’: ntpd.c:617: warning: ignoring return value of ‘daemon’, declared with attribute warn_unused_result ntpd.c: In function ‘library_fatal_error’: ntpd.c:1264: warning: format not a string literal and no format arguments ntpd.c: In function ‘library_unexpected_error’: ntpd.c:1286: warning: format not a string literal and no format arguments i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib/isc/include -I../lib/isc/nothreads/include -I../lib/isc/unix/include -I../sntp/libopts -D_GNU_SOURCE -O2 -march=pentium4 -pipe -Wl,-O1 -Wl,--as-needed -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow -Wno-strict-prototypes -c ntpd-opts.c env CSET=`cat ../version` ../scripts/mkver ntpd env: simple: No such file or directory make[3]: *** [version.o] Error 127 make[3]: Leaving directory `/var/tmp/portage/net-misc/ntp-4.2.6_p5-r2/work/ntp-4.2.6p5/ntpd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/net-misc/ntp-4.2.6_p5-r2/work/ntp-4.2.6p5/ntpd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/ntp-4.2.6_p5-r2/work/ntp-4.2.6p5' make: *** [all] Error 2 $ emerge --info '=net-misc/ntp-4.2.6_p5-r2' Portage 2.1.11.38 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.14.1-r2, 3.8.0-rc1 i686) ================================================================= System Settings ================================================================= System uname: Linux-3.8.0-rc1-i686-Intel-R-_Pentium-R-_4_CPU_2.66GHz-with-gentoo-2.1 Timestamp of tree: Sun, 06 Jan 2013 07:45:01 +0000 ld GNU ld (GNU Binutils) 2.22 ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p39-r1 dev-java/java-config: 1.3.7-r1, 2.1.12 dev-lang/python: 2.3.6-r2::<unknown repository>, 2.4.6, 2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.1.3-r1, 3.2.2 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13::<unknown repository>, 2.68 sys-devel/automake: 1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 3.2.3-r1::<unknown repository>, 3.3.6-r1::<unknown repository>, 3.4.6-r2::<unknown repository>, 4.1.2::<unknown repository>, 4.2.4, 4.3.3-r2, 4.4.4-r2, 4.5.3-r2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 1.4.3-r1::<unknown repository>, 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo crossdev-portage zugaina interactive-fiction sunrise gamerlay martin-s-local-portage-repo ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="rsync://212.219.56.139/www.ibiblio.org/gentoo/ rsync://212.219.56.133/www.ibiblio.org/gentoo/ rsync://212.219.56.135/www.ibiblio.org/gentoo/" LANG="en_GB.utf8" LC_ALL="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-crossdev /var/lib/layman/zugaina /var/lib/layman/interactive-fiction /var/lib/layman/sunrise /var/lib/layman/gamerlay /usr/local/portage" SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage" USE="X aalib acl acpi alsa apache2 avi bash-completion berkdb bzip2 caca cli cracklib crypt cxx dga directfb dri emacs encode fbcon fortran gatos gdbm gpm gtk guile iconv ipv6 jpeg mmx modules mozilla mudflap ncurses nls nptl nsplugin oggvorbis opengl openmp oss pam pcre perl png pppd python qt3support readline session spell sse ssl svg svga tcpd theora unicode v4l v4l2 x86 xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci cs4236" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa intel nvidia" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Please attach the entire build log to this bug report.
Created attachment 334758 [details] net-misc:ntp-4.2.6_p5-r2:20130107-210830.log Full build log attached.
go into the build dir: /var/tmp/portage/net-misc/ntp-4.2.6_p5-r2/work/ntp-4.2.6p5/ntpd4.2.6p5/ntpd and attach the files: ../scripts/mkver ../version then run by hand and see if it fails: env CSET=`cat ../version` ../scripts/mkver ntpd
Created attachment 334810 [details] mkver
Created attachment 334812 [details] version
portage@gonzales ~/net-misc/ntp-4.2.6_p5-r2/work/ntp-4.2.6p5/ntpd $ env CSET=`cat ../version` ../scripts/mkver ntpd env: simple: No such file or directory
Oh oh... not sure what's going on exactly, but the text in ../version comes from one of my own personal scripts (called 'bk' and in global path), so this is probably all my fault
Not sure why it would be picking it up, though... the script is in /usr/local/bin, and portage's PATH is /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/qt/3/bin
"bk" is the short name for "bitkeeper" which ntp supports i'd suggest you tweak your local bk to exit(1) when given invalid args as that'll should cause the ntp logic to skip it
I just renamed my 'bk' script, haven't used it for years anyway. Arguably the makefile ought to check that bk really is bitkeeper. Anyway, thanks for the help with diagnosing.
To confirm: it does now merge cleanly.