Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152924 - Split dev-java/mx4j into two ebuilds
Summary: Split dev-java/mx4j into two ebuilds
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:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks: 157392
  Show dependency tree
 
Reported: 2006-10-26 14:31 UTC by Alex Tarkovsky
Modified: 2006-12-07 06:51 UTC (History)
1 user (show)

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


Attachments
mx4j-2.1.0-r1.diff (mx4j-2.1.0-r1.diff,2.13 KB, patch)
2006-10-26 14:34 UTC, Alex Tarkovsky
Details | Diff
mx4j-2.1.0-r2.ebuild (mx4j-2.1.0-r2.ebuild,1.33 KB, text/plain)
2006-10-27 15:59 UTC, Alex Tarkovsky
Details
files/mx4j-2.1.0-split-javadoc-build.patch (mx4j-2.1.0-split-javadoc-build.patch,1.92 KB, patch)
2006-10-27 15:59 UTC, Alex Tarkovsky
Details | Diff
mx4j-tools-2.1.0.ebuild (mx4j-tools-2.1.0.ebuild,2.68 KB, text/plain)
2006-10-27 16:01 UTC, Alex Tarkovsky
Details
files/mx4j-tools-2.1.0-split-javadoc-build.patch (mx4j-tools-2.1.0-split-javadoc-build.patch,1.92 KB, patch)
2006-10-27 16:01 UTC, Alex Tarkovsky
Details | Diff
mx4j-2.1.0-r2.ebuild (mx4j-2.1.0-r2.ebuild,1.38 KB, text/plain)
2006-10-27 21:13 UTC, Alex Tarkovsky
Details
mx4j-tools-2.1.0.ebuild (mx4j-tools-2.1.0.ebuild,2.77 KB, text/plain)
2006-10-27 21:14 UTC, Alex Tarkovsky
Details
mx4j-3.0.1-r2.ebuild (mx4j-3.0.1-r2.ebuild,1.37 KB, text/plain)
2006-10-27 21:41 UTC, Alex Tarkovsky
Details
files/mx4j-3.0.1-split-javadoc-build.patch (mx4j-3.0.1-split-javadoc-build.patch,1.93 KB, patch)
2006-10-27 21:42 UTC, Alex Tarkovsky
Details | Diff
mx4j-tools-3.0.1.ebuild (mx4j-tools-3.0.1.ebuild,2.75 KB, text/plain)
2006-10-27 21:43 UTC, Alex Tarkovsky
Details
files/mx4j-tools-3.0.1-split-javadoc-build.patch (mx4j-tools-3.0.1-split-javadoc-build.patch,1.93 KB, patch)
2006-10-27 21:43 UTC, Alex Tarkovsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Tarkovsky 2006-10-26 14:31:05 UTC
dev-java/mx4j:tools - Build optional tool classes and utilities
Comment 1 Alex Tarkovsky 2006-10-26 14:34:55 UTC
Created attachment 100555 [details, diff]
mx4j-2.1.0-r1.diff
Comment 2 Alex Tarkovsky 2006-10-27 15:57:06 UTC
Comment on attachment 100555 [details, diff]
mx4j-2.1.0-r1.diff

After some discussion it was agreed the new USE flag approach is inadequate for a number of reasons, most of all because jetty depends on mx4j, and mx4j's optional tools depend on jetty.

The new idea is to split mx4j into two ebuilds: core (dev-java/mx4j) and tools (dev-java/mx4j-tools). The core ebuild will no longer depend on jetty, and the jetty dependency will be moved to mx4j-tools. As a consequence of this splitting, the mx4j Ant build is now patched to split the javadoc target into two targets corresponding to core and tools, and also mx4j's "examples" USE flag has been moved over to the mx4j-tools ebuild due to the infeasability of splitting it.
Comment 3 Alex Tarkovsky 2006-10-27 15:59:16 UTC
Created attachment 100624 [details]
mx4j-2.1.0-r2.ebuild
Comment 4 Alex Tarkovsky 2006-10-27 15:59:46 UTC
Created attachment 100625 [details, diff]
files/mx4j-2.1.0-split-javadoc-build.patch
Comment 5 Alex Tarkovsky 2006-10-27 16:01:14 UTC
Created attachment 100626 [details]
mx4j-tools-2.1.0.ebuild
Comment 6 Alex Tarkovsky 2006-10-27 16:01:47 UTC
Created attachment 100627 [details, diff]
files/mx4j-tools-2.1.0-split-javadoc-build.patch
Comment 7 Alex Tarkovsky 2006-10-27 21:13:20 UTC
Created attachment 100633 [details]
mx4j-2.1.0-r2.ebuild

