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

Can't create .deb files with jdeb on windows #388

Closed
danielburrell opened this issue Oct 25, 2014 · 5 comments
Closed

Can't create .deb files with jdeb on windows #388

danielburrell opened this issue Oct 25, 2014 · 5 comments

Comments

@danielburrell
Copy link

I took at look at the "simple-jdeb" tests and created a fresh project (java playframework) based on these but I can't seem to execute the debian:package-bin without running into issues on windows.
Stack trace here: https://github.com/danielburrell/jdebtest/blob/master/stacktrace.txt
Example 'Bug Project' demonstrating the issue here: https://github.com/danielburrell/jdebtest

@danielburrell danielburrell changed the title Can't create .deb files with jdeb Can't create .deb files with jdeb on windows Oct 25, 2014
@muuki88
Copy link
Contributor

muuki88 commented Oct 25, 2014

Thanks a lot for trying out the 1.0.0-M1 and providing a detailed error description.
The problem seems to be that the jdeb packaging depends on the debianExplodedPackage task, which uses some commanline tools like chmod.

@danielburrell
Copy link
Author

Thanks for uncovering the cause so quickly.
To clarify then, this is an issue with the way that jdeb has been wrapped up for use in sbt-native-packager? Or does the issue sit with jdeb itself? I ask because I've got a project (maven, non-playframework) that generates a .deb package on windows using the jdeb maven plugin, so I'm just wondering what the difference is, must be either usage or wrapping right?

@muuki88
Copy link
Contributor

muuki88 commented Oct 25, 2014

This is purely a sbt-native-packager problem. You may workaround this by overriding the tasks that fail. In this case you could try

debianExplodedPackage in Debian := (target in Debian).value

No guarantee that this will work. I'm also happy to merge a pull request which removes the debianExplodedPackage dependency (if possible) inside the JDebPackagin

@danielburrell
Copy link
Author

Just as an update, I tried this, but further into execution (now on the debian:debianMd5sumsFile) I get the following stack trace

https://gist.github.com/danielburrell/90066ae8f8357a835e3d

Separately I tried suppressing the debian:debianMd5sumsFile task with
debianMd5sumsFile in Debian := (target in Debian).value
but activator was unable to parse it on reload.

@muuki88
Copy link
Contributor

muuki88 commented Nov 2, 2014

Okay. I found the root of this issue. The FileUtil.chmod method starts a process calling chmod, which obviously doesn't work on windows. I will detangle this

muuki88 added a commit that referenced this issue Nov 2, 2014
@muuki88 muuki88 closed this as completed in c312307 Nov 6, 2014
muuki88 added a commit that referenced this issue Nov 6, 2014
FIX #388 remove dependencies to chmod.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants