-
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
Fix for RPM error "Unable to open temp file" #228 #229
Conversation
defaine _tmppath when calling rpmbuild
Hi @grahamar, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Typesafe Contributors License Agreement: |
define _tmppath when calling rpmbuild using temporary directory
@@ -76,7 +76,8 @@ object RpmHelper { | |||
"-bb", | |||
"--target", spec.meta.arch + '-' + spec.meta.vendor + '-' + spec.meta.os, | |||
"--buildroot", buildRoot.getAbsolutePath, | |||
"--define", "_topdir " + workArea.getAbsolutePath | |||
"--define", "_topdir " + workArea.getAbsolutePath, | |||
"--define", "_tmppath " + IO.createTemporaryDirectory.getAbsolutePath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, you may want to make sure this is cleaned later, like "deleteOnClose" or whatever.
define _tmppath when calling rpmbuild using temporary directory and cleanup temporary directory afterwards.
I tested this on CentOS 6.5 and works fine. Thanks @grahamar :) |
No problem! I signed the CLA and I tested on Mac OSX Mavericks :) |
Fix for RPM error "Unable to open temp file" #228
Nice. Mac seems to have some issue here and there with rpm :D |
define _tmppath when calling rpmbuild