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

Version 0.7.1 and onwards does not build RPMs on Mac OSX Host #266

Closed
adatoo opened this issue May 26, 2014 · 13 comments
Closed

Version 0.7.1 and onwards does not build RPMs on Mac OSX Host #266

adatoo opened this issue May 26, 2014 · 13 comments

Comments

@adatoo
Copy link

adatoo commented May 26, 2014

Version 0.7.0 successfully builds RPMs on Mac OSX Host. Version 0.7.1 does not. Please see my example Play project linux-deploy-sample for an example.

@muuki88 muuki88 added this to the 0.8.0 - windows services milestone May 26, 2014
@muuki88
Copy link
Contributor

muuki88 commented May 26, 2014

Can provide some details on this topic?

  • which rpm version are you using
  • what's the error message

We had some minor changes in the rpm build, which worked on the linux.
See ae4851c

Also take a look at http://www.scala-sbt.org/sbt-native-packager/DetailedTopics/redhat.html#jar-repackaging

@adatoo
Copy link
Author

adatoo commented May 27, 2014

Thanks for the quick response. Answers to your questions:

  • RPM version is 5.4.14.
  • Error Message - Please see attached screenshot.

screen shot

@adatoo
Copy link
Author

adatoo commented May 27, 2014

I also tried the setting rpmBrpJavaRepackJars := false but this did not work either.

@muuki88
Copy link
Contributor

muuki88 commented May 27, 2014

@kardapoltsev , we are testing things against rpm version 4.x. Did you ran any test against 5.x? I'm not sure if this causes the problem.

@kardapoltsev
Copy link
Member

No, the latest version that I have in repository is 4.11.0.1. Latest version in Ubuntu repo is 4.11.2-3.
I'll try to install rpm5 on my machine and test it.

@kardapoltsev
Copy link
Member

So... I've just installed rpmbuild 5.1.6 and got another error:

[info] [error] error: Group field must be present in package: (main package)
[info] [error] error: Package has no %description: rpm-test-0.1.0-1.noarch

Very interesting answer from stackoverflow

Apparently "Package has no %description" pops up when an unidentified error occurs. I solved this by formatting better the .spec: -I have given a path to source0 -I have provided a BuildRequired package (anything will do, I put gcc in there) -I have fixed indentation to use only tabs

All our tests was failed because they missing rpmGroup settings. After fixing this I've got the same error as @adatoo.

Relevant discussion on stackoverflow about _rpmconfigdir.

Also I've notice that now brp-compress is located in /usr/lib/rpm as in old version of brpJavaRepackJar.

@muuki88
Copy link
Contributor

muuki88 commented May 27, 2014

This is a rather strange and old error. I just found this, which didn't give any great insides.

Look for an unexpanded (because not defined in configuration) macro
in the spec file. The % is then passed to the shell which (correctly
but non-helpfully) whines about job control.

If rpmBrpJavaRepackJars := false is set, then it's the default build without any extra macros. So there is something else undefined.

@kardapoltsev
Copy link
Member

The problem is that in rpm5 _rpmconfigdir isn't defined.

@muuki88
Copy link
Contributor

muuki88 commented May 27, 2014

well played rpm, well played. :(
However _rpmconfigdir is only used in the brpJavaRepackJar and this macro is only included if rpmBrpJavaRepackJars := false. If rpmBrpJavaRepackJars := true the build should work.

@muuki88 muuki88 closed this as completed Sep 23, 2014
@EugenCepoi
Copy link

Is there a fix for this issue? I have the same problem when building with rpm 5. First "Package has no %description" and when tweaking things I got the other one "fg: no job control".
The same build works fine with rpm 4 on a debian.

Thanks

@muuki88
Copy link
Contributor

muuki88 commented Mar 31, 2015

I think this is out of scope of native packager. If you want to package rpms our main goal is to support it on the native platform. Sorry :'(

@EugenCepoi
Copy link

Ah sad :( Was thinking that this plugin had similar goals as jdeb. But perhaps deb packaging is more stable than rpm...

Might be of interest for others: actually when using rpmBrpJavaRepackJars := true and defining rpmGroup and rpmDescription, the rpm is being built. Even if we encounter that other error --rpm-requires: invalid option like explained in issue #327.

@muuki88
Copy link
Contributor

muuki88 commented Apr 1, 2015

Ah sad :( Was thinking that this plugin had similar goals as jdeb. But perhaps deb packaging is more stable than rpm...

Nope. We are using jdeb in fact to provide platformwide Debian packaging. Jdeb is a java-based Debian spec implementetion. I think there are no stable ones for rpm out there, because rpm does a lot more then Debian. Like compiling, optimzing etc.

Might be of interest for others: actually when using

Always is :)

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

No branches or pull requests

4 participants