the CFLAGS set by portage override the configuration required to build mmv (at least for me). The relevant part of the makefile looks like this: CONF =-DIS_SYSV -DHAS_DIRENT -DHAS_RENAME CFLAGS =-O2 $(CONF) $CONF needs to end up on the command line, so i can build it. Reproducible: Always Steps to Reproduce: 1. emerge app-misc/mmv
which version? so mmv fails to compile? error output? emerge --info?
this happens not in gentoo main, but in gentoo-alt/prefix on windows (interix). i would need the CONF stuff on the command line (really the IS_SYSV which is default in the makefile). otherwise compile fails, since mmv tries to use the utimes() function , which is simply not there on interix. the version is mmv-1.01b_p14. emerge --info will not be of any meaning here i think, but still i'll post it :) Portage 2.2.00.9894-prefix (default-prefix/windows/interix/5.2/x86, gcc-4.2.3, unavailable, 5.2 x86) ================================================================= System uname: 5.2 x86 unknown Timestamp of tree: Fri, 29 Feb 2008 10:19:42 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout-prefix: 1.12.5-r5 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r01.1 sys-devel/gcc-config: 1.4.0-r04.2 sys-devel/libtool: 1.5.26 ACCEPT_KEYWORDS="~x86-interix" CBUILD="i586-pc-interix5.2" CFLAGS="-O2 -pipe" CHOST="i586-pc-interix5.2" CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/opt/gentoo.system/usr/portage/distfiles" EPREFIX="/opt/gentoo.system" FEATURES="collision-protect distlocks metadata-transfer nostrip parallel-fetch preserve-libs sfperms unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.inode.at" LDFLAGS="" PKGDIR="/opt/gentoo.system/usr/portage/packages" 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="/opt/gentoo.system/var/tmp" PORTDIR="/opt/gentoo.system/usr/portage" SYNC="svn://overlays.gentoo.org/proj/alt/trunk/prefix-overlay" USE="bash-completion cracklib cscope midi ncurses prefix python readline ssl threads threadsonly x86-interix zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="Interix" INPUT_DEVICES="keyboard mouse" KERNEL="Interix" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Markus, actually this package misses configure or similar thing to check if system support the feature or not and requires manual configuration via editing CONF variable. If you install package using ebuild that should not required as ebuild will set everything correctly and it does for all archs supported by keyword. I'm not sure how should we make that working in Gentoo for alt/windows port. As a permanent workaround I'd suggest you to add required custom CFLAGS into /etc/portage/env/app-misc/mmv. And I really do not know how to fix this bug but adding IS_SYSV IMO is not a solution as linux is not SYSV.
ok, if you don't have any better ideas, then i'll fix that in prefix locally by extending CFLAGS in the ebuild if i'm on windows.
i comitted this in alt/prefix, so thanks for looking into it :)