the original lines (which does not work): cp Linux2.5.mk Linux$(get_version_component_range 1-3 ${KV}).mk cp Linux2.5.mk Linux$(get_version_component_range 1-2 ${KV}).mk my changed lines (which does work) cp Linux2.5.mk Linux${KV_MAJOR}.${KV_MINOR}.mk jss need the kernel version and not the component version. Reproducible: Always Steps to Reproduce: 1. use kernel 2.6 (I think any 2.6 kernel) 2. emerge --oneshot dev-java/jss Actual Results: KERNEL_DIR=/usr/src/linux-2.6.19-gentoo-r5/ emerge --oneshot dev-java/jss Calculating dependencies... done! >>> Emerging (1 of 1) dev-java/jss-3.4-r1 to / * jss-3.4-src.tar.gz RMD160 ;-) ... [ ok ] * jss-3.4-src.tar.gz SHA1 ;-) ... [ ok ] * jss-3.4-src.tar.gz SHA256 ;-) ... [ ok ] * jss-3.4-src.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking jss-3.4-src.tar.gz ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux-2.6.19-gentoo-r5/ * Found kernel object directory: * /lib/modules/2.6.19-gentoo-r5/build * Found sources for kernel version: * 2.6.19-gentoo-r5 * Using: sun-jdk-1.5 >>> Unpacking source... >>> Unpacking jss-3.4-src.tar.gz to /var/tmp/portage/dev-java/jss-3.4-r1/work * Applying jss-3.4-target_source.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-java/jss-3.4-r1/work/jss-3.4-src ... ../coreconf/config.mk:67: ../coreconf/Linux2.6.mk: No such file or directory syntax error at -e line 3, near "while" syntax error at -e line 7, near "}" Execution of -e aborted due to compilation errors. syntax error at -e line 3, near "while" syntax error at -e line 7, near "}" Execution of -e aborted due to compilation errors. make: *** [../coreconf/Linux2.6.mk] Error 255 !!! ERROR: dev-java/jss-3.4-r1 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 4947: Called src_compile jss-3.4-r1.ebuild, line 49: Called die !!! coreconf make failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/dev-java/jss-3.4-r1/temp/build.log'. !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.5 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.11" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" and of course, the output of emerge --info Expected Results: install correctly my emerge --info, if that of any intrest: # emerge --info Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) M processor 2.13GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 07 Apr 2007 08:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 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 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O3 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="he" LINGUAS="en he" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/myportage /usr/local/alon-barlev-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X X509 acl acpi alsa apache2 arts berkdb bidi bitmap-fonts bluet bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus directfb dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv ipv6 irda isdnlog java jpeg kde kdeenablefinal kerberos ldap libg++ logrotate mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg ooth opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection samba sb sdl session smartcard spell spl sse sse2 ssl subversion svga tcpd tiff truetype truetype-fonts type1-fonts u unicode vorbis wifi win32codecs x509 x86 xinerama xml xorg xv zlib" ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en he" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 115733 [details, diff] my fixed ebuild file
Unfortunately, this isn't fixed by now and the 'fixed' ebuild also aborts with the same error message. I renamed the ebuild to -r2 to be sure, it takes the right one... Compile log follows. emerge --info will be attached soon. # emerge --nodeps --oneshot jss >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) dev-java/jss-3.4-r2 to / * jss-3.4-src.tar.gz MD5 ;-) ... [ ok ] * jss-3.4-src.tar.gz RMD160 ;-) ... [ ok ] * jss-3.4-src.tar.gz SHA1 ;-) ... [ ok ] * jss-3.4-src.tar.gz SHA256 ;-) ... [ ok ] * jss-3.4-src.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking jss-3.4-src.tar.gz ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.22-gentoo-r5 >>> Unpacking source... >>> Unpacking jss-3.4-src.tar.gz to /var/tmp/portage/dev-java/jss-3.4-r2/work * Applying jss-3.4-target_source.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-java/jss-3.4-r2/work/jss-3.4-src ... ../coreconf/config.mk:67: ../coreconf/Linux2.6.21.mk: Datei oder Verzeichnis nicht gefunden syntax error at -e line 3, near "while" syntax error at -e line 7, near "}" Execution of -e aborted due to compilation errors. syntax error at -e line 3, near "while" syntax error at -e line 7, near "}" Execution of -e aborted due to compilation errors. make: *** [../coreconf/Linux2.6.21.mk] Fehler 255 !!! ERROR: dev-java/jss-3.4-r2 failed. Call stack: ebuild.sh, line 1638: Called dyn_compile ebuild.sh, line 985: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile jss-3.4-r2.ebuild, line 49: Called die !!! coreconf make failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/dev-java/jss-3.4-r2/temp/build.log'. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH=".:/usr/share/axis-1/lib/axis-ant.jar:/usr/share/axis-1/lib/axis.jar:/usr/share/axis-1/lib/jaxrpc.jar:/usr/share/axis-1/lib/saaj.jar" JAVA_HOME="/etc/java-config-2/current-system-vm" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info !!! This ebuild is from an overlay: '/usr/local/portage'
Created attachment 129930 [details] emerge --info
Can someone please also fix these nasty 'syntax error at -e line 3, near "while" syntax error at -e line 7, near "}"' messages?
dev-java/jss-4.2 is now stable and doesn't have kernel version handling any more