-
Notifications
You must be signed in to change notification settings - Fork 445
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
Support for BuildArch SPEC configuration #112
Comments
You may have nailed a long standing bug from the differences between OSX rpmbuild and linux-y versions. I think you're on to something here. If this doesn't break the linux building, then I'm more than willing to make the change. The first rule of the native packager is that building the natives on the native platform should work. The second is that we should try to support any platform building for any other if reasonable methods exist. |
I totally agree, but it would be nice to be able to build linux distributable components on a "linux-like" platform like OsX :) A possible solution might be to introduce another configuration key in Keys to support setting the value (which will not be set at all by default). This would not break current working builds? Might even name it to experimental-somethingsomething to be clear that it is a test feature. I'm not good enough using rpmbuild to actually tell the implications of setting the
will do to other builds. How to build rpm packages says:
Which suggests that it should most likely be set if one actually is running with --target noarch ? Let me know if you want help implementing and/or testing this issue and I'll try to help, |
FIX #112 Adding BuildArch to the spec file
Hey, I dont have the noarch issue but i do have the issue with the fact that it sees the rpm script as an [error] from your message it seems like this is expected behavior. The rpm gets built but i wanted a way of it not assuming that there are errors in the build. Is this something to do with the return code from the bash each time that it is parsing? or maybe not getting? |
Yep, I think that's the problem. This is maybe an SBT issue. Confusing, but not harmful :( |
It's actually the |
I don't think it is, rpmbuild is responsible for creating the scripts from So this has to be something to do with it thinking stdout is infact stderr Jon On 25 February 2014 18:57, Josh Suereth [email protected] wrote:
|
When running rpm:package-bin on OsX the rpmbuild tool seems to be slightly different than when running on a linux (Ubuntu/Centos). This might be due to some configuration error on my OsX rpmbuild of course...
I'm trying to package a "noarch" rpm but on OsX it insists on building a "x86_64" rpm file even though the "noarch" flag is passed to rpmbuild.
If I edit the generated SPEC file adding:
And then running the rpmbuild command I get the correct "noarch".
rpmbuild -bb -v --buildroot /Users/peterl/Source/test/target/rpm/buildroot --define '_topdir /Users/peterl/Source/test/target/rpm' --target noarch target/rpm/SPECS/test.spec
Perhaps we could add support for "BuildArch" in RpmMetdata.writeSpec as well?
The text was updated successfully, but these errors were encountered: