Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 176856
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PPC Porters <ppc@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Vlastimil Babka (Caster) <caster@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 176856 depends on: Show dependency tree
Bug 176856 blocks: 174726 176971
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-02 22:27 0000
this will hurt, I'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 "atomicly" 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'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

------- Comment #1 From Vlastimil Babka (Caster) 2007-05-03 10:23:07 0000 -------
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't have eclipse-sdk nor tomcat even keyworded
so they can just omit those in the instructions.

------- Comment #2 From Raúl Porcel 2007-05-03 18:18:59 0000 -------
ia64 stable

------- Comment #3 From Markus Rothe 2007-05-03 20:19:02 0000 -------
ppc64 stable

------- Comment #4 From Petteri Räty 2007-05-03 22:25:13 0000 -------
http://overlays.gentoo.org/proj/java/browser/testcases/dev-java/ant-javamail

Here is a test for ant-javamail as 1.7.

------- Comment #5 From Matthias Langer 2007-05-04 01:28:28 0000 -------
(In reply to comment #4)
> Here is a test for ant-javamail as 1.7.

i guess that seems to work, as i get

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

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

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

"
# 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]
"

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="-doc -source" 
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="-jai -javamail -noantlr -nobcel -nobsf
-nocommonslogging -nocommonsnet -nojdepend -nojmf -nojsch -nolog4j -nooro
-noregexp -noresolver -noswing -noxalan" 

dev-java/ant-trax-1.7.0  
dev-java/jakarta-regexp-1.4-r1  USE="-doc -source"

------- Comment #6 From Petteri Räty 2007-05-04 09:08:14 0000 -------
(In reply to comment #5)
> 
> btw. i get these warnings when building one of my projects:
> "
> [...]
> [javac] warning: [path] bad path element
> "/usr/share/sun-javamail/lib/activation.jar": no such file or directory
>     [javac] warning: [path] bad path element
> "/usr/share/xalan/lib/xercesImpl.jar": no such file or directory
>     [javac] warning: [path] bad path element
> "/usr/share/xalan/lib/xml-apis.jar": no such file or directory
>     [javac] warning: [path] bad path element
> "/usr/share/ant-core/lib/xml-apis.jar": no such file or directory
>     [javac] warning: [path] bad path element
> "/usr/share/ant-core/lib/xercesImpl.jar": no such file or directory
>     [javac] warning: [path] bad path element
> "/usr/share/ant-core/lib/xalan.jar": no such file or directory
> [...]
> "
> 

Not surprising as none of these jars are not supposed to be installed on your
system.

------- Comment #7 From Andrej Kacian (RETIRED) 2007-05-04 12:00:08 0000 -------
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 "Failed to initialise MIME mail" message OK?

------- Comment #8 From Petteri Räty 2007-05-04 12:09:15 0000 -------
(In reply to comment #7)
> 
> Is the "Failed to initialise MIME mail" message OK?
> 

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.

------- Comment #9 From Petteri Räty 2007-05-04 12:12:04 0000 -------
(In reply to comment #7)
> 
> 
> Is the "Failed to initialise MIME mail" message OK?
> 

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

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

BUILD FAILED
Target "foo" does not exist in the project "null".

Total time: 0 seconds

------- Comment #10 From Andrej Kacian (RETIRED) 2007-05-04 12:20:56 0000 -------
ticho@leela ~ $ ANT_TASKS="ant-javamail" ant foo --execdebug
exec "/opt/sun-jdk-1.5.0.11/bin/java" -classpath
"/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"
-Dant.home="/usr/share/ant-core" -Dant.library.dir="/usr/share/ant-core/lib"
org.apache.tools.ant.launch.Launcher -cp "." "foo"
Buildfile: build.xml

BUILD FAILED
Target `foo' does not exist in this project.

Total time: 0 seconds
ticho@leela ~ $

------- Comment #11 From Petteri Räty 2007-05-04 12:55:32 0000 -------
(In reply to comment #10)
> "/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"
> -Dant.home="/usr/share/ant-core" -Dant.library.dir="/usr/share/ant-core/lib"
> org.apache.tools.ant.launch.Launcher -cp "." "foo"
> Buildfile: build.xml
> 

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

------- Comment #12 From Andrej Kacian (RETIRED) 2007-05-04 14:03:04 0000 -------
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

------- Comment #13 From Petteri Räty 2007-05-04 14:22:53 0000 -------
Ticho follow this:
http://www.cosmocode.de/en/blogs/detman/20070301091006/index.html

------- Comment #14 From Vlastimil Babka (Caster) 2007-05-04 14:25:18 0000 -------
ARCHES:

Sorry I forgot that you need USE="jai javamail" for dev-java/ant-tasks in order
to pull everything when installing dev-java/ant. javamail flag obviously pulls
ant-javamail, when it's missing, it results in comment 12

------- Comment #15 From Andrej Kacian (RETIRED) 2007-05-05 17:07:21 0000 -------
(In reply to comment #13)
> Ticho follow this:
> http://www.cosmocode.de/en/blogs/detman/20070301091006/index.html
> 

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. :)

------- Comment #16 From Tobias Scherbaum 2007-05-06 15:09:58 0000 -------
Everything except dev-util/eclipse-sdk-3.2.1-r2 keyworded for ppc,
dev-util/eclipse-sdk-3.2.1-r2 doesn't build on my ibook with 768 megs of ram -
you might want to adjust the check for needed ram ...

------- Comment #17 From William L. Thomson Jr. (RETIRED) 2007-05-12 18:32:13 0000 -------
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.

------- Comment #18 From William L. Thomson Jr. (RETIRED) 2007-05-12 18:53:46 0000 -------
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's a build
system change, and stabilization of other packages caused the current stable
one to break. Removing arch from cc.

------- Comment #19 From Tobias Scherbaum 2007-06-15 20:48:07 0000 -------
ppc stable

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug