Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68082 - www-servers/jetty-5.1.x built from source
Summary: www-servers/jetty-5.1.x built from source
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InOverlay
: 63244 94452 (view as bug list)
Depends on:
Blocks: 92518
  Show dependency tree
 
Reported: 2004-10-18 17:26 UTC by Kevin J. Menard, Jr.
Modified: 2008-01-26 18:42 UTC (History)
5 users (show)

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


Attachments
www-servers/jetty/jetty-5.1.1.ebuild (jetty-5.1.1.ebuild,6.74 KB, text/plain)
2005-01-04 12:16 UTC, tuXXer
Details
www-servers/jetty/files/5.1.1/jetty.conf (jetty.conf,932 bytes, text/plain)
2005-01-04 12:17 UTC, tuXXer
Details
www-servers/jetty/files/5.1.1/jetty.etc (jetty.etc,23 bytes, text/plain)
2005-01-04 12:17 UTC, tuXXer
Details
www-servers/jetty/files/5.1.1/jetty.init (jetty.init,1010 bytes, text/plain)
2005-01-04 12:17 UTC, tuXXer
Details
www-servers/jetty/files/5.1.1/jetty.patch (jetty.patch,2.43 KB, text/plain)
2005-01-04 12:17 UTC, tuXXer
Details
www-servers/jetty/jetty-5.1.1.ebuild (jetty-5.1.1.ebuild,6.44 KB, text/plain)
2005-01-18 13:27 UTC, tuXXer
Details
www-servers/jetty/files/5.1.1/jetty.patch (jetty.patch,4.54 KB, text/plain)
2005-01-18 13:28 UTC, tuXXer
Details
www-servers/jetty/files/5.1.1/jetty.init (jetty.init,1007 bytes, text/plain)
2005-01-18 13:28 UTC, tuXXer
Details
/jetty-5.1.1-r1.ebuild (jetty-5.1.1-r1.ebuild,6.45 KB, text/plain)
2005-05-15 02:08 UTC, Josh Nichols (RETIRED)
Details
jetty-5.1.3.ebuild (jetty-5.1.3.ebuild,6.41 KB, text/plain)
2005-05-15 13:37 UTC, Josh Nichols (RETIRED)
Details
jetty.patch for 5.1.3 (jetty.patch,4.27 KB, patch)
2005-05-15 13:38 UTC, Josh Nichols (RETIRED)
Details | Diff
jetty-5.1.3.ebuild (jetty-5.1.3.ebuild,6.79 KB, text/plain)
2005-06-29 18:39 UTC, Josh Nichols (RETIRED)
Details
jetty-5.1.3.ebuild (jetty-5.1.3.ebuild,6.64 KB, text/plain)
2005-06-30 01:45 UTC, Josh Nichols (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin J. Menard, Jr. 2004-10-18 17:26:22 UTC
Jetty 5.0.0 has been released (http://sourceforge.net/project/shownotes.php?release_id=266966) and it might be nice if Gentoo supported it.  If I get a chance, I'll try and come up with an ebuild, but I wanted to log this as a placeholder at least.
Comment 1 tuXXer 2004-11-17 00:26:49 UTC
Well Jetty 5.1.0 is out, yet
Comment 2 tuXXer 2005-01-04 12:16:39 UTC
Created attachment 47633 [details]
www-servers/jetty/jetty-5.1.1.ebuild
Comment 3 tuXXer 2005-01-04 12:17:08 UTC
Created attachment 47634 [details]
www-servers/jetty/files/5.1.1/jetty.conf
Comment 4 tuXXer 2005-01-04 12:17:24 UTC
Created attachment 47635 [details]
www-servers/jetty/files/5.1.1/jetty.etc
Comment 5 tuXXer 2005-01-04 12:17:40 UTC
Created attachment 47636 [details]
www-servers/jetty/files/5.1.1/jetty.init
Comment 6 tuXXer 2005-01-04 12:17:57 UTC
Created attachment 47637 [details]
www-servers/jetty/files/5.1.1/jetty.patch
Comment 7 tuXXer 2005-01-04 12:20:16 UTC
Adding an experimental source Jetty ebuild for version 5.1.1.
Have tried to make it as much comfortable as possible.
Ebuild works for me. Try it and make it better...
Comment 8 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-18 05:08:48 UTC
*** Bug 63244 has been marked as a duplicate of this bug. ***
Comment 9 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-18 05:11:49 UTC
just closed the old bug since we don't need to bugs which tell us the same. your ebuild looks good, the only problem is that you use packed jars. we need an proper tomcat ebuild which makes it possible for us to use java-pkg_jar-from tomcat-5 for example to make use of the jars in other ebuilds. you should also use java-pkg_dojar to install jetty's jar files. they're needed by other packages.
Comment 10 tuXXer 2005-01-18 05:21:08 UTC
OK, changing to java-pkg_dojar as soon as possible. With the proper tomcat ebuild. Which handling do you suggest? Freezing Jetty ebuild as long as this is the case or publishing it when changed to java-pkg_dojar and make the changes later?
Comment 11 tuXXer 2005-01-18 13:27:50 UTC
Created attachment 48880 [details]
www-servers/jetty/jetty-5.1.1.ebuild

Removing symlinks, lib and ext directories. No pointing libs to /usr/share...
because of java-pkg_dojar
Comment 12 tuXXer 2005-01-18 13:28:13 UTC
Created attachment 48881 [details]
www-servers/jetty/files/5.1.1/jetty.patch

Removing symlinks, lib and ext directories. No pointing libs to /usr/share...
because of java-pkg_dojar
Comment 13 tuXXer 2005-01-18 13:28:41 UTC
Created attachment 48882 [details]
www-servers/jetty/files/5.1.1/jetty.init
Comment 14 Daniel Palmer 2005-03-23 19:32:39 UTC
Tested fine here!  Had to USE="-junit" due to other apps on port 8080 and tests failing - but shouldn't be a problem for most.
Comment 15 Josh Nichols (RETIRED) gentoo-dev 2005-05-15 02:08:02 UTC
Created attachment 58938 [details]
/jetty-5.1.1-r1.ebuild

I have a couple improvements:

* Added dependency to mx4j, and use jars from that instead of packed jars
* Cleaned up DEPEND a bit, specifically consolidated all the extra? together
* Added note that extra/ext/activation.jar can be provided by sun-jaf-bin and
gnu-activation, but I'm not sure which should be used.
* In src_compile, changed it so you can make javadoc and/or do unit tests.
* In src_install, now it only does dojar for jar files in lib/. The ones in
ext/ are provided somewhere else already, and start/stop.jar are just used to
start and stop the server.

On a different note, is it really necessary that jetty be slotted?
Comment 16 tuXXer 2005-05-15 08:50:12 UTC
Well, saw you additions and changes. It looks very good. Thanks for your work/support. Thought that nobody works/looks on it, because my version is about four month old...

It is not necessary to slot the version. I'd slotted it because tomcat and other package are slotted, too. You could remove the slot, if you like to.

Btw. is it possible that a jetty version >4 getting in to portage, soon?
Comment 17 Josh Nichols (RETIRED) gentoo-dev 2005-05-15 13:37:13 UTC
Created attachment 58968 [details]
jetty-5.1.3.ebuild

Version bump.

* Changed to SLOT="0"
* Changed to ACCEPT_KEYWORDS="~x86"
* Removed installation of a file that is no longer there

The ${FILESDIR}/5.1.1 can be copied to ${FILESDIR}/5.1.3
Only the jetty.patch needs to be updated.
Comment 18 Josh Nichols (RETIRED) gentoo-dev 2005-05-15 13:38:44 UTC
Created attachment 58970 [details, diff]
jetty.patch for 5.1.3

One of the chunks from the jetty.patch for 5.1.1 failed, so this is a patch
that applies cleanly.
Comment 19 Josh Nichols (RETIRED) gentoo-dev 2005-06-29 18:39:01 UTC
Created attachment 62293 [details]
jetty-5.1.3.ebuild

Now all packed jars (for non-extras) are replaced with out own.
Changed SLOT back to 5... not sure why I changed it at first.
Fixed DEPEND and RDEPEND quite a bit:
    They were reversed, and DEPEND had RDEPEND in it..
    Ant, jikes, junit, and unzip are now in DEPEND
    Libraries are now in JDEPEND
    jdk and jre are now in the DEPEND and RDEPEND respectively

The extras have about 9 jars that still need to be replaced, so I disabled
USE=extra, and all that that entails.

I would imagine that the filesystem layout may need a bit of work. I would say
it'd be best to try to mimic tomcat's where possible.
Comment 20 tuXXer 2005-06-30 01:15:42 UTC
Well looks nice... Looking at it, the extra jars are indeed, too much. In my
opinion a good solution is to split out the package into base (which is the
current ebuild) and extra (which includes the extra file). Furthermore a meta
ebuild "jetty" would be nice to install both. One question: is there a reason
why you choose a hard fixed slot instead of a generic one ("${PV/.*}")?
Comment 21 Josh Nichols (RETIRED) gentoo-dev 2005-06-30 01:45:50 UTC
Created attachment 62304 [details]
jetty-5.1.3.ebuild

This time I got it right I swear...

* Finished commenteting out stuff from USE=extra :-[
* Reduced calls to ant down to one
* Added javadoc creation / installation
Comment 22 matthew.cline 2005-08-16 21:09:39 UTC
Thanks for everyone's efforts on getting this ebuild to work.

I ran into several instances where the ebuild and its associated files refered
to "jetty5" while the actual reference should be "jetty-5". For example,
$JETTY_USER is set as "jetty5" when, in reality, the user created during the
emrge is "jetty-5"
Comment 23 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-01-29 22:30:51 UTC
*** Bug 94452 has been marked as a duplicate of this bug. ***
Comment 24 kiorky 2007-04-21 19:17:10 UTC
Made some typos corrections and depend/rdepend enlightments to make it work.
Comment 25 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-01-26 18:42:42 UTC
Closing bug. Removed from tree, till we get a maintainer and current version from source.