muuki88 / sbt-native-packager-examples

A set of sbt-native-pakager examples
Apache License 2.0
236 stars 55 forks source link

simple-rpm fails on Suse Leap 42.1 #8

Closed zoosky closed 8 years ago

zoosky commented 8 years ago

Unfortunately I see this error:

info] Loading project definition from /home/andreas/dev/sbt-native-packager-examples/simple-rpm/project                  
[info] Updating {file:/home/andreas/dev/sbt-native-packager-examples/simple-rpm/project/}simple-rpm-build...              
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading https://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar ...                                    
[info]  [SUCCESSFUL ] org.ow2.asm#asm;5.0.3!asm.jar (236ms)                                                               
[info] downloading https://jcenter.bintray.com/org/ow2/asm/asm-commons/5.0.3/asm-commons-5.0.3.jar ...
[info]  [SUCCESSFUL ] org.ow2.asm#asm-commons;5.0.3!asm-commons.jar (224ms)
[info] downloading https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar ...
[info]  [SUCCESSFUL ] org.ow2.asm#asm-tree;5.0.3!asm-tree.jar (168ms)
[info] Done updating.
[info] Set current project to simple-rpm (in build file:/home/andreas/dev/sbt-native-packager-examples/simple-rpm/)
> rpm:packageBin
[info] Wrote /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/scala-2.10/simple-rpm_2.10-1.0.pom
[info] Building target platforms: noarch-mukis.de, Muki-Linux
[info] Building for target noarch-mukis.de
[info] Executing(%install): /bin/sh -e /tmp/sbt_9368df18/rpm-tmp.MShUFI
[error] + umask 022
[error] + cd /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/BUILD
[error] + '[' -e /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/buildroot ']'
[error] + mv /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/etc /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/usr /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/var /home/andreas/dev/sbt-native-packager-examples/simple-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] /tmp/sbt_9368df18/rpm-tmp.MShUFI: line 39: /usr/lib/rpm/brp-strip-static-archive: No such file or directory
[error] error: Bad exit status from /tmp/sbt_9368df18/rpm-tmp.MShUFI (%install)
[error]     Bad exit status from /tmp/sbt_9368df18/rpm-tmp.MShUFI (%install)
[info] 
[info] 
[info] RPM build errors:
[trace] Stack trace suppressed: run last rpm:packageBin for the full output.
[error] (rpm:packageBin) Unable to run rpmbuild, check output for details. Errorcode 1
[error] Total time: 0 s, completed Feb 3, 2016 2:45:52 PM

As I try already for a some hours, is the RPM Build with 1.0 working at all?

zoosky commented 8 years ago

Here is the debug output. Leap 42.1 uses rpmbuild version 4.11.2

[info] Done packaging.
[debug] Copying /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/universal/tmp/bin/simple-rpm to /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/usr/share/simple-rpm/bin/simple-rpm
[debug] Copying /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/scala-2.10/simple-rpm_2.10-1.0.jar to /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/usr/share/simple-rpm/lib/de.muki.simple-rpm-1.0.jar
[debug] Copying /home/andreas/.sbt/boot/scala-2.10.4/lib/scala-library.jar to /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/usr/share/simple-rpm/lib/org.scala-lang.scala-library-2.10.4.jar
[debug] Copying /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/universal/tmp/etc/default/simple-rpm to /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/etc/default/simple-rpm
[debug] Copying /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/universal/tmp/bin/systemv-init to /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/etc/init.d/simple-rpm
[debug] Creating SPEC file: /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/SPECS/simple-rpm.spec
[debug] Executing rpmbuild with: rpmbuild -bb --target noarch-mukis.de, Muki-Linux --buildroot /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/buildroot --define _topdir /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm --define _tmppath /tmp/sbt_6c574bb2 simple-rpm.spec
[info] Building target platforms: noarch-mukis.de, Muki-Linux
[info] Building for target noarch-mukis.de
[info] Executing(%install): /bin/sh -e /tmp/sbt_6c574bb2/rpm-tmp.3mnViM
[error] + umask 022
[error] + cd /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/BUILD
[error] + '[' -e /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/buildroot ']'
[error] + mv /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/etc /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/usr /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/tmp-buildroot/var /home/andreas/dev/sbt-native-packager-examples/simple-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] /tmp/sbt_6c574bb2/rpm-tmp.3mnViM: line 38: /usr/lib/rpm/brp-strip-static-archive: No such file or directory
[info] 
[info] 
[info] RPM build errors:
[error] error: Bad exit status from /tmp/sbt_6c574bb2/rpm-tmp.3mnViM (%install)
[error]     Bad exit status from /tmp/sbt_6c574bb2/rpm-tmp.3mnViM (%install)
[trace] Stack trace suppressed: run last rpm:packageBin for the full output.
[error] (rpm:packageBin) Unable to run rpmbuild, check output for details. Errorcode 1
[error] Total time: 4 s, completed Feb 3, 2016 5:53:28 PM

The rpmbuild statement executed in the project context gives

andreas@linux-bgw2:~/dev/sbt-native-packager-examples/simple-rpm> rpmbuild -bb --target noarch-mukis.de, Muki-Linux --buildroot /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm/buildroot --define _topdir /home/andreas/dev/sbt-native-packager-examples/simple-rpm/target/rpm --define _tmppath /tmp/sbt_6c574bb2 simple-rpm.spec
error: Macro %_topdir has empty body
error: Macro %_topdir has empty body
error: Macro %_topdir has empty body
error: Macro %_tmppath has empty body
error: Macro %_tmppath has empty body
Building target platforms: noarch-mukis.de
Building for target noarch-mukis.de
error: failed to stat /home/andreas/dev/sbt-native-packager-examples/simple-rpm/Muki-Linux: No such file or directory
muuki88 commented 8 years ago

Thanks for your report. It was a missconfiguration in the build.sbt. The rpmVendor cannot have a comma in it. Sorry :)

zoosky commented 8 years ago

Thanks, now it builds. Great respsonsiveness!

muuki88 commented 8 years ago

Happy to help ;) Am 03.02.2016 11:36 nachm. schrieb Andreas Kapp notifications@github.com:Thanks, now it builds. Great respsonsiveness!

—Reply to this email directly or view it on GitHub.