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

Fix for RPM error "Unable to open temp file" #228 #229

Merged
merged 3 commits into from Apr 19, 2014
Merged

Fix for RPM error "Unable to open temp file" #228 #229

merged 3 commits into from Apr 19, 2014

Conversation

grahamar
Copy link
Contributor

define _tmppath when calling rpmbuild

defaine _tmppath when calling rpmbuild
@lightbend-cla-validator

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:

http://typesafe.com/contribute/cla

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
Copy link
Member

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.
@muuki88
Copy link
Contributor

muuki88 commented Apr 18, 2014

I tested this on CentOS 6.5 and works fine. Thanks @grahamar :)
On which system did you test? And can you sign the typesafe contributor cla (or post if you already did). Then I'm happy to merge this.

@grahamar
Copy link
Contributor Author

No problem! I signed the CLA and I tested on Mac OSX Mavericks :)

muuki88 added a commit that referenced this pull request Apr 19, 2014
Fix for RPM error "Unable to open temp file" #228
@muuki88 muuki88 merged commit 1602f9b into sbt:master Apr 19, 2014
@muuki88
Copy link
Contributor

muuki88 commented Apr 19, 2014

Nice. Mac seems to have some issue here and there with rpm :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants