Skip to content

Commit

Permalink
Fix for RPM error "Unable to open temp file" #228
Browse files Browse the repository at this point in the history
define _tmppath when calling rpmbuild using temporary directory
  • Loading branch information
Graham Rhodes committed Apr 15, 2014
1 parent 1069af5 commit cae884d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ object RpmHelper {
"--target", spec.meta.arch + '-' + spec.meta.vendor + '-' + spec.meta.os,
"--buildroot", buildRoot.getAbsolutePath,
"--define", "_topdir " + workArea.getAbsolutePath,
"--define", "_tmppath " + workArea.getAbsolutePath + "/tmp-buildroot"
"--define", "_tmppath " + IO.createTemporaryDirectory.getAbsolutePath
) ++ (
if (gpg) Seq("--define", "_gpg_name " + "<insert keyname>", "--sign")
else Seq.empty
Expand Down

0 comments on commit cae884d

Please sign in to comment.