These are chat archives for sbt/sbt-native-packager

29th
Feb 2016
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:01
Hi guys, is there anyway to make sbt-native-packager work running IntelliJ on Windows?
I'm trying to build an RPM, after installing rpm and rpmbuild, and it seems that it mests up the directory name
Executing(%install): /bin/sh -e /C:UsersyuvaliAppDataLocalTempsbt_c85c0986/rpm-tmp.9SNans
/C:UsersyuvaliAppDataLocalTempsbt_c85c0986/rpm-tmp.9SNans: line 26: cd: C:gitconductoringesttargetrpm/BUILD: No such file or directory
John Klingler
@jfklingler
Feb 29 2016 16:05
I admit I’ve never attempted to build an RPM on Windows. If sbt-native-packager is using JAR-based tools (assuming they exist) to build the RPM, then it’s probably possible.
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:06
sbt-native-packager uses rpm and rpmbuild under the hood, which are available with cygwin
John Klingler
@jfklingler
Feb 29 2016 16:06
Can you try eliminating IntelliJ from the loop by building the RPM from the SBT console?
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:06
I'm running from the SBT console inside intellij
It's the same :)
John Klingler
@jfklingler
Feb 29 2016 16:07
Ahh, so does IntelliJ know it’s supposed to use cygwin and not the cmd shell?
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:07
I don't know where to look under to hood though, for the place where the directory is being set
Hmmm.. Not sure
But it seems to be invoking rpmbuild fine from the console
Nikolay Tatarinov
@rockjam
Feb 29 2016 16:08
@muuki88 can you provide some help on sbt/sbt-native-packager#723 ? Stuck with same issue since yesterday
Colt Frederickson
@coltfred
Feb 29 2016 16:08
@YuvalItzchakov Be aware that you need to match RPM versions with where you want to install this. Seems like you should probably just build on a machine with the same rpm version, etc.
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:09
Hmm, I see.
I'm currently stuck on actually building the RPM first
Colt Frederickson
@coltfred
Feb 29 2016 16:09
My point is that you should just run SBT on a box that is like the box you want to install on, not waste your time making RPM work on windows.
IMO
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:10
I see what you mean..
I'm trying to get this to work for us on our Dev environment, thought It might be worth a shot being able to do so, making it easy to work with for now
Colt Frederickson
@coltfred
Feb 29 2016 16:10
Building, testing, etc locally is awesome... packaging RPMs is best done in a CI or other env.
Again, just my opinion.
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:11
No, I see your point. Probably right
I'm green to all this stuff, coming from C# and windows :)
Colt Frederickson
@coltfred
Feb 29 2016 16:11
If you hack up SBT to work with windows you might break it for other OS's too.
I run linux so I don't have a problem usually. :D
John Klingler
@jfklingler
Feb 29 2016 16:12
If what you’re trying to do is test out the RPM you’re building just to make sure everything is in the right place and so forth, standing up a quick Vagrant box that mounts your project folder might be the easiest way to do that.
Then you can run SBT in something very close to your target environment.
Yuval Itzchakov
@YuvalItzchakov
Feb 29 2016 16:14
That's a good idea
Set up a vagrant box and map my project folder to it