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
Building Linux packages - default setting causes error #2860
Comments
Thanks for investigating that. |
@agb19 Thanks for reporting! @devinbileck Not sure if we want to have a special SNAPSHOT version structure for RPM. Maybe there is an additional flag that could be used in the case of a SNAPSHOT version. |
@ripcurlx The RPM file name is usually auto-generated by rpmbuild using the naming scheme: So, in order to obtain file name
However, since the spec file is auto-generated by javapackager, I'm not sure how to set the Release variable from the build script and I worry that it may even be impossible. This is the relevant section of the (invalid) spec file that is currently generated by javapackager:
Note that "Release:1" appears to be auto-populated. I don't know how / if it can be overridden. (Edited for spelling and updated example) |
I had a workaround for this in my initial commit that seems to have since been removed (I believe accidentally). Essentially it just stripped everything after the dash. Likely the easiest approach is just to restore that behaviour. |
Yes, or alternatively you could start with two separate variables: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant. |
Attempting to build Linux packages on Debian 9 (with JDK 10.0.2) from an unmodified git clone breaks during
rpmbuild
with the error message below.Only the RPM build is affected, DEB package is built OK. The error message from
rpmbuild
indicates that the dash character is not allowed in version numbers (1.1.1-SNAPSHOT
).On further investigation:
1.1.1_SNAPSHOT
) caused an error in the DEB builder instead1.1.1.SNAPSHOT
) allowed both RPM and DEB to build correctly.The text was updated successfully, but these errors were encountered: