-
Notifications
You must be signed in to change notification settings - Fork 472
Review packaging bundling of gems js requirements recommends #1948
Review packaging bundling of gems js requirements recommends #1948
Conversation
What do you mean by this? I see nothing on this regard (as it should) 😕 |
@jordimassaguerpla so you meant |
packaging/suse/portus.spec.in
Outdated
@@ -18,6 +18,15 @@ | |||
%define branch __BRANCH__ | |||
%define portusdir /srv/Portus | |||
|
|||
%define fix_sheb() ( \ |
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.
Why is that a %define and not just a sh function?
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.
Why not? Is there a reason not to use a macro?
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.
It's easier to read (no \ needed) and does not change behaviour depending on context.
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.
overall LGTM, i am only not sure if it would be better to %define rb_suffix
before %define fix_sheb()
where it gets used
@MaximilianMeister : good catch. I added a commit defining fix_sheb after |
Let's include the gems as sources instead of build requirements so building this package does not require so many gem packages. Build requiring rubygem packages is a "nightmare" when you try to build portus in different repos: * sometimes the rubygem RPMs are not there and need to be submited * othertimes they are present but have a different version and that creates a conflict Since the new macros in ruby-common are generating the "Provides: bundled(rubygem(foo)) = version" we don't need the BR to explicetely tell which rubygems are in, plus the "provides" is much more explicit. Signed-off-by: Jordi Massaguer Pla <[email protected]>
portusctl is a separate package Signed-off-by: Jordi Massaguer Pla <[email protected]>
This will create automatically the provides for the js libs Signed-off-by: Jordi Massaguer Pla <[email protected]>
we don't recomment mariadb anymore in the RPM since the recommended way is to use an external container review some text in comments Signed-off-by: Jordi Massaguer Pla <[email protected]>
89566d7
3d6b245
to
89566d7
Compare
Signed-off-by: Jordi Massaguer Pla <[email protected]>
eaf426d
to
e350e0c
Compare
Thanks @jordimassaguerpla! 👏 |
Review of how we package (RPM) portus.
Add gems as sources
Autogenerate autoprovides for js files
Remove mariadb requirement
Add kubectl requirement