There is a simple error in version 107.5 that prevents the ebuild from working with the jave USE flag.
Created attachment 83324 [details, diff] Patch for ebuild
If this is correct, when will it be added to portage?
The patch works for me.
Sorry, fixed now.
(In reply to comment #4) > Sorry, fixed now. > Has a new (typo) error been introduced? >>> Unpacking mDNSResponder-107.5.tar.gz to /var/tmp/portage/mDNSResponder-107.5/work * Applying mDNSResponder-107.5-Makefiles.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/mDNSResponder-107.5/work/mDNSResponder-107.5 ... /usr/portage/net-misc/mDNSResponder/mDNSResponder-107.5.ebuild: line 27: local: `debug,': not a valid identifier * Running emake os=linux CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-gcc -shared JDK=$(java-config -O) OPT_CFLAGS=-O3 -march=athlon64 -mtune=athlon64 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe LIBFLAGS= STRIP=true make: invalid option -- O make: invalid option -- ) Usage: make [options] [target] ... Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from commands. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -n, --just-print, --dry-run, --recon Don't actually run any commands; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -p, --print-data-base Print make's internal database. -q, --question Run no commands; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo commands. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced. This program built for x86_64-pc-linux-gnu Report bugs to <bug-make@gnu.org> !!! ERROR: net-misc/mDNSResponder-107.5 failed. Call stack: ebuild.sh, line 1526: Called dyn_compile ebuild.sh, line 923: Called src_compile mDNSResponder-107.5.ebuild, line 38: Called die !!! make mDNSPosix failed !!! If you need support, post the topmost build error, and the call stack if relevant.
I had to set MAKEOPTS to -j1 AND set a USE flag of "-java" for this to compile... Might help someone...
This isn't fixed in Portage as of today. Comment #6 did actually fixed my problem.
The issue with needing MAKEOPTS -j1 is a seperate bug (126414) and is unrelated to this one, this was a bug in ebuild syntax.