<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>176856</bug_id>
          
          <creation_ts>2007-05-02 22:27 0000</creation_ts>
          <short_desc>dev-java/ant-1.7.0 stabilization request</short_desc>
          <delta_ts>2007-06-15 20:48:07 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Java</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>STABLEREQ</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>174726</blocked>
    
    <blocked>176971</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>caster@gentoo.org</reporter>
          <assigned_to>ppc@gentoo.org</assigned_to>
          <cc>java@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-02 22:27:56 0000</bug_when>
            <thetext>this will hurt, I&apos;m sorry

background info: http://www.gentoo.org/proj/en/java/ant-guide.xml

ia64 has only dev-java/ant-core-1.7.0 to stable and can stop reading here. less fortunate arches follow:

ant is used to build about 99% of java packages and the layout changes were substantional so it should get more testing than usual, thanks
recommended workflow of testing and keywording:

(in whatever stable chroot you have, this is to test the transition)
- emerge dev-java/ant dev-java/eclipse-sdk www-servers/tomcat (all current stable)
- keyword all packages mentioned below locally
- try to update to dev-util/eclipse-sdk-3.2.1-r2
- run the script located at http://overlays.gentoo.org/proj/java/browser/scripts/re-emerge-everything-java.sh which will remerge all java packages in the chroot with the new ant version
- testcase http://overlays.gentoo.org/proj/java/browser/testcases/dev-java/jsch

(in java-clear chroot, to test new install)
- try emerge the keyworded dev-java/ant dev-java/eclipse-sdk and stable www-servers/tomcat from scratch

list of packages and recommended commit order. note that the things in first group all depend on ant-core but we want minimal delay between ant-core, ant-tasks and ant, because if users get hit by only ant-core stabled, they will most likely get upgrade/downgrade loops with blocks. OTOH nothing in stable depends on the stuff in first group so potential unsatisfied dep there is not such problem

dev-java/ant-nodeps-1.7.0
dev-java/ant-antlr-1.7.0
dev-java/ant-apache-bcel-1.7.0
dev-java/ant-apache-bsf-1.7.0
dev-java/ant-apache-log4j-1.7.0
dev-java/ant-apache-oro-1.7.0
dev-java/ant-apache-regexp-1.7.0
dev-java/ant-apache-resolver-1.7.0
dev-java/ant-commons-logging-1.7.0
dev-java/ant-commons-net-1.7.0
dev-java/ant-jai-1.7.0
dev-java/ant-javamail-1.7.0
dev-java/ant-jdepend-1.7.0
dev-java/ant-jmf-1.7.0
dev-java/ant-jsch-1.7.0-r1
dev-java/ant-junit-1.7.0
dev-java/ant-swing-1.7.0
dev-java/ant-trax-1.7.0

# these three as &quot;atomicly&quot; as possible
dev-java/ant-core-1.7.0
dev-java/ant-tasks-1.7.0-r2
dev-java/ant-1.7.0

# revbump that builds with ant 1.7.0, previous doesn&apos;t
dev-java/ant-owanttask-1.1-r12
# revbump that depends on ant 1.7.0 and is adjusted for the layout changes
dev-util/eclipse-sdk-3.2.1-r2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-03 10:23:07 0000</bug_when>
            <thetext>Ticho pointed me to one missing dep, you can stabilize it as the first thing, been there since december as version bump with new slot...:

# does not apply to ia64
dev-java/jakarta-regexp-1.4-r1

Also I realized that ppc64 doesn&apos;t have eclipse-sdk nor tomcat even keyworded so they can just omit those in the instructions.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-05-03 18:18:59 0000</bug_when>
            <thetext>ia64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-05-03 20:19:02 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-03 22:25:13 0000</bug_when>
            <thetext>http://overlays.gentoo.org/proj/java/browser/testcases/dev-java/ant-javamail

Here is a test for ant-javamail as 1.7.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlangc@gmx.at</who>
            <bug_when>2007-05-04 01:28:28 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Here is a test for ant-javamail as 1.7.

i guess that seems to work, as i get

&quot;
[...]
[mail] Sending email: Test message
     [mail] Failed to send email: 550 5.7.0 Need to authenticate via SMTP-AUTH-Login {mp005}
[...]
&quot;

btw. i get these warnings when building one of my projects:
&quot;
[...]
[javac] warning: [path] bad path element &quot;/usr/share/sun-javamail/lib/activation.jar&quot;: no such file or directory
    [javac] warning: [path] bad path element &quot;/usr/share/xalan/lib/xercesImpl.jar&quot;: no such file or directory
    [javac] warning: [path] bad path element &quot;/usr/share/xalan/lib/xml-apis.jar&quot;: no such file or directory
    [javac] warning: [path] bad path element &quot;/usr/share/ant-core/lib/xml-apis.jar&quot;: no such file or directory
    [javac] warning: [path] bad path element &quot;/usr/share/ant-core/lib/xercesImpl.jar&quot;: no such file or directory
    [javac] warning: [path] bad path element &quot;/usr/share/ant-core/lib/xalan.jar&quot;: no such file or directory
[...]
&quot;

however, note, that i&apos;m normally not testing java-packages, as i&apos;ve an unstable jdk installed - so feel free to ignore my results:

&quot;
# java-config -L
The following VMs are available for generation-2:
1)      Sun JDK 1.4.2.13 [sun-jdk-1.4]
*)      Sun JDK 1.5.0.11 [sun-jdk-1.5]
3)      Sun JDK 1.6.0 [sun-jdk-1.6]
&quot;

last but not least, here is what i have merged in detail for this bug:

