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

rpm:packageBin broken in 0.7.0-RC3 #240

Closed
zoosky opened this issue May 1, 2014 · 1 comment
Closed

rpm:packageBin broken in 0.7.0-RC3 #240

zoosky opened this issue May 1, 2014 · 1 comment
Labels

Comments

@zoosky
Copy link
Contributor

zoosky commented May 1, 2014

Building an rpm package from https://github.com/pussinboots/sbt-rpm on SLES-11SP3 works fine with sbt 0.13.2

When I change the sbt-native-packager version from 0.6.4 to 0.7.0-RC3

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.0-RC3")
//addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.6.4")

the rpm:package task fails with this error:

package-war
[success] Total time: 0 s, completed 01.05.2014 05:28:47
rpm:packageBin
target /home/andreas/dev/sbt-rpm/target
[info] Building target platforms: noarch-Frank Ittermann-Linux
[info] Building for target noarch-Frank Ittermann-Linux
[info] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2795
[error] + umask 022
[error] + cd /home/andreas/dev/sbt-rpm/target/rpm/BUILD
[error] + '[' -e /home/andreas/dev/sbt-rpm/target/rpm/buildroot ']'
[error] + mv /home/andreas/dev/sbt-rpm/target/rpm/tmp-buildroot/usr /home/andreas/dev/sbt-rpm/target/rpm/buildroot
[error] + /usr/lib/rpm/brp-compress
[error] + /usr/lib/rpm/brp-strip /usr/bin/strip
[error] + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
[error] /var/tmp/rpm-tmp.2795: line 33: /usr/lib/rpm/brp-strip-static-archive: Datei oder Verzeichnis nicht gefunden
[error] error: Bad exit status from /var/tmp/rpm-tmp.2795 (%install)
[error] Bad exit status from /var/tmp/rpm-tmp.2795 (%install)
[info]
[info]
[info] RPM build errors:
[trace] Stack trace suppressed: run last rpm:packageBin for the full output.
error Unable to run rpmbuild, check output for details.
[error] Total time: 0 s, completed 01.05.2014 05:28:52

@muuki88 muuki88 added the bug label May 1, 2014
@muuki88
Copy link
Contributor

muuki88 commented May 1, 2014

This is a known behaviour and documented here. Turn on the rpm java repackaging with

rpmBrpJavaRepackJars := false

This removes the additional rpm macros which turn off this behavior.

@muuki88 muuki88 closed this as completed May 1, 2014
pussinboots pushed a commit to pussinboots/sbt-rpm that referenced this issue Jul 10, 2014
There is a known problem with sbt native packager and java see
sbt/sbt-native-packager#240
pussinboots pushed a commit to pussinboots/sbt-rpm that referenced this issue Jul 10, 2014
There is a known problem with sbt native packager and java see
sbt/sbt-native-packager#240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants