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

Specifying a post rpm command breaks java_server #76

Closed
amotamed opened this issue Nov 15, 2013 · 3 comments
Closed

Specifying a post rpm command breaks java_server #76

amotamed opened this issue Nov 15, 2013 · 3 comments

Comments

@amotamed
Copy link

I have a auto generated play app configured for java_server. If I add the following line :

rpmPost := Some("ls")

I get:

play_clean rpm:packageBin
[info] Loading project definition from /web/svc-salesforce/project
[info] Set current project to svc-salesforce (in build file:/web/svc-salesforce/)
[info] Wrote /web/svc-salesforce/target/scala-2.10/svc-salesforce_2.10-0.1.0.pom
[info] Building target platforms: noarch-gilt-Linux
[info] Executing(%install): /bin/sh -e /usr/local/var/tmp/rpm-tmp.43711
[error] + umask 022
[error] + cd /web/svc-salesforce/target/rpm/BUILD
[error] + /bin/rm -rf /web/svc-salesforce/target/rpm/buildroot
[error] + /bin/mkdir -p /web/svc-salesforce/target/rpm/buildroot
[error] + '[' -e /web/svc-salesforce/target/rpm/buildroot ']'
[error] + mv /web/svc-salesforce/target/rpm/tmp-buildroot/usr /web/svc-salesforce/target/rpm/buildroot
[error] + exit 0
[info] Processing files: svc-salesforce-0.1.0-1.x86_64
[error] /bin/bash: --rpm-requires: invalid option
[error] Usage: /bin/bash [GNU long option] [option] ...
[error] /bin/bash [GNU long option] [option] script-file ...
[error] GNU long options:
[error] --debug
[error] --debugger
[error] --dump-po-strings
[error] --dump-strings
[error] --help
[error] --init-file
[error] --login
[error] --noediting
[error] --noprofile
[error] --norc
[error] --posix
[error] --protected
[error] --rcfile
[error] --restricted
[error] --verbose
[error] --version
[error] --wordexp
[error] Shell options:
[error] -irsD or -c command or -O shopt_option (invocation only)
[error] -abefhkmnptuvxBCHP or -o option
[info] Requires(interp): /bin/sh
[info] Requires(post): /bin/sh
[info] Checking for unpackaged file(s): /usr/local/Cellar/rpm/5.4.11/lib/rpm/check-files /web/svc-salesforce/target/rpm/buildroot
[info] Wrote: /web/svc-salesforce/target/rpm/RPMS/x86_64/svc-salesforce-0.1.0-1.x86_64.rpm
[success] Total time: 4 s, completed Nov 15, 2013 5:13:52 PM

Please let me know if you need any additional information.

@jsuereth
Copy link
Member

Hmmm, I think the issue may be related to the noarch not getting parsed. We're using different rpmbuild versions, that are oddly incompatible. Which version of rpmbuild are you using?

@muuki88
Copy link
Contributor

muuki88 commented Feb 5, 2014

First of all the rpm file is correctly created and the spec file looks goot to. What's your system configuration?

OS:              Ubuntu 13.10
RPM:             4.11.1
Play:            2.2.0
Native Packager: 0.7.0-M2

I get some errors, too. However in the end it shows success.

@muuki88
Copy link
Contributor

muuki88 commented Feb 6, 2014

@amotamed , is the issue still present? Would close this, if we are not able to reproduce it :(

@muuki88 muuki88 added the bug label Feb 6, 2014
jsuereth added a commit that referenced this issue Feb 6, 2014
@muuki88 muuki88 closed this as completed Feb 6, 2014
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

3 participants