Re: CDBS class for Ant, was Re: [PROPOSAL] dh_ant

2003-08-19 Thread Arnaud Vandyck
On Thu, 14 Aug 2003 22:27:05 +0200 Stefan Gybas [EMAIL PROTECTED] wrote: [...] If you are maintaining a package which uses Ant please test the new build system and send me feedback. I'll submit the two files to the CDBS authors if I don't receive any compaints or suggestions for major

Re: CDBS class for Ant, was Re: [PROPOSAL] dh_ant

2003-08-19 Thread Stefan Gybas
Arnaud Vandyck wrote: Hi Stefan, I'm migrating my libgef-java to CBDS but I do not think you did commit your changes to libcommons-beanutils-java to pkg-java on Alioth? I'd like to see your complete debian/rules and you debian/control files. No, I did not commit the changes,

Re: CDBS class for Ant, was Re: [PROPOSAL] dh_ant

2003-08-19 Thread Arnaud Vandyck
On Tue, 19 Aug 2003 15:59:33 +0200 Stefan Gybas [EMAIL PROTECTED] wrote: Arnaud Vandyck wrote: Hi Stefan, I'm migrating my libgef-java to CBDS but I do not think you did commit your changes to libcommons-beanutils-java to pkg-java on Alioth? I'd like to see your complete

Re: CDBS class for Ant, was Re: [PROPOSAL] dh_ant

2003-08-19 Thread Arnaud Vandyck
On Thu, 14 Aug 2003 22:27:05 +0200 Stefan Gybas [EMAIL PROTECTED] wrote: [...] If you are maintaining a package which uses Ant please test the new build system and send me feedback. I'll submit the two files to the CDBS authors if I don't receive any compaints or suggestions for major

Re: CDBS class for Ant, was Re: [PROPOSAL] dh_ant

2003-08-19 Thread Stefan Gybas
Arnaud Vandyck wrote: Hi Stefan, I'm migrating my libgef-java to CBDS but I do not think you did commit your changes to libcommons-beanutils-java to pkg-java on Alioth? I'd like to see your complete debian/rules and you debian/control files. No, I did not commit the changes,

Re: CDBS class for Ant, was Re: [PROPOSAL] dh_ant

2003-08-19 Thread Arnaud Vandyck
On Tue, 19 Aug 2003 15:59:33 +0200 Stefan Gybas [EMAIL PROTECTED] wrote: Arnaud Vandyck wrote: Hi Stefan, I'm migrating my libgef-java to CBDS but I do not think you did commit your changes to libcommons-beanutils-java to pkg-java on Alioth? I'd like to see your complete

Re: [PROPOSAL] dh_ant

2003-08-16 Thread Jan Schulz
Hello Arnaud, Friday, August 15, 2003, 11:46:31 PM, you wrote: Jan Schulz [EMAIL PROTECTED] wrote: IMO the big enchancement is, that you only have to specify the Depends once: in debian/control and everything else is added from there on. That's what we all want ;) Ok, I take that as an

Re: [PROPOSAL] dh_ant

2003-08-15 Thread Arnaud Vandyck
On Thu, 14 Aug 2003 21:39:17 +0200 Jan Schulz [EMAIL PROTECTED] wrote: [...] Usually you need to know what version of what lib you need. If that version is packages, you add this package name to your Depends: dh_java (or yourself, if thats not oncluded in such a script) will then add this

JAXP in debian [was Re: [PROPOSAL] dh_ant]

2003-08-15 Thread Xavier Renard
Hi all On Thu, 14 Aug 2003 21:39:17 +0200 Jan Schulz [EMAIL PROTECTED] wrote: libxalan2-java depends on libxerces2-java but you do not need xml-apis.jar AND xmlParserAPIs.jar in your classpath. It's up to the maintainer of the application to know what to do. This will anyway have to

Re: [PROPOSAL] dh_ant

2003-08-15 Thread Arnaud Vandyck
On Thu, 14 Aug 2003 21:39:17 +0200 Jan Schulz [EMAIL PROTECTED] wrote: [...] Usually you need to know what version of what lib you need. If that version is packages, you add this package name to your Depends: dh_java (or yourself, if thats not oncluded in such a script) will then add this

JAXP in debian [was Re: [PROPOSAL] dh_ant]

2003-08-15 Thread Xavier Renard
Hi all On Thu, 14 Aug 2003 21:39:17 +0200 Jan Schulz [EMAIL PROTECTED] wrote: libxalan2-java depends on libxerces2-java but you do not need xml-apis.jar AND xmlParserAPIs.jar in your classpath. It's up to the maintainer of the application to know what to do. This will anyway have to

Re: [PROPOSAL] dh_ant

2003-08-14 Thread Jan Schulz
Hallo Jan, * Jan Schulz wrote: For the infrastructure: This shouldn't be the problem: We don't have to deal with 'runtime' loading, just with adding something 'shortly before runtime'. Plugins should be done anyway with seperate dirs and classloader (that's at least my experience with eclipse,

Re: [PROPOSAL] dh_ant

2003-08-14 Thread Jan Schulz
Hello Arnaud, Thursday, August 14, 2003, 3:33:46 PM, you wrote: * Jan Schulz wrote: ** getclasspath.sh This script will be used in any java applications startscript. You (or a dh_java) put the dependencies (package names) as param and it will give you the complete classpath based on

Re: [PROPOSAL] dh_ant

2003-08-14 Thread Jan Schulz
Hallo Arnaud, * Arnaud Vandyck wrote: Can you give me some more explanations (private or on the list). Here we go... I think you ar eon the list, so no private reply. * Jan Schulz wrote: ** getclasspath.sh This script will be used in any java applications startscript. You (or a dh_java) put

Re: [PROPOSAL] dh_ant

2003-07-30 Thread Arnaud Vandyck
Stefan Gybas [EMAIL PROTECTED] wrote: Jan Schulz wrote: I'm currently using this line to get 'java' in debian/rules: jdk_dirs=/usr/lib/j2sdk1.4 /usr/lib/j2se/1.4 /usr/lib/j2se/1.3 /usr/lib/j2sdk1.3 JAVA_HOME ?= $(shell for jdir in $(jdk_dirs) ; do if [ -d $$jdir ]; \ then echo \

Re: [PROPOSAL] dh_ant

2003-07-30 Thread Arnaud Vandyck
Stefan Gybas [EMAIL PROTECTED] wrote: Jan Schulz wrote: I'm currently using this line to get 'java' in debian/rules: jdk_dirs=/usr/lib/j2sdk1.4 /usr/lib/j2se/1.4 /usr/lib/j2se/1.3 /usr/lib/j2sdk1.3 JAVA_HOME ?= $(shell for jdir in $(jdk_dirs) ; do if [ -d $$jdir ]; \ then echo \

Re: [PROPOSAL] dh_ant

2003-07-30 Thread Andrew Pimlott
On Tue, Jul 29, 2003 at 08:23:23PM +0200, Stefan Gybas wrote: It is just for building the package. I don't think that most users will rebuild the Java packages, especially since they are architecture independent. You also need a lot of -dev packages (and gcc) for rebuilding C and C++

Re: [PROPOSAL] dh_ant

2003-07-30 Thread Andrew Pimlott
On Tue, Jul 29, 2003 at 03:45:08PM +0200, Stefan Gybas wrote: Andrew Pimlott wrote: You might want official builds to always use the same compiler, but there's no reason not to make it convenient for others to use their preferred compiler. Especially when the preferred compiler is

Re: [PROPOSAL] dh_ant

2003-07-30 Thread Jan Schulz
Hallo Andrew, * Andrew Pimlott wrote: If nothing else, you could put a variable FORCE_OFFICIAL_BUILD_DEPENDENCIES=1 at the top of debian/rules, and let people unset it. It would be nice if something like this became standard for all packages. How is that actually handled on the buildd maschines

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Arnaud Vandyck
Stefan Gybas [EMAIL PROTECTED] wrote: Daniel Bonniot wrote: It's best to have both options. Otherwise it forces every package to build-depend on a specific JVM, even though some might work with any JVM. That's exactly the purpose. A build dependency for a JVM should be specific, see

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Andrew Pimlott
On Mon, Jul 28, 2003 at 07:13:47PM +0200, Stefan Gybas wrote: That's exactly the purpose. A build dependency for a JVM should be specific, see http://pkg-java.alioth.debian.org/building.html for the reasons. You might want official builds to always use the same compiler, but there's no

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Stefan Gybas
Andrew Pimlott wrote: You might want official builds to always use the same compiler, but there's no reason not to make it convenient for others to use their preferred compiler. Especially when the preferred compiler is proprietary. We should be moving away from hard-coding knowledge about the

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Jan Schulz
Hallo Arnaud, * Arnaud Vandyck wrote: Stefan Gybas [EMAIL PROTECTED] wrote: What are the possible values of JAVA_HOME where you want to use something different from Blackdown's or Sun's JDK? There are a lot IMO: The values, where mpkg-j2sdk puts the JDKs, /usr/local... and so on. I'm

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Arnaud Vandyck
Jan Schulz [EMAIL PROTECTED] wrote: [...] I'm currently using this line to get 'java' in debian/rules: jdk_dirs=/usr/lib/j2sdk1.4 /usr/lib/j2se/1.4 /usr/lib/j2se/1.3 /usr/lib/j2sdk1.3 JAVA_HOME ?= $(shell for jdir in $(jdk_dirs) ; do if [ -d $$jdir ]; \ then echo \ $$jdir;exit 0;fi;done)

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Stefan Gybas
Arnaud Vandyck wrote: Excellent! ;) Can I copy/paste it in mine? ;) No, please don't! I've written this code 2 years ago when Blackdown changed their JAVA_HOME in the j2sdk1.3 packages from /usr/lib/j2sdk1.3 to /usr/lib/j2se/1.3 so packages could be build with both versions (see #122584). It

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Jan Schulz
Hallo Stefan, * Stefan Gybas wrote: Jan Schulz wrote: In eclipse? I think #197484 is a perfect example why this is bad and why you should use one specific JDK version. Yep, that one was bad. But I don't think that I want to install a specific JDK just for compiling. OK, I've curently 5 JDKs

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Jan Schulz
Hallo Stefan, * Stefan Gybas wrote: I've had a look at this bug and I thing we should not fource a specific javac or java at our users. If they don't want to download a BD JDK, then this should be made possible. It is just for building the package. I don't think that most users will rebuild the

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Stefan Gybas
Jan Schulz wrote: I'm doing it all the time: I'm running woody and I have specified deb ... stable deb-src ... unstable You are a package manager, not a standard user. You should have a lot of differnt JDK installed anyway to be ably to very bug reports so what's the problem with on specific

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Andrew Pimlott
On Mon, Jul 28, 2003 at 07:13:47PM +0200, Stefan Gybas wrote: That's exactly the purpose. A build dependency for a JVM should be specific, see http://pkg-java.alioth.debian.org/building.html for the reasons. You might want official builds to always use the same compiler, but there's no

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Stefan Gybas
Andrew Pimlott wrote: You might want official builds to always use the same compiler, but there's no reason not to make it convenient for others to use their preferred compiler. Especially when the preferred compiler is proprietary. We should be moving away from hard-coding knowledge about the

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Arnaud Vandyck
Jan Schulz [EMAIL PROTECTED] wrote: [...] I'm currently using this line to get 'java' in debian/rules: jdk_dirs=/usr/lib/j2sdk1.4 /usr/lib/j2se/1.4 /usr/lib/j2se/1.3 /usr/lib/j2sdk1.3 JAVA_HOME ?= $(shell for jdir in $(jdk_dirs) ; do if [ -d $$jdir ]; \ then echo \ $$jdir;exit 0;fi;done)

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Stefan Gybas
Arnaud Vandyck wrote: Excellent! ;) Can I copy/paste it in mine? ;) No, please don't! I've written this code 2 years ago when Blackdown changed their JAVA_HOME in the j2sdk1.3 packages from /usr/lib/j2sdk1.3 to /usr/lib/j2se/1.3 so packages could be build with both versions (see #122584). It

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Jan Schulz
Hallo Stefan, * Stefan Gybas wrote: Jan Schulz wrote: In eclipse? I think #197484 is a perfect example why this is bad and why you should use one specific JDK version. Yep, that one was bad. But I don't think that I want to install a specific JDK just for compiling. OK, I've curently 5 JDKs

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Jan Schulz
Hallo Stefan, * Stefan Gybas wrote: I've had a look at this bug and I thing we should not fource a specific javac or java at our users. If they don't want to download a BD JDK, then this should be made possible. It is just for building the package. I don't think that most users will rebuild the

Re: [PROPOSAL] dh_ant

2003-07-29 Thread Stefan Gybas
Jan Schulz wrote: I'm doing it all the time: I'm running woody and I have specified deb ... stable deb-src ... unstable You are a package manager, not a standard user. You should have a lot of differnt JDK installed anyway to be ably to very bug reports so what's the problem with on specific JDK

[PROPOSAL] dh_ant

2003-07-28 Thread Arnaud Vandyck
Hi all, A lot of java packages are now build with ant and I feel like it'd be a good idea to have common practices with ant. The recent idea comming with the proposed Jetty package (debian/ant.properties file) is an example of good practices we could use. I'd propose to conform to

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Ross Burton
On Mon, 2003-07-28 at 13:47, Stefan Gybas wrote: Arnaud Vandyck wrote: I'd propose to conform to dh_* and use something like debian/ant or debian/package.ant I think I have a better solution. I'd like to create an Ant class for CDBS (http://build-common.alioth.debian.org/) so

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Ben Burton
JAVA_HOME=/usr/lib/j2se/1.4 Would there be a way of making this bit magic? i.e. following the /usr/bin/java symlink? This is dangerous - even if you jave j2sdk1.4 installed, /usr/bin/java might still point to kaffe, gij, etc. I'd stick with a hard-coded path, especially if it requires

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Jan Schulz
Hallo Arnaud, * Arnaud Vandyck wrote: I'd propose to conform to dh_* and use something like +1 debian/ant or debian/package.ant I don't think that a package.ant will be usefull: In eclipse, I have two buildfiles (one patched, one patched into existence), which I call tree times each (as the

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Jan Schulz
Hallo Stefan, * Stefan Gybas wrote: I think I have a better solution. I'd like to create an Ant class for CDBS (http://build-common.alioth.debian.org/) so debian/rules will become really simple. For example, take a look at debian/rules from the latest doc++ package, it's really amazing.

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Stefan Gybas
Ross Burton wrote: Excellent plan. CDBS is a godsend for packaging GNOME software (2 includes). I must note here that the initial idea for a CDBS Ant class was from Mark Howard, so he deserves most of the credits. I didn't even know what CDBS was until he told me. :-) Stefan -- To

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Daniel Bonniot
Ben Burton wrote: JAVA_HOME=/usr/lib/j2se/1.4 Would there be a way of making this bit magic? i.e. following the /usr/bin/java symlink? This is dangerous - even if you jave j2sdk1.4 installed, /usr/bin/java might still point to kaffe, gij, etc. I'd stick with a hard-coded path,

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Stefan Gybas
Jan Schulz wrote: I don't agree, at least until this can also be done with packages, where I have to call differnt targets, install difeferently and so on. You can do this, just add the additional required commands to the corresponding targets in debian/rules, like I did in doc++: --- cut here

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Stefan Gybas
Daniel Bonniot wrote: It's best to have both options. Otherwise it forces every package to build-depend on a specific JVM, even though some might work with any JVM. That's exactly the purpose. A build dependency for a JVM should be specific, see http://pkg-java.alioth.debian.org/building.html

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Mark Howard
On Mon, 28 Jul 2003 14:47:35 +0200, Stefan Gybas wrote: I'd propose to conform to dh_* and use something like debian/ant or debian/package.ant I think I have a better solution. I'd like to create an Ant class for CDBS I want both! Seriously, there are some cases where a full cdbs class

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Ben Burton
JAVA_HOME=/usr/lib/j2se/1.4 Would there be a way of making this bit magic? i.e. following the /usr/bin/java symlink? This is dangerous - even if you jave j2sdk1.4 installed, /usr/bin/java might still point to kaffe, gij, etc. I'd stick with a hard-coded path, especially if it requires

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Jan Schulz
Hallo Arnaud, * Arnaud Vandyck wrote: I'd propose to conform to dh_* and use something like +1 debian/ant or debian/package.ant I don't think that a package.ant will be usefull: In eclipse, I have two buildfiles (one patched, one patched into existence), which I call tree times each (as the

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Jan Schulz
Hallo Stefan, * Stefan Gybas wrote: I think I have a better solution. I'd like to create an Ant class for CDBS (http://build-common.alioth.debian.org/) so debian/rules will become really simple. For example, take a look at debian/rules from the latest doc++ package, it's really amazing.

Re: [PROPOSAL] dh_ant

2003-07-28 Thread Stefan Gybas
Jan Schulz wrote: I don't agree, at least until this can also be done with packages, where I have to call differnt targets, install difeferently and so on. You can do this, just add the additional required commands to the corresponding targets in debian/rules, like I did in doc++: --- cut here ---