-
Notifications
You must be signed in to change notification settings - Fork 145
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
Having a hyphen '-' as part of PACKAGE_VERSION caused strange failures from the resulting deb (from launchpad issues) #141
Comments
In https://github.com/dell/dkms/blob/master/template-dkms-mkdeb/debian/postinst:
I think this might be the root cause. However, according to Debian Policy Manual:
It follows a PACKAGE_VERSION containing one hyphen here, then it would be considered an illegal debian version as it has only one hyphen in upstream version but none in the debian revision. If it contains more, then the last one should still be recognized as the hyphen in debian_revision, and there should be one removed in the upstream version. In the end, you still have no match you want. So, I would say using hyphens as package (upstream) version when you're trying to package for debian would always bring additional troubles. Of course, it's still possible to teach DKMS to handle such cases. |
Thank you for the reply. That makes sense, I didn't realize that hyphens can only be used in the upstream version if there is also a debian revision - sorry about that. Should I leave this issue open or close it since this isn't a good version number anyways? |
I was redirected from Launchpad bug. I'd say I personally would like to take this as a chance to create test cases for mkdeb etc., but the final decision belongs to the maintainers. |
Creation of |
Hello,
Having a hyphen in the version number will cause the package to not be installable. If you try to install the package made from
dkms mkdeb --source-only
, it will claim that it is a binaries-only package.Adding
set -x
to/usr/lib/dkms/common.postinst
shows that the version being passed in excludes the hyphen and everything after that, which is why it can not find it (looking in non existent directories)Since the version is 20201004-1, the correct directories would be
/var/lib/dkms/{redacted}/20201004-1
,/usr/share/{redacted}-dkms/{redacted}-20201004-1.dkms.tar.gz
, and/usr/src/{redacted}-20201004-1
Temporarily hardcoding the version to "20201004-1" in the above file fixed the issue and allowed the package to install.
It appears that this bug was first reported in 2010 (https://bugs.launchpad.net/dkms/+bug/599983); however, I did not see an issue here, and since this bug is still present I decided to add a Github issue.
The text was updated successfully, but these errors were encountered: