Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147469 - www-servers/jetty-6.0.0 binary ebuild
Summary: www-servers/jetty-6.0.0 binary ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-09-13 09:14 UTC by peak eyed
Modified: 2008-02-10 21:44 UTC (History)
1 user (show)

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


Attachments
jetty-6.0.0.ebuild (jetty-6.0.0.ebuild,3.11 KB, text/plain)
2006-09-13 09:15 UTC, peak eyed
Details
ChangeLog (ChangeLog,1.57 KB, text/plain)
2006-09-13 09:16 UTC, peak eyed
Details
ChangeLog (ChangeLog,1.57 KB, text/plain)
2006-09-13 09:16 UTC, peak eyed
Details
files/6.0.0/jetty (jetty,1010 bytes, text/plain)
2006-09-13 09:17 UTC, peak eyed
Details
files/6.0.0/jetty.init (jetty.init,751 bytes, text/plain)
2006-09-13 09:17 UTC, peak eyed
Details
jetty-6.0.0.ebuild (jetty-6.0.0.ebuild,3.04 KB, text/plain)
2006-09-21 09:13 UTC, Mike McQuaid
Details
www-servers/jetty/jetty-6.0.0.ebuild (jetty-6.0.0.ebuild,2.41 KB, text/plain)
2006-09-22 05:39 UTC, Mike McQuaid
Details
www-servers/jetty/files/jetty-6.0.0-init.d (jetty-6.0.0-init.d,752 bytes, text/plain)
2006-09-22 05:40 UTC, Mike McQuaid
Details
www-servers/jetty/files/jetty-6.0.0-conf.d (jetty-6.0.0-conf.d,1012 bytes, text/plain)
2006-09-22 05:41 UTC, Mike McQuaid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description peak eyed 2006-09-13 09:14:06 UTC
Revised ebuild for jetty from source
Comment 1 peak eyed 2006-09-13 09:15:39 UTC
Created attachment 96878 [details]
jetty-6.0.0.ebuild
Comment 2 peak eyed 2006-09-13 09:16:01 UTC
Created attachment 96879 [details]
ChangeLog
Comment 3 peak eyed 2006-09-13 09:16:21 UTC
Created attachment 96880 [details]
ChangeLog
Comment 4 peak eyed 2006-09-13 09:17:20 UTC
Created attachment 96881 [details]
files/6.0.0/jetty
Comment 5 peak eyed 2006-09-13 09:17:39 UTC
Created attachment 96882 [details]
files/6.0.0/jetty.init
Comment 6 Mike McQuaid 2006-09-14 19:22:04 UTC
I'm getting this, I guess due to my usersandbox userfetch userpriv.

Also, any reason you aren't using the tar.gz file from the website, now its out?

 * subversion check out start -->
 *      repository: http://svn.codehaus.org/jetty/jetty/tags/jetty-6.0.0
