- marked as trivial
Unable to build rpm using Red Hat 6.5
In the past I have always built monit using rpmbuild -tb monit-<version>.tar.gz
. However, as of monit 5.7 I am unable to do so. I get the following error:
error: line 179: second %prep
However, I don't see any problems with the spec file itself. It appears that this may be an issue with rpm when multiple spec files are present in the tarball. See the following link:
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=886395
Comments (8)
-
reporter -
reporter If I delete one of the spec files from the tarball (in my case the monit.spec in monit-5.7/ rather than deeply embedded one) it builds the rpm as normal so this indeed seems to be the cause of the problem. Removing one of them in the packaged tarball should solve the problem.
-
reporter - edited description
-
repo owner -
assigned issue to
- changed component to Monit
- changed version to 5.7
Thank you for report, the issue will be fixed in next Monit release (5.8)
Best regards, The Monit team
-
assigned issue to
-
repo owner - changed status to resolved
-
repo owner - removed version
Removing version: 5.7 (automated comment)
-
repo owner - changed component to 1. Monit
-
repo owner - changed component to Monit
- Log in to comment