Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: when javac is java-1.5.0-gcj ant seems to not be able to access environmental variables
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Summary: when javac is java-1.5.0-gcj ant seems to not be able to access environmental variables Product: Fedora Version: 15 Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: ant AssignedTo: pcheung@redhat.com ReportedBy: caolanm@redhat.com QAContact: extras-qa@fedoraproject.org CC: pcheung@redhat.com, akurtako@redhat.com, mmatejov@redhat.com, java-sig-commits@lists.fedoraproject.org Classification: Fedora Story Points: --- Type: ---
Created attachment 533096 --> https://bugzilla.redhat.com/attachment.cgi?id=533096 sample build.xml
Description of problem: ant doesn't seem to be able to resolve environment variables (or something clears the env) if the java in use is gcj rather than openjdk
Version-Release number of selected component (if applicable): ant-1.8.2-3.fc15
How reproducible: 100%
Steps to Reproduce: 1. alternatives --set javac /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javac 2. ant -f build.xml gives the contents of $USERNAME as expected 3. alternatives --set javac /usr/lib/jvm/java-1.5.0-gcj/bin/javac 4. ant -f build.xml gives "${env.USERNAME}"
Actual results: username
Expected results: ${env.USERNAME} string
Additional info:
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
--- Comment #1 from Alexander Kurtakov akurtako@redhat.com 2011-11-11 14:21:42 EST --- Setting only javac (without java, jar and etc) is crying for problems. I strongly recommend using system-switch-java so all the alternatives will be kept in sync. Another thing is that I'm not aware of a singel Fedora contributor using gcj for anything else but bootstrapping openjdk. A number of packages are depending on Java 6 features and it's quite possible that some of them are Ant dependencies. As I've been looking in most ant issues lately I don't think that ant on gcj deserves my time as long as it works on openjdk.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
--- Comment #2 from Caolan McNamara caolanm@redhat.com 2011-11-11 15:19:10 EST --- This is a minimal how to reproduce rather than "I spend my time twiddling alternatives for fun to annoy people". The actual problem is "mysterious build failure in koji basically when just requiring generic java-devel less than 1.7.0 getting satisfied by java-1.5.0-gcj which trips up in sucking in environmental variables giving an odd error"
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
--- Comment #3 from Alexander Kurtakov akurtako@redhat.com 2011-11-18 09:49:50 EST --- (In reply to comment #2)
This is a minimal how to reproduce rather than "I spend my time twiddling alternatives for fun to annoy people". The actual problem is "mysterious build failure in koji basically when just requiring generic java-devel less than 1.7.0 getting satisfied by java-1.5.0-gcj which trips up in sucking in environmental variables giving an odd error"
Sorry, if you get my response as personal attack it was not ment to be such. It was just a notice that as one of the very few active ant maintainers I do not care for gcj bugs at all and I can not justify any time spend on it and there are high chances that noone else will respond (sadly :( ) otherwise they would have done that. If this is the case, your best bet is BR/R: java/java-devel >= 1:1.6.0
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pcheung@redhat.com |jcapik@redhat.com
--- Comment #4 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com 2012-01-11 06:58:29 EST --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Jaromír Cápík jcapik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #5 from Jaromír Cápík jcapik@redhat.com 2012-02-01 08:27:51 EST --- Hello Caolan.
I can't reproduce that behavior on F16 and F17.
I get the following in case of both mentioned alternatives when executing the ant build from the regular user account.
[echo] property is ${env.USERNAME}
And surprisingly when I do 'su' WITHOUT DASH from my regular user account, I get the following for openjdk 1.6.0 ONLY:
[echo] property is jcapik
whilst gcj-1.5.0 returns:
[echo] property is ${env.USERNAME}
When I do 'su -', then I get the following in case of both alternatives:
[echo] property is ${env.USERNAME}
So ... as you see, I get the username filled in correctly ONLY when switched to openjdk 1.6.0 and building with ant executed from 'su'. That means the current behavior might be incorrect. I'll try to do a deeper analysis.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Fedora End Of Life endoflife@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |WONTFIX Last Closed| |2012-08-07 15:51:58
https://bugzilla.redhat.com/show_bug.cgi?id=753201
--- Comment #6 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a notice that Fedora 15 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 15. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '15' have been closed as WONTFIX.
(Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.)
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version.
Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 15 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Jaromír Cápík jcapik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ASSIGNED Version|15 |16 Resolution|WONTFIX |--- Keywords| |Reopened
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=753201
--- Comment #7 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=753201
Jaromír Cápík jcapik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|16 |17
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=753201
Jaromír Cápík jcapik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|when javac is |ant doesn't resolve |java-1.5.0-gcj ant seems to |environmental variables in |not be able to access |some cases |environmental variables |
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |low CC| |mizdebsk@redhat.com Version|17 |rawhide
--- Comment #8 from Mikolaj Izdebski mizdebsk@redhat.com --- Reproducible on Fedora 20. Because OpenJDK is default Java in Fedora I'm setting priority to low.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|jcapik@redhat.com |msimacek@redhat.com
--- Comment #9 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=753201
Michael Simacek msimacek@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Version|rawhide |20 Resolution|--- |WONTFIX Last Closed|2012-08-07 15:51:58 |2015-04-09 09:24:40
--- Comment #10 from Michael Simacek msimacek@redhat.com --- gcj has been retired for a long time. If you can reproduce it without gcj, feel free to repoen this.
java-sig-commits@lists.stg.fedoraproject.org