mkdir: cannot create directory `jetty': Permission denied

!!! ERROR: www-servers/jetty-6.0.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  jetty-6.0.0.ebuild, line 19:   Called subversion_src_unpack
  subversion.eclass, line 278:   Called subversion_fetch
  subversion.eclass, line 183:   Called die

!!! subversion.eclass: can't mkdir jetty.
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! 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.08"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info
!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 7 Josh Nichols (RETIRED) gentoo-dev 2006-09-14 19:46:43 UTC
Live ebuilds, ie that pull from svn/cvs are relatively discouraged. Considering it is tagged, should probably make a tarball of it instead. Or better yet, use a released distfile if there is one containing source..
Comment 8 Josh Nichols (RETIRED) gentoo-dev 2006-09-14 19:52:49 UTC
There are a number of other issues that need to be addressed. For starters, we aren't supporting building packages using maven yet for several reasons. See section of the meeting notes from our recent meeting:
http://planet.gentoo.org/developers/nichoj/2006/09/10/summary_of_java_team_meeting

Don't inherit java-vm-2. That is explicitly for vms. So unless jetty includes a vm, it doesn't need it :)

The src_unpack is redudant, as subversion exports its src_unpack.. but as mentioned, subversion shouldn't be used in this case.

Unnecessary cd ${S} in src_compile, as this happens by default.

You don't need to switch-vm. This happens automatically for you.

You could use ${T} as root's home, since that is already a temp dir. But as mentioned, we're not supporting building with maven.

I would also consider slotting jetty, because we may want to let users have more than one jetty installed, ie jetty-5, jetty-4, etc.
Comment 9 Mike McQuaid 2006-09-15 04:09:27 UTC
http://prdownloads.sourceforge.net/jetty/jetty-6.0.0.zip?download

Thats a valid url. Are we cool with using zips for downloads?
Comment 10 Josh Nichols (RETIRED) gentoo-dev 2006-09-15 05:01:00 UTC
Yes, that's fine. Just be sure do DEPEND on app-arch/unzip.
Comment 11 Mike McQuaid 2006-09-21 09:13:24 UTC
Created attachment 97670 [details]
jetty-6.0.0.ebuild

Hows this one look? Using zips and slotted.
Comment 12 Josh Nichols (RETIRED) gentoo-dev 2006-09-21 10:42:47 UTC
Slightly better. But there are still a number of improvements that could be made:

P=${PN}-${PV}, so you can use the SRC_URI:
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"

Since this is a major release from what was last in the tree, keywords should be dropped to what you can test on. It is also worth noting that we don't support Java on sparc in particular.

The indentation in DEPEND is inconsistent, ie some is tabs, other is spaces.

I'm pretty sure you generally want to be doing the creation of users/group in pkg_setup. This is because pkg_setup is the only phase that would happen when using binpkgs (tbz2). Doing a backup off the old /opt/jetty also seems a bit questionable to me.

In src_compile, still making maven_temp and using that  as maven home, should use ${T} instead. Also still using maven, which we aren't supporting yet within ebuilds. See http://overlays.gentoo.org/proj/java/wiki/Maven_Notes

In src_install:
 * INSTALLING isn't used for anything
 * There is a way to set default options for doins, so it'd be owned by jetty by default. I forget offhand the way, but it should be in developer handbook or the devmanual.
 * There are convienence methods for installing conf.d and init.d methods, ie doconfd, newconfd, doinitd, newinitd.
 * Use insinto /etc/jetty and doins instead of cp
 * Use insinto ${JETTY_HOME} and doins -r instead of cp
Comment 13 Mike McQuaid 2006-09-22 05:39:35 UTC
Created attachment 97738 [details]
www-servers/jetty/jetty-6.0.0.ebuild
Comment 14 Mike McQuaid 2006-09-22 05:40:40 UTC
Created attachment 97739 [details]
www-servers/jetty/files/jetty-6.0.0-init.d
Comment 15 Mike McQuaid 2006-09-22 05:41:12 UTC
Created attachment 97740 [details]
www-servers/jetty/files/jetty-6.0.0-conf.d
Comment 16 Mike McQuaid 2006-09-22 05:42:36 UTC
How do these new ones look?
Think I did all your changes, added an "examples" useflag, made the doc useflag just vary on javadoc, stopped using maven and made the slotting nicer.
Comment 17 Josh Nichols (RETIRED) gentoo-dev 2006-09-22 18:54:07 UTC
Looks much better. However, now the source isn't being compiled :) I'm not sure what the best way to deal with it is. Basically, for each maven module, you'd need to do mvn ant:ant to get a build.xml, and build them that way.

Another minor thing:
	use examples && doins -r examples extras project-website webapps \
		|| dodir ${JETTY_HOME}/webapps
This is a bit unwieldly, would be clearer to use if/else
Comment 18 Mike McQuaid 2006-09-22 19:57:32 UTC
(In reply to comment #17)
> Looks much better. However, now the source isn't being compiled :) I'm not sure
> what the best way to deal with it is. Basically, for each maven module, you'd
> need to do mvn ant:ant to get a build.xml, and build them that way.
Yeh, I realise that it isn't, but its distributed as a working binary, you don't need to use maven, the other guy just chose to. Should it be jetty-bin, or is it fine as jetty, as you don't support maven building yet?


> Another minor thing:
>         use examples && doins -r examples extras project-website webapps \
>                 || dodir ${JETTY_HOME}/webapps
> This is a bit unwieldly, would be clearer to use if/else
Sure thing, will sort this.
You may want to obsolete the other ebuilds, as I can't.

Comment 19 Josh Nichols (RETIRED) gentoo-dev 2006-09-22 20:08:11 UTC
(In reply to comment #18)
> Yeh, I realise that it isn't, but its distributed as a working binary, you
> don't need to use maven, the other guy just chose to. Should it be jetty-bin,
> or is it fine as jetty, as you don't support maven building yet?
> 
We should be building it, that is what we should do :) What I was saying above is generate build.xml files for eveything, stick those into ${FILESDIR}, then use ant at build time.
Comment 20 Mike McQuaid 2006-09-22 20:32:31 UTC
> We should be building it, that is what we should do :) What I was saying above
> is generate build.xml files for eveything, stick those into ${FILESDIR}, then
> use ant at build time.
Can that be done automagically, or does it require all the build.xml files to be manually created?
Comment 21 Josh Nichols (RETIRED) gentoo-dev 2006-09-22 23:11:24 UTC
Only one way to find out...
Comment 22 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-01-29 22:54:54 UTC
This is a binary ebuild and really would need to be compile from source for acceptance. If someone works on a compile from source version, gets it into decent shape, and it meets minimum QA. We will add it to the overlay like with 5.1.x per bug 68082
Comment 23 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-01-26 18:43:56 UTC
Closing bug. Removed from tree, till we get a maintainer and current version from source.