-
Notifications
You must be signed in to change notification settings - Fork 443
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 and [error] logging #103
Comments
SO, one of two things:
If it's the first I'll fix it :) |
Gut feeling - it's the second but crossing fingers :) |
Don't underestimate my lazyness. We're just using vanilla sbt logging: This, by default, puts the stdout on INFO and stderr on ERROR. We have two options:
Do you know any answer to 2? |
There is --quiet but the manual says it will display errors (http://www.rpm.org/max-rpm-snapshot/rpmbuild.8.html). Sending it to dev/null isn't nice either I guess. So you are saying it logs to stderr? |
It appears to be the case....
|
In the tmp scripts that get generated and run, i.e. /var/tmp/rpm-tmp.38734, there is the line:
which will output all the commands that follow. Do you know why this is there? It would be better to use echo instead if this is for debugging. If the set -x is removed this should fix it. |
No, I'm not sure. Probably an artifact of earlier debugging :) We can remove that, thanks for the analysis! |
No prob. Josh sorry for abusing this issue now but if you have time and some comments on: http://stackoverflow.com/questions/20429906/building-paths-in-sbt-for-the-packagemappings-of-the-sbt-native-packager I'd be more than thankful :P |
Hey just wondering about this as i am hitting the same issue and wondering if there is a fix for it? |
The |
I don't think it is, rpmbuild is responsible for creating the scripts from the corresponding sections, %install on mine doesn't have a set -x option within it and checking the code i don't see that either in the metadata scala file. Plus set -x is just bash debug, which just is for debugging and it goes to stdout as oppose stderr. By default as well rpmbuild does a sh -e to the actual tmp script it creates for the sections, so that it will bomb out and stop on any error. So this has to be something to do with it thinking stdout is infact stderr or something else? |
No, rpmbuild is dumping to stderr (at least on my machines). I'm debating putting |
IMHO a warning message before the rpm build starts like |
When running rpm:package-bin, some output is logged on [error] for some reason. Example:
When I execute the script manually the output looks like:
The problem with the [error] logging is that this will fail some build (CI) servers which use the logs to determine if a build has failed (i.e. Bamboo).
The text was updated successfully, but these errors were encountered: