Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676002 - >=dev-java/ant-core-1.9.13 does not like double quotes in "-Dgentoo.classpath=\"...\""
Summary: >=dev-java/ant-core-1.9.13 does not like double quotes in "-Dgentoo.classpath...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL: https://bz.apache.org/bugzilla/show_b...
Whiteboard:
Keywords:
Depends on:
Blocks: 675984 675990 675994 675996
  Show dependency tree
 
Reported: 2019-01-21 21:19 UTC by Miroslav Šulc
Modified: 2019-01-21 21:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2019-01-21 21:19:44 UTC
this causes the first and the last part of classpath being silently dropped and building packages then fails. it's the following line in java-utils-2.eclass:

antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\""

after being processed by ant script, it ends up as this:

... "-Dgentoo.classpath=\"...\""

and then the inner double quotes are used as part of the path(s).
Comment 1 Miroslav Šulc gentoo-dev 2019-01-21 21:30:43 UTC
commit 41c6bbf6ad278aa0a2b7b85c76c240a9135f9e21 (HEAD -> master, origin/master, origin/HEAD)
Author: Miroslav Šulc <fordfrog@gentoo.org>
Date:   Mon Jan 21 22:27:37 2019 +0100

    java-utils-2.eclass: fix for >=dev-java/ant-core-1.9.13
    
    ant does not like double quotes around classpath (bug #676002)
    
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 473b177e539a..1ffd7a03399b 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -2029,7 +2029,9 @@ eant() {
 
        if [[ ${cp#:} ]]; then
                # It seems ant does not like single quotes around ${cp}
-               antflags="${antflags} -Dgentoo.classpath=\"${cp#:}\""
+               # And ant 1.9.13+ also does not like double quotes around ${cp}
+               # https://bz.apache.org/bugzilla/show_bug.cgi?id=58898
+               antflags="${antflags} -Dgentoo.classpath=${cp#:}"
        fi
 
        [[ -n ${JAVA_PKG_DEBUG} ]] && echo ant ${antflags} "${@}"