Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rpmbuild syntax in RpmHelper #2

Merged
merged 1 commit into from
Jan 19, 2012
Merged

Fix rpmbuild syntax in RpmHelper #2

merged 1 commit into from
Jan 19, 2012

Conversation

mtye
Copy link
Contributor

@mtye mtye commented Jan 18, 2012

Got another one for you, Josh...

I tried using the rpm:package-bin task and got this error:

[error] rpmbuild: --buildroot=/Users/mtye/webapplications/hellolift/target/rpm/buildroot: unknown option

According to the man doc for the version of rpmbuild I'm using (5.0.0, Mac OS X Snow Leopard), the syntax for the buildroot option is --buildroot DIRECTORY, not --buildroot=DIRECTORY.

I've been told (by colleagues more knowledgeable than I) that there are unfortunate behavioral inconsistencies between various versions of RPM - notably 4.9 vs. 5.0. However, they all seem to share the same option syntax.

So, my question is: Does the existing RpmHelper.buildPackage code work for you, and if so, on what platform/RPM version?

If it does work for you, then it may be necessary to add an rpmVersion setting to the plugin and adjust the rpmbuild args to accomodate the syntax differences between versions. Alternately, you could just mandate in the documentation that the plugin only works with specific version(s) of RPM.

If the existing code doesn't work for you, either, pull my patch and see if that fixes it. I also added some debug logging to help diagnose errors with the RPM packaging.

@jsuereth
Copy link
Member

I'm trying this out now. I'm using Fedora 11, so i've seen Mac software have odd BSD-ish command line parsers vs. the linux hippies. Let's see what happen!

jsuereth added a commit that referenced this pull request Jan 19, 2012
Fixed rpmbuild args for MacOS

* RPM build process forks avoid = now
* New debug commands

This commit courtesy of the awesome @mtye
@jsuereth jsuereth merged commit 4e6fa48 into sbt:master Jan 19, 2012
@jsuereth
Copy link
Member

I'm using 4.9.1.2 apparently. The merge works for 4.9, so I pulled it.

@mtye
Copy link
Contributor Author

mtye commented Jan 19, 2012

Cool. I'm glad this syntax works for both 4.9 and 5.0; it's much simpler that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants