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
defaine _tmppath when calling rpmbuild
  • Loading branch information
Graham Rhodes committed Apr 15, 2014
1 parent 96e2804 commit 1069af5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/com/typesafe/sbt/packager/rpm/RpmHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 " + workArea.getAbsolutePath + "/tmp-buildroot"
) ++ (
if (gpg) Seq("--define", "_gpg_name " + "<insert keyname>", "--sign")
else Seq.empty
Expand Down

0 comments on commit 1069af5

Please sign in to comment.