-
Notifications
You must be signed in to change notification settings - Fork 369
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new entry for our custom version bump #8196
base: master
Are you sure you want to change the base?
Conversation
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 like this idea! Bump crew version? Obviously, we'll need to update all the affected packages before this can be merged. Another thing to consider is all the packages that use @_ver
throughout the package need to use that version.
So we're also doing some tagging of python3 packages with the python3 version, and i think we're headed towards doing the same for perl. But there are other version sub-tags which might make sense too. For instance, when building with LTO, packages complain when a library is built with a different version of GCC. Might it make sense to also be able to tag packages with the GCC version used to build it? Obviously a revision tag would make sense for the rebuild, but it would also be nice to independently be able to scan packages to see what version of GCC was used to build it. |
There's an ur-question here of how much package metadata should go in the package file, as opposed to being put elsewhere. |
Current progress on replacing It might take me a week to complete it... 馃拃 |
How about creating a new |
Thanks to @Zopolis4, now we have 362/549 (187 completed) left :) |
Speaking of-- it looks like you're manually removing After that, I'll submit PRs that remove the usages of Is that ok? I don't want to step on your toes, but I also don't want you to have to go through ~400 packages manually when I can automate the process. |
The reason that I don't use |
I've got some fallbacks for that, and I do test the packages. |
@version = CREW_KERNEL_VERSION == '4.14' ? "#{CREW_KERNEL_VERSION}-1" : CREW_KERNEL_VERSION | ||
version @version | ||
version = CREW_KERNEL_VERSION == '4.14' ? "#{CREW_KERNEL_VERSION}-1" : CREW_KERNEL_VERSION | ||
version version |
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.
revision 1
version CREW_KERNEL_VERSION == '4.14' ? "#{CREW_KERNEL_VERSION}-#{revision}" : CREW_KERNEL_VERSION
?
@@ -9,7 +9,7 @@ class Binutils < Package | |||
version "#{@_ver}-1" | |||
license 'GPL-3+' | |||
compatibility 'all' | |||
source_url "https://ftpmirror.gnu.org/binutils/binutils-#{@_ver}.tar.bz2" | |||
source_url "https://ftpmirror.gnu.org/binutils/binutils-#{version}.tar.bz2" |
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.
Seems like you forgot to edit the rest of the package here?
"#{name}.#{Time.now.utc.strftime('%Y%m%d%H%M%S')}.dir" | ||
return "#{name}.#{Time.now.utc.strftime('%Y%m%d%H%M%S')}.dir" | ||
end | ||
|
||
def self.is_binary?(architecture) | ||
if !@build_from_source && @binary_url && @binary_url.key?(architecture) | ||
return true | ||
else | ||
return false | ||
end | ||
return (!@build_from_source && @binary_url && @binary_url.key?(architecture)) | ||
end | ||
|
||
def self.is_source?(architecture) | ||
if is_binary?(architecture) || is_fake? | ||
return false | ||
else | ||
return true | ||
end | ||
return !(is_binary?(architecture) || is_fake?) |
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.
If these are just general improvements to the code,
does it make more sense to seperate these into another PR?
version '24eaef0d11e590643e65d188b017b49414d81cc2' | ||
@commit = '24eaef0d11e590643e65d188b017b49414d81cc2' | ||
version @commit[0...7] | ||
license 'MIT' | ||
compatibility 'all' | ||
source_url 'https://github.com/internetwache/GitTools.git' | ||
git_hashtag version | ||
git_hashtag @commit |
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 conscious of the fact that this is still quite similar to using @_ver-- is there any other way to do this which doesn't introduce an additional variable?
Not tested yet
Currently, we use
@_ver
to store the upstream version and put our custom subversion inside ofversion "#{@_ver}-..."
, but having two different variables for version might confuse new contributors.This PR adds a new entry called
revision
for our custom subversion and is optional for backward compatibility, here are some examples:I only applied it to some packages as there are so many packages that use
@_ver
for versioning 馃槄Run the following to get this pull request's changes locally for testing.