| Summary: | Problems with commons-validator-1.0.2-r1 ebuild | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Eivind Tagseth <eivindt-gentoo> |
| Component: | New packages | Assignee: | Java team <java> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Fixed in portage now. I moved stuff to src_unpack and slightly modified the echo. Works fine. |
Here's src_compile: src_compile() { echo "oro.jar=`java-config --classpath=oro`" >> build.properties echo "commons-digester.jar=`java-config --classpath=commons-digester`" >> build.properties echo "commons-collections.jar=`java-config --classpath=commons-collections`" >> build.properties echo "commons-logging.jar=`java-config --classpath=commons-logging`" | sed s/.*:// >> build.properties echo "commons-beanutils.jar=`java-config --classpath=commons-beanutils`" >> build.properties echo "xerces.jar=`java-config --classpath=xerces`" >> build.properties [usual make statements removed]. First, I think the above section should be part of src_unpack rather than compile. That's how most other packages handles things, and the above lines would make build.properties duplicate it self for each invocation of ebuild commons-validator compile. More seriously though, the commons-logging line above is wrong, the sed will remove more than it should, causing commons-logging to not be found. Suggested replacement: echo "commons-logging.jar=`java-config --classpath=commons-logging`" | sed 's/\(.*=\).*:/\1/' >> build.properties Eivind