| Summary: | sci-mathematics/kodkod-1.5.2: fails to build with JAVA_PKG_STRICT | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
| Component: | New packages | Assignee: | Mark Wright <gienah> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | java, sci-mathematics |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Diego Elio Pettenò (RETIRED)
2013-02-20 13:14:57 UTC
I updated kodkodi-1.5.2.ebuild: 17 Aug 2013; Mark Wright <gienah@gentoo.org> kodkodi-1.5.2.ebuild: Fix: Class files not found via DEPEND in package.env - by adding antlr-3 to JAVA_GENTOO_CLASSPATH. Try to fix bug #458462 - it merges ok with JAVA_PKG_STRICT="true" in my tests. I am unsure if my changes fix this bug though, as I could not reproduce this problem, it builds fine with JAVA_PKG_STRICT="true" in my tests. I reproduced the bug. waf is hard to deal with, here how I fixed it:
src_prepare() {
# ...
local x=""
for i in $JAVACFLAGS
do
if [ "${x}" == "" ]; then
x="'${i}'"
else
x="${x}, '${i}'"
fi
done
for j in $(find . -name wscript -print)
do
sed -e "s@def configure(conf):@def configure(conf):\n conf.env.JAVACFLAGS = [${x}]@" \
-i "${j}" \
|| die "Could not set JAVACFLAGS in ${j}"
done
}
|