Update to more explicitly define a few of the build-time jar imports.

Tested on x86 against sun-jdk-1.4.2.12 using javac 1.4.2.12, jikes 1.22, and ecj 3.2.
Comment 8 Alex Tarkovsky 2006-10-27 21:14:02 UTC
Created attachment 100634 [details]
mx4j-tools-2.1.0.ebuild

Update to more explicitly define a few of the build-time jar imports.

Tested on x86 against sun-jdk-1.4.2.12 using javac 1.4.2.12, jikes 1.22, and ecj 3.2.
Comment 9 Alex Tarkovsky 2006-10-27 21:41:43 UTC
Created attachment 100635 [details]
mx4j-3.0.1-r2.ebuild

Now for slot 3.0.

Tested on x86 against sun-jdk-1.4.2.12 using javac 1.4.2.12, jikes 1.22, and ecj 3.2. Also tested on x86 against sun-jdk-1.5.0.08 using javac 1.5.0.08, jikes 1.22, and ecj 3.2.

Compilation against jdk-1.3 in mx4j-3.0.1-r1 from Portage was broken due to incomplete implementation of build steps, so this revision of the ebuild requires >=virtual/jdk-1.4. See comments in ebuild.
Comment 10 Alex Tarkovsky 2006-10-27 21:42:29 UTC
Created attachment 100636 [details, diff]
files/mx4j-3.0.1-split-javadoc-build.patch
Comment 11 Alex Tarkovsky 2006-10-27 21:43:11 UTC
Created attachment 100637 [details]
mx4j-tools-3.0.1.ebuild

Tested on x86 against sun-jdk-1.4.2.12 using javac 1.4.2.12, jikes 1.22, and ecj 3.2. Also tested on x86 against sun-jdk-1.5.0.08 using javac 1.5.0.08, jikes 1.22, and ecj 3.2.
Comment 12 Alex Tarkovsky 2006-10-27 21:43:44 UTC
Created attachment 100638 [details, diff]
files/mx4j-tools-3.0.1-split-javadoc-build.patch
Comment 13 Alex Tarkovsky 2006-10-27 21:57:22 UTC
I've already bugspammed enough for today, so I'll just mention here that mx4j-2.1.0-r2.ebuild and mx4j-3.0.1-r2.ebuild need to have an einfo added to pkg_postinst() saying:

"Tools and examples are now located in a separate package, dev-java/mx4j-tools."
Comment 14 Petteri Räty (RETIRED) gentoo-dev 2006-12-02 09:44:46 UTC
It would be nice if we could get this upstream too so that we would not end up maintaining the patches ourselves.
Comment 15 Petteri Räty (RETIRED) gentoo-dev 2006-12-02 10:17:30 UTC
    [javac] 7. ERROR in /var/tmp/portage/dev-java/mx4j-tools-3.0.1/work/mx4j-3.0.1/src/tools/mx4j/tools/adaptor/ssl/SSLAdaptorServerSocketFactory.java
    [javac]  (at line 24)
    [javac]     import com.sun.net.ssl.KeyManagerFactory;
    [javac]            ^^^^^^^^^^^
    [javac] The import com.sun.net cannot be resolved

Stupid tools don't compile with ibm-jdk-bin
Comment 16 Petteri Räty (RETIRED) gentoo-dev 2006-12-02 14:45:23 UTC
https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/dev-java
Added with the following modifications:
- mx4j core code is now in the mx4j-core package
- mx4j package depends on both -core and -tools and has examples and doc use flags
- This way emerge mx4j will give you about the same result as the upstream binary
- the mx4j metapackage needs a patched java-pkg-opt-2 eclass so that it does not     
  do build.xml rewriting when no java code is used but I will commit that soon
Comment 17 Alex Tarkovsky 2006-12-02 15:27:35 UTC
Comment on attachment 100637 [details]
mx4j-tools-3.0.1.ebuild

Use version in Java overlay.
Comment 18 Alex Tarkovsky 2006-12-02 15:28:09 UTC
Comment on attachment 100635 [details]
mx4j-3.0.1-r2.ebuild

Use version in Java overlay.
Comment 19 Petteri Räty (RETIRED) gentoo-dev 2006-12-03 06:38:00 UTC
I started to think that having mx4j with the tools use flag would have been easier to implement. But just now I came to think that as mx4j-tools can depend on jetty and jetty depends on mx4j-core, it is wiser to go with three ebuilds as then we can avoid the circular deps altogether.
Comment 20 Petteri Räty (RETIRED) gentoo-dev 2006-12-07 06:51:29 UTC
Split ebuilds committed to the tree. Thanks shillelagh.