Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168466 - dev-java/jjtraveler-0.4.3 build fails
Summary: dev-java/jjtraveler-0.4.3 build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 173003
  Show dependency tree
 
Reported: 2007-02-26 14:07 UTC by Mike Smith
Modified: 2007-04-06 18:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info (emerge.info,2.79 KB, text/plain)
2007-02-26 14:08 UTC, Mike Smith
Details
Source patch to fix build problem (0.4.3-sed-makefile.patch,1.03 KB, patch)
2007-02-26 14:18 UTC, Mike Smith
Details | Diff
Updated ebuild to use newer java build system (jjtraveler-0.4.3-r1.ebuild,1.00 KB, text/plain)
2007-02-26 16:32 UTC, Mike Smith
Details
Ant buildfile (build.xml,1.32 KB, text/plain)
2007-02-26 16:33 UTC, Mike Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Smith 2007-02-26 14:07:12 UTC
Build of jjtraveler-0.4.3 ebuild fails during make with a sed error message.


Reproducible: Always

Steps to Reproduce:
1. emerge jjtraveler

Actual Results:  
...
make[1]: Entering directory `/var/tmp/portage/dev-java/jjtraveler-0.4.3/work/JJTraveler-0.4.3/scripts'
sed 's@__PREFIX__@/usr@g;\
             s@__VERSION__@0.4.3@g;' < jjtraveler-config.sh.src > jjtraveler-config && chmod +x jjtraveler-config
sed: -e expression #1, char 57: unterminated address regex
make[1]: *** [jjtraveler-config] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/jjtraveler-0.4.3/work/JJTraveler-0.4.3/scripts'
make: *** [all-recursive] Error 1

Expected Results:  
Compile cleanly and install
Comment 1 Mike Smith 2007-02-26 14:08:43 UTC
Created attachment 111289 [details]
Output of emerge --info
Comment 2 Mike Smith 2007-02-26 14:18:51 UTC
Created attachment 111291 [details, diff]
Source patch to fix build problem

Applying this patch in src_unpack fixes build problems for me.  It changes line endings in bash that is contained in two Makefile.am files
Comment 3 Mike Smith 2007-02-26 14:23:22 UTC
a similar problem exists with shared-objects-1.4.ebuild
Comment 4 Mike Smith 2007-02-26 16:32:48 UTC
Created attachment 111320 [details]
Updated ebuild to use newer java build system
Comment 5 Mike Smith 2007-02-26 16:33:42 UTC
Created attachment 111322 [details]
Ant buildfile

To be used with previously attached ebuild.  Adapted from dev-java/dbunit build file.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-04-02 08:42:24 UTC
+*jjtraveler-0.4.3-r1 (02 Apr 2007)
+
+  02 Apr 2007; Petteri Räty <betelgeuse@gentoo.org>
+  +files/0.4.3-makefile.am.patch, +jjtraveler-0.4.3-r1.ebuild:
+  Migrate to generation 2 and make this compile again. Thanks to Mike Smith
+  <mas3f@alumni.virginia.edu>.
+

I decided to go with their build system as it always reduces the chance that our custom build.xml misses something. Thanks for the work. Let's get -r1 stable because the current stable does not build. Also please note that you shouldn't increase the SLOT when they are binary compatible and you only need to drop KEYWORDS with major version bumps which are likely to break.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2007-04-03 06:46:08 UTC
cp: cannot stat `/usr/portage/dev-java/jjtraveler/files/0.4.3-build.xml': No such file or directory

Possible you forgot the build.xml in ${FILESDIR}?
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2007-04-03 07:44:34 UTC
(In reply to comment #7)
> cp: cannot stat `/usr/portage/dev-java/jjtraveler/files/0.4.3-build.xml': No
> such file or directory
> 
> Possible you forgot the build.xml in ${FILESDIR}?
> 

My mind wasn't in it it seems. I used to use it but decided to go with the upstream build system and forgot to remove the cp. Fixed now.
Comment 9 Markus Meier gentoo-dev 2007-04-05 15:09:24 UTC
dev-java/jjtraveler-0.4.3-r1  USE="doc source"
1. emerges on x86
2. passes test suite
3. passes collision test
4. dev-java/aterm-java-1.6 doesn't emerge (not sure if this is an aterm or jjtraveler problem):

Making all in aterm
make[1]: Entering directory `/var/tmp/portage/dev-java/aterm-java-1.6/work/aterm-java-1.6/aterm'
Making all in .
make[2]: Entering directory `/var/tmp/portage/dev-java/aterm-java-1.6/work/aterm-java-1.6/aterm'
CLASSPATH=..:`/usr/bin/shared-objects-config`:`/usr/bin/jjtraveler-config` javac -d ..   AFun.java ATerm.java ATermAppl.java ATermBlob.java ATermFactory.java ATermInt.java ATermList.java ATermPlaceholder.java ATermReal.java Fwd.java Visitable.java Identifiable.java Visitor.java ParseError.java
Could not find package jjtraveler-0
* Home for VM 'sun-jdk-1.4' does not exist: /usr/lib/jvm/sun-jdk-1.4/
* Invalid value for GENTOO_VM: sun-jdk-1.4
make[2]: *** [classjava.stamp] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-java/aterm-java-1.6/work/aterm-java-1.6/aterm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/aterm-java-1.6/work/aterm-java-1.6/aterm'
make: *** [all-recursive] Error 1

!!! ERROR: dev-java/aterm-java-1.6 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 2182:   Called src_compile
  aterm-java-1.6.ebuild, line 22:   Called die



Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19.7 i686)
=================================================================
System uname: 2.6.19.7 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 05 Apr 2007 13:00:08 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 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="-O2 -march=prescott -pipe -fomit-frame-pointer"
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/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/"
LINGUAS="en de en_GB de_CH"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 asf berkdb bitmap-fonts cairo cdr cdrom cli cracklib crypt cups dbus divx dri dts dvd dvdr dvdread eds emboss encode fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kdeenablefinal ldap libg++ mad midi mikmod mmx mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection rtsp ruby samba sdl session smp spell spl sse sse2 sse3 ssl svg tcpd test tetex theora threads truetype truetype-fonts type1-fonts unicode vcd vorbis wifi win32codecs wxwindows x264 x86 xine xml xorg xprint xv xvid zlib" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en de en_GB de_CH" USERLAND="GNU" VIDEO_CARDS="i810 fbdev vesa"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2007-04-06 08:46:17 UTC
I also get for aterm-java:

Making all in config
make[1]: Entering directory `/var/tmp/portage/dev-java/aterm-java-1.6/work/aterm-java-1.6/config'
sed 's@__PREFIX__@/usr@g;\
             s@__EXTERNAL_JARS__@`/usr/bin/shared-objects-config`:`/usr/bin/jjtraveler-config`@g;\
             s@__VERSION__@1.6@g' < aterm-java-config.sh.src > aterm-java-config && chmod +x aterm-java-config
sed: -e expression #1, char 145: unterminated address regex
make[1]: *** [aterm-java-config] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/aterm-java-1.6/work/aterm-java-1.6/config'
make: *** [all-recursive] Error 1
Comment 11 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-06 10:11:49 UTC
(In reply to comment #9)
> Could not find package jjtraveler-0

This is problem of jjtraveler-config installed by jjtraveler, so should be fixed with revbump...

> * Home for VM 'sun-jdk-1.4' does not exist: /usr/lib/jvm/sun-jdk-1.4/
> * Invalid value for GENTOO_VM: sun-jdk-1.4

Not sure about this one...

Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2007-04-06 18:36:56 UTC
x86 stable, Java team will handle aterm java
Comment 13 Petteri Räty (RETIRED) gentoo-dev 2007-04-06 18:55:54 UTC
(In reply to comment #12)
> x86 stable, Java team will handle aterm java
> 

aterm-java package.masked marked -r2 stable on amd64 and x86:


+  06 Apr 2007; Petteri Räty <betelgeuse@gentoo.org>
+  jjtraveler-0.4.3-r2.ebuild:
+  Mark 0.4.3-r2 stable on amd64 and x86 as it is identical to -r1 and makes
+  sure jjtraveler-config is in order (bug #168466).
+