Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105686 - app-misc/freemind-0.8.0 (version bump)
Summary: app-misc/freemind-0.8.0 (version bump)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL: http://freemind.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 06:54 UTC by nopenope
Modified: 2006-04-13 12:19 UTC (History)
3 users (show)

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


Attachments
freemind-0.8.0.ebuild (freemind-0.8.0.ebuild,1.30 KB, text/plain)
2005-11-13 04:06 UTC, kevin
Details
freemind-0.8.0.ebuild (freemind-0.8.0.ebuild,1.39 KB, text/plain)
2005-12-03 16:18 UTC, Roman Stanchak
Details
java_source_version.patch -- patch for invalid "Java Source Version" error (java_source_version.patch,579 bytes, patch)
2005-12-03 16:19 UTC, Roman Stanchak
Details | Diff
Alternate ebuild - full version. (freemind-0.8.0.ebuild,1.54 KB, text/plain)
2006-01-08 07:46 UTC, Paul Kronenwetter
Details
Patch for supplied freemind start script. (start.patch,527 bytes, patch)
2006-01-08 07:46 UTC, Paul Kronenwetter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nopenope 2005-09-12 06:54:07 UTC
New version available, the more recent ebuild is for the 0.8.0_rc2.
In http://prdownloads.sourceforge.net/freemind/ the 0.8.0.zip is available. I've
tried that source package and ant builds it sucesfully

Reproducible: Always
Steps to Reproduce:
1.
2.
3.


Expected Results:  
Sadly to say. I currently don't have enough time to write an ebuild that uses 
the new available package, but it would be nice to have it in the portage tree.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 06:56:26 UTC
Kindly put full ebuild name in the bug summary next time, not really willing to
guess what you mean.
Comment 2 kevin 2005-11-13 01:41:22 UTC
I tried to copy the old ebuild to 0.8.0. The new freemind seems to depend on
dev-java/jaxme, but there are still troubles.
Patch to the old ebuild:
--- /usr/portage/app-misc/freemind/freemind-0.8.0_rc2.ebuild    2005-09-16
05:05:23.000000000 +0200
+++ /usr/local/portage/app-misc/freemind/freemind-0.8.0.ebuild  2005-11-13
10:02:29.864627168 +0100
@@ -8,15 +8,16 @@ MY_PV=${PV//./_}

 DESCRIPTION="Mind-mapping software written in Java"
 HOMEPAGE="http://freemind.sf.net"
-SRC_URI="mirror://sourceforge/freemind/${PN}-src-${MY_PV/rc2/RC2}.zip"
+SRC_URI="mirror://sourceforge/freemind/${PN}-src-${MY_PV}.zip"
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~x86"
+KEYWORDS="x86"
 IUSE="doc jikes"
 DEPEND=">=virtual/jdk-1.4
        dev-java/ant-core
        jikes? ( dev-java/jikes )
-       app-arch/unzip"
+       app-arch/unzip
+       dev-java/jaxme"
 RDEPEND=">=virtual/jre-1.4"
 RESTRICT="nomirror"


Well, the ebuild installs fine. But whenever I try to start freemind, I get this
error message in the console:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/bind/JAXBException
        at freemind.main.FreeMind.<init>(FreeMind.java:227)
        at freemind.main.FreeMind.main(FreeMind.java:647)

That was the reason for adding the jaxme dependency. But installing jaxme didn't
help! The error even appears, if I provide all jaxme-jars in the classpath! The
classpath somehow seems to be ignored (a test.java extending the JAXBException
works fine).

Any ideas? We should have a recent ebuild of this...
Comment 3 kevin 2005-11-13 04:06:23 UTC
Created attachment 72813 [details]
freemind-0.8.0.ebuild

Ok, forget jaxme. The files which come with freemind in lib/ are required to be
in the /opt/freemind/lib/ dir (the manifest will override the classpath
anyways). I attached an updated ebuild.
Comment 4 Jari-Matti Mäkelä 2005-12-01 06:01:00 UTC
freemind-0.8.0 does not compile (tested with sun-jdk-1.4.2.10 /
sun-jdk-1.5.0.05). freemind-0.8.0-rc2 build works using the attached ebuild as a
base (package name changed).

Here's the emerge process output:

>>> Source unpacked.
Buildfile: build.xml

gen:

xmlbind.checkStatusOfGeneration:

xmlbind:

build:
    [mkdir] Created dir: /var/tmp/portage/freemind-0.8.0/work/bin/classes

build-generated:

-buildgen:
    [javac] Compiling 272 source files to
/var/tmp/portage/freemind-0.8.0/work/bin/classes
    [javac] use: jikes [options] [@files] file.java...
    [javac] For more help, try -help or -version.
    [javac] Error: "-source" only recognizes Java releases 1.3 (JLS 2 features)
and 1.4 (assert statement).

BUILD FAILED
/var/tmp/portage/freemind-0.8.0/work/freemind/build.xml:106: The following error
occurred while executing this line:
/var/tmp/portage/freemind-0.8.0/work/freemind/build.xml:84: The following error
occurred while executing this line:
/var/tmp/portage/freemind-0.8.0/work/freemind/build.xml:61: Compile failed; see
the compiler error output for details.

Total time: 2 seconds

!!! ERROR: app-misc/freemind-0.8.0 failed.
!!! Function src_compile, Line 29, Exitcode 1
!!! Compiling failed!
!!! If you need support, post the topmost build error, NOT this status message.
Comment 5 Roman Stanchak 2005-12-03 16:18:38 UTC
Created attachment 74019 [details]
freemind-0.8.0.ebuild

Ebuild utilizing patch for java_source_version error.  I saw this same error
using blackdown-jdk-1.4.1 

Place the java_source_version.patch file in 'app-misc/freemind/files' directory
before emerging.
Comment 6 Roman Stanchak 2005-12-03 16:19:58 UTC
Created attachment 74020 [details, diff]
java_source_version.patch -- patch for invalid "Java Source Version" error
Comment 7 Roman Stanchak 2005-12-03 16:23:00 UTC
(In reply to comment #4) 
 
To be clear, the patch above should fix this error you see: 
 
> freemind-0.8.0 does not compile (tested with sun-jdk-1.4.2.10 / 
> sun-jdk-1.5.0.05). freemind-0.8.0-rc2 build works using the attached ebuild 
as a 
> base (package name changed). 
>     [javac] Error: "-source" only recognizes Java releases 1.3 (JLS 2 
features) 
> and 1.4 (assert statement). 
 
Comment 8 Sascha Herrmann 2005-12-13 06:09:02 UTC
Hi folks,

Roman's ebuild (74019) and his patch (74020) are working for me on an x86 with
blackdown-jdk-1.4.2.02.

bye fox

Comment 9 Miroslav Šulc gentoo-dev 2006-01-08 05:16:55 UTC
I can confirm this ebuild builds on sun-jdk-1.5.0.06 x86 and freemind works (tested basic functionality).
Comment 10 Paul Kronenwetter 2006-01-08 07:46:03 UTC
Created attachment 76529 [details]
Alternate ebuild - full version.

This is a version of the above ebuild, but it includes the extras and accessories not provided by that build.  
I've also decided not to create a new, simplistic start script but rather adjust the provided script to work, with my system at least. The forthcoming start patch accomplishes this.
The java_source_... patch is also used.

Thoughts?
Comment 11 Paul Kronenwetter 2006-01-08 07:46:43 UTC
Created attachment 76530 [details, diff]
Patch for supplied freemind start script.

Additional patch mentioned in attachment #76529 [details].
Comment 12 Russell Knighton 2006-01-09 04:04:57 UTC
Just adding my 2 cents...
Using the latest ebuild seems to work perfectly for me. Please include into portage soon. Thanx.

Heres my setup:
Use flags used:
[ebuild   R   ] app-misc/freemind-0.8.0  USE="jikes -doc" 0 kB [1]

emerge info
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r2, 2.6.15-gentoo i686)
=================================================================
System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -march=prescott -mtune=prescott -pipe -ftracer -ffast-math -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fomit-frame-pointer -march=prescott -mtune=prescott -pipe -ftracer -ffast-math -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"

uname -a
Linux mr_flibble 2.6.15-gentoo #2 SMP PREEMPT Thu Jan 5 16:40:43 GMT 2006 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz GenuineIntel GNU/Linux

java-config -c
/opt/blackdown-jdk-1.4.2.03/bin/javac
Comment 13 a.l.e 2006-02-01 11:26:38 UTC
ermerged today on ppc using ~x86. it seems to work ok (even if a bit slow :-).

i guess that it could also be set as ~ppc (if there are not other reasons for not doing it)
Comment 14 Jari-Matti Mäkelä 2006-02-02 13:52:12 UTC
Emerged today the alternate ebuild (x86), works fine here too. The official 0.8.0-ebuild on portage doesn't work.
Comment 15 Josh Nichols (RETIRED) gentoo-dev 2006-04-13 12:19:19 UTC
From the changelog:
  24 Mar 2006; Luca Barbato <lu_zero@gentoo.org> freemind-0.8.0.ebuild:
  Marked ~ppc

*freemind-0.8.0 (11 Jan 2006)

  11 Jan 2006; Luca Barbato <lu_zero@gentoo.org> +freemind-0.8.0.ebuild:
  Updated version, works fine on ppc and amd64

... so marking fixed.