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

RPM error "Unable to open temp file" #228

Closed
grahamar opened this issue Apr 15, 2014 · 2 comments
Closed

RPM error "Unable to open temp file" #228

grahamar opened this issue Apr 15, 2014 · 2 comments

Comments

@grahamar
Copy link

Hi I'm getting the following while trying to run rpm:packageBin, I have installed rpm using macports and I get the same error when I run the output rpmbuild command by sbt-native-packager, unless I run it with sudo access. Is there a way sbt-native-packager can define the _tmppath as it does _topdir?

[error] error: Unable to open temp file.
[info] Building target platforms: noarch-Vendor-Linux
[error]     Unable to open temp file.
[info]
[info]
[info] RPM build errors:
java.lang.RuntimeException: Unable to run rpmbuild, check output for details.
    at scala.sys.package$.error(package.scala:27)
    at com.typesafe.sbt.packager.rpm.RpmHelper$.buildPackage(RpmHelper.scala:87)
    at com.typesafe.sbt.packager.rpm.RpmHelper$.buildRpm(RpmHelper.scala:20)
    at com.typesafe.sbt.packager.rpm.RpmPlugin$$anonfun$rpmSettings$29.apply(RpmPlugin.scala:62)
    at com.typesafe.sbt.packager.rpm.RpmPlugin$$anonfun$rpmSettings$29.apply(RpmPlugin.scala:60)
    at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
    at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
    at sbt.std.Transform$$anon$4.work(System.scala:64)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    at sbt.Execute.work(Execute.scala:244)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
[error] (rpm:packageBin) Unable to run rpmbuild, check output for details.
@grahamar
Copy link
Author

#229 change seems to fix this for me

muuki88 added a commit that referenced this issue Apr 19, 2014
Fix for RPM error "Unable to open temp file" #228
@grahamar
Copy link
Author

Closing as #229 is now merged

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

No branches or pull requests

1 participant