dev-java/ant-1.7.0  
dev-java/ant-antlr-1.7.0  
dev-java/ant-apache-bcel-1.7.0  
dev-java/ant-apache-bsf-1.7.0  
dev-java/ant-apache-log4j-1.7.0  
dev-java/ant-apache-oro-1.7.0  
dev-java/ant-apache-regexp-1.7.0  
dev-java/ant-apache-resolver-1.7.0  
[dev-java/ant-commons-logging-1.7.0  
dev-java/ant-commons-net-1.7.0  
dev-java/ant-core-1.7.0  USE=&quot;-doc -source&quot; 
dev-java/ant-javamail-1.7.0  
dev-java/ant-jdepend-1.7.0  
dev-java/ant-jmf-1.7.0  
dev-java/ant-jsch-1.7.0-r1  
dev-java/ant-junit-1.7.0  
dev-java/ant-nodeps-1.7.0  
dev-java/ant-swing-1.7.0  

dev-java/ant-tasks-1.7.0-r2  USE=&quot;-jai -javamail -noantlr -nobcel -nobsf -nocommonslogging -nocommonsnet -nojdepend -nojmf -nojsch -nolog4j -nooro -noregexp -noresolver -noswing -noxalan&quot; 

dev-java/ant-trax-1.7.0  
dev-java/jakarta-regexp-1.4-r1  USE=&quot;-doc -source&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-04 09:08:14 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; 
&gt; btw. i get these warnings when building one of my projects:
&gt; &quot;
&gt; [...]
&gt; [javac] warning: [path] bad path element
&gt; &quot;/usr/share/sun-javamail/lib/activation.jar&quot;: no such file or directory
&gt;     [javac] warning: [path] bad path element
&gt; &quot;/usr/share/xalan/lib/xercesImpl.jar&quot;: no such file or directory
&gt;     [javac] warning: [path] bad path element
&gt; &quot;/usr/share/xalan/lib/xml-apis.jar&quot;: no such file or directory
&gt;     [javac] warning: [path] bad path element
&gt; &quot;/usr/share/ant-core/lib/xml-apis.jar&quot;: no such file or directory
&gt;     [javac] warning: [path] bad path element
&gt; &quot;/usr/share/ant-core/lib/xercesImpl.jar&quot;: no such file or directory
&gt;     [javac] warning: [path] bad path element
&gt; &quot;/usr/share/ant-core/lib/xalan.jar&quot;: no such file or directory
&gt; [...]
&gt; &quot;
&gt; 

Not surprising as none of these jars are not supposed to be installed on your system.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2007-05-04 12:00:08 0000</bug_when>
            <thetext>ticho@leela ~ $ ant -Dsmtp=localhost -Dmail=ticho@gentoo.org
Buildfile: build.xml

mail:
     [echo] Using server: localhost
     [echo] Using mail address: ticho@gentoo.org
     [mail] Failed to initialise MIME mail: org.apache.tools.ant.taskdefs.email.MimeMailer
     [mail] Sending email: Test message
     [mail] Sent email with 2 attachments

BUILD SUCCESSFUL
Total time: 2 seconds


Is the &quot;Failed to initialise MIME mail&quot; message OK?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-04 12:09:15 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; 
&gt; Is the &quot;Failed to initialise MIME mail&quot; message OK?
&gt; 

betelgeuse@pena /mnt/checkouts/java/testcases/dev-java/ant-javamail $ ant -Dsmtp=smtp.saunalahti.fi -Dmail=betelgeuse@gentoo.org
Buildfile: build.xml

mail:
     [echo] Using server: smtp.saunalahti.fi
     [echo] Using mail address: betelgeuse@gentoo.org
     [mail] Sending email: Test message
     [mail] Sent email with 1 attachment

BUILD SUCCESSFUL
Total time: 1 second

Not getting it here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-04 12:12:04 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; 
&gt; 
&gt; Is the &quot;Failed to initialise MIME mail&quot; message OK?
&gt; 

From http://www.nabble.com/Re:-Failed-to-initialise-MIME-mail-p1990259.html
&quot;The message &quot;failed to initialize mime mail&quot; means that due to the absence
of mail.jar, ant will use its own implementation
of sending mail.&quot;

What is your output of:
betelgeuse@pena /mnt/checkouts/java/testcases/dev-java/ant-javamail $ ANT_TASKS=&quot;ant-javamail&quot; ant foo --execdebug
exec &quot;/opt/sun-jdk-1.6.0.02_alpha01/bin/java&quot; -classpath &quot;/usr/share/ant-core/lib/ant-launcher.jar:/opt/sun-jdk-1.6.0.02_alpha01/lib/tools.jar&quot; -Dant.home=&quot;/usr/share/ant-core&quot; -Dant.library.dir=&quot;/usr/share/ant-core/lib&quot; -Djava.library.path=&quot;&quot; org.apache.tools.ant.launch.Launcher -lib &quot;/usr/share/sun-jaf/lib/activation.jar:/usr/share/ant-javamail/lib/ant-javamail.jar:/usr/share/sun-javamail/lib/mail.jar&quot; -cp &quot;&quot; &quot;foo&quot;
Buildfile: build.xml

BUILD FAILED
Target &quot;foo&quot; does not exist in the project &quot;null&quot;.

Total time: 0 seconds

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2007-05-04 12:20:56 0000</bug_when>
            <thetext>ticho@leela ~ $ ANT_TASKS=&quot;ant-javamail&quot; ant foo --execdebug
exec &quot;/opt/sun-jdk-1.5.0.11/bin/java&quot; -classpath &quot;/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/rhino-1.5/lib/js.jar:/usr/share/jython/lib/jython.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/commons-logging/lib/commons-logging-adapters.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/jsch/lib/jsch.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/jakarta-regexp-1.3/lib/jakarta-regexp.jar:/usr/share/xml-commons-external-1.3/lib/xml-apis.jar:/usr/share/jdepend/lib/jdepend.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar:/usr/share/junit/lib/junit.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/opt/sun-jdk-1.5.0.11/lib/tools.jar&quot; -Dant.home=&quot;/usr/share/ant-core&quot; -Dant.library.dir=&quot;/usr/share/ant-core/lib&quot; org.apache.tools.ant.launch.Launcher -cp &quot;.&quot; &quot;foo&quot;
Buildfile: build.xml

BUILD FAILED
Target `foo&apos; does not exist in this project.

Total time: 0 seconds
ticho@leela ~ $
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-04 12:55:32 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; &quot;/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/rhino-1.5/lib/js.jar:/usr/share/jython/lib/jython.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/commons-logging/lib/commons-logging-adapters.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/jsch/lib/jsch.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/jakarta-regexp-1.3/lib/jakarta-regexp.jar:/usr/share/xml-commons-external-1.3/lib/xml-apis.jar:/usr/share/jdepend/lib/jdepend.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar:/usr/share/junit/lib/junit.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/opt/sun-jdk-1.5.0.11/lib/tools.jar&quot;
&gt; -Dant.home=&quot;/usr/share/ant-core&quot; -Dant.library.dir=&quot;/usr/share/ant-core/lib&quot;
&gt; org.apache.tools.ant.launch.Launcher -cp &quot;.&quot; &quot;foo&quot;
&gt; Buildfile: build.xml
&gt; 

Are you sure you are running ant 1.7.0?
betelgeuse@pena /mnt/checkouts/java/testcases/dev-java/ant-javamail $ ant -version
Apache Ant version 1.7.0 compiled on April 18 2007

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2007-05-04 14:03:04 0000</bug_when>
            <thetext>Ah, right - I was doing this particular test outside of the chroot with 1.7.0. However:

leela ~ # ant -Dsmtp=localhost -Dmail=ticho@gentoo.org                                                                                                                              
Buildfile: build.xml

mail:
     [echo] Using server: localhost
     [echo] Using mail address: ticho@gentoo.org
     [mail] Failed to initialise MIME mail: org.apache.tools.ant.taskdefs.email.MimeMailer

BUILD SUCCESSFUL
Total time: 0 seconds
leela ~ # ant -version                                                                                                                                                              
Apache Ant version 1.7.0 compiled on May 3 2007
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-04 14:22:53 0000</bug_when>
            <thetext>Ticho follow this:
http://www.cosmocode.de/en/blogs/detman/20070301091006/index.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-04 14:25:18 0000</bug_when>
            <thetext>ARCHES:

Sorry I forgot that you need USE=&quot;jai javamail&quot; for dev-java/ant-tasks in order to pull everything when installing dev-java/ant. javamail flag obviously pulls ant-javamail, when it&apos;s missing, it results in comment 12</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2007-05-05 17:07:21 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Ticho follow this:
&gt; http://www.cosmocode.de/en/blogs/detman/20070301091006/index.html
&gt; 

Yep, that was the issue - I forgot to copy /etc/hosts to the new chroot.

All listed packages marked stable on x86, over and out. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-05-06 15:09:58 0000</bug_when>
            <thetext>Everything except dev-util/eclipse-sdk-3.2.1-r2 keyworded for ppc, dev-util/eclipse-sdk-3.2.1-r2 doesn&apos;t build on my ibook with 768 megs of ram - you might want to adjust the check for needed ram ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2007-05-12 18:32:13 0000</bug_when>
            <thetext>amd64 stable for all but dev-util/eclipse-sdk-3.2.1-r2. Leaving arch on cc till that package is stabilized. I lack a GUI on the stable amd64 server I test/stabilize on.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2007-05-12 18:53:46 0000</bug_when>
            <thetext>Since the stabilization broke eclipse-sdk, I went ahead and marked the newer version using split-ant stable less testing. Should be fine since it&apos;s a build system change, and stabilization of other packages caused the current stable one to break. Removing arch from cc.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-06-15 20:48:07 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
      
    </bug>

</bugzilla>