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

Error: "can't build with source format '3.0 (native)': native package version may not have a revision" #23

Open
Netfall opened this Issue Mar 19, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@Netfall
Copy link

Netfall commented Mar 19, 2016

On Debian Jessie this task fails with the following error message, which is only displayed when --verbose has been added to the grunt command:

can't build with source format '3.0 (native)': native package version may not have a revision

Without --verbose a generic and not helpful error message is displayed that may lead into the wrong direction. On a recent Ubuntu this error doesn't happen. (But probably will on future releases.)

The reason for this is that the package is built as a native package whereas the version number generated by this grunt task indicates that it is a non-native package because it uses a hyphen (like 1.2.3-4 instead of just 1.2.3).

My workaround for this is to simply replace the hyphen with a dot. In
node_modules/grunt-debian-package/packaging/debian/changelog
replace
${name} (${version}-${build_number}) experimental; urgency=low
with
${name} (${version}.${build_number}) experimental; urgency=low
Now packaging should work as expected, however the version number will now show up as 1.2.3.4

This is also probably the correct fix for this problem since revision and build number are two different things anyway.

@ddevaal

This comment has been minimized.

Copy link

ddevaal commented Aug 22, 2016

Good catch. I have the same problem. Thanks @Netfall for the temporary fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.