Summary: | Ant RPM task is unable to build RPM package due to missing space character between option name and directory | ||
---|---|---|---|
Product: | Ant | Reporter: | Volodymyr Lisivka <vlisivka> |
Component: | Optional Tasks | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | CC: | shr3kst3r, vlisivka |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Attachments: | Example build.xml and .spec file |
Description
Volodymyr Lisivka
2008-07-01 05:56:17 UTC
Created attachment 22201 [details]
Example build.xml and .spec file
The RPM spec is not maintened for ages. And I recommand you to check jpackage initiative (www.jpackage.org), where ant and majors Java projects are actively maintened Regards Please, commit this trivial patch: diff -rub apache-ant-1.7.0.orig/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java --- apache-ant-1.7.0.orig/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java 2006-12-13 14:16:22.000000000 +0200 +++ apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java 2008-07-02 16:10:42.000000000 +0300 @@ -120,7 +120,7 @@ : rpmBuildCommand); if (topDir != null) { toExecute.createArgument().setValue("--define"); - toExecute.createArgument().setValue("_topdir" + topDir); + toExecute.createArgument().setValue("_topdir " + topDir); } toExecute.createArgument().setLine(command); - Can someone apply that one symbol patch or it will stay forever? (In reply to comment #2) > The RPM spec is not maintened for ages. And I recommand you to check jpackage > initiative (www.jpackage.org), where ant and majors Java projects are actively > maintened > > Regards (In reply to comment #4) > Can someone apply that one symbol patch or it will stay forever? It looks like there is a misunderstanding here. This bug is not about Ant's old spec file; the problem is that the Ant RPM task isn't calling rpmbuild properly for newer versions of RPM. For the record, I encountered this bug on Red Hat Enterprise Linux 5.3 while setting topdir in my Ant build file. It would really help if the suggest patch was applied. For now, I'm working around it by making sure my topdir doesn't have any hyphens in it. Trivial one-character bug is still no applied because Henri Gomez just ignores it for more than 1 year. Is Henri Gomez still alive? Can he respond here? you are talking about the rpm task, not about RPM containing Ant that we once provided (or better, Henri Gomez once did). Unfortunately I lack the karma to change the "assigned to" field, so either Volodymyr or Henri must change it to notifications@ant.a.o |