-
Notifications
You must be signed in to change notification settings - Fork 211
Fix deb package version field #3157
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
base: develop
Are you sure you want to change the base?
Conversation
The suggestion to resolve easybuilders#3143
Revert to use eb version as a package version but in a form of`EASYBUILD_VERSION~eb`
@@ -50,4 +49,4 @@ def version(self, ec): | |||
# cfr. http://rpm.org/ticket/56, | |||
# https://debian-handbook.info/browse/stable/sect.manipulating-packages-with-dpkg.html (see box in 5.4.3) | |||
ebver.replace('dev', '~dev') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm no expert here but shouldn't we somehow concat this with the change below so the function returns either 4.x.x~eb
or 4.x.x~ebdev
...or is it ok to have 2 ~
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good information to clarify and analyze it may be here: https://www.debian.org/doc/debian-policy/ch-controlfields.html#version
As I understand, having two tildas is allowed. And in the case of having 4.x.x~eb
and 4.x.x~dev~eb
, the first one seems to be the latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I didn't check such form for the case of rpm packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me then this seems ok, but maybe @boegel should give the final ok
@Mycron You will need to update the tests in |
Travis test report: 8/8 runs failed - see https://travis-ci.org/easybuilders/easybuild-framework/builds/637435167 Only showing partial log for 1st failed test suite run 3788.1;
*bleep, bloop, I'm just a bot (boegelbot v20180813.01)*Please talk to my owner @boegel if you notice you me acting stupid),or submit a pull request to https://github.com/boegel/boegelbot fix the problem. |
@@ -50,4 +49,4 @@ def version(self, ec): | |||
# cfr. http://rpm.org/ticket/56, | |||
# https://debian-handbook.info/browse/stable/sect.manipulating-packages-with-dpkg.html (see box in 5.4.3) | |||
ebver.replace('dev', '~dev') | |||
return 'eb-%s' % ebver | |||
return '%s~eb' % ebver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What you should do is add a timestamp after the ~eb, as in ~eb-yyyymmdd to make it possible to update the eb built package automatically. Using the date_stamp = datetime.today().strftime('%Y%m%d')
code from the first commit.
issue: #3143
The suggestion to resolve #3143