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
Uptodate Source pointing to GitHub in RPM spec #2949
Conversation
ToDo: the Makefile also needs updating, otherwise it will rewrite the spec when executing |
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 think you can simply remove the corresponding sed
line from the Makefile
and I would appreciate for you to do that as well within this PR.
About Gentoo: According to https://devmanual.gentoo.org/ebuild-writing/variables/index.html#renaming-sources I'd expect the URL line to look like this:
SRC_URI="https://github.com/rear/rear/archive/${PV}.tar.gz -> ${P}.tar.gz"
But indeed, a test by somebody using Gentoo would be nice, although I'd rather make this change blindly as not to change it - the old URL is 100% broken, the new one might just work.
DEB and Arch don't carry the dist archive URL in the description so that we don't need to change it there.
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 blindly approve it because I trust you and
I know almost nothing about ReaR's make and build code.
For SUSE and openSUSE I use my own RPM spec files
to be in compliance with what SUSE requires
(certain SUSE specific rules).
ok, will do |
Yes, agree with you that a more explicitly named tag would be useful. |
This won't work properly, because |
it won't, because Makefile does not touch |
@@ -18,8 +18,7 @@ License: GPL-3.0 | |||
Group: Applications/File | |||
URL: http://relax-and-recover.org/ | |||
|
|||
# as GitHub stopped with download section we need to go back to Sourceforge for downloads | |||
Source: https://sourceforge.net/projects/rear/files/rear/%{version}/rear-%{version}.tar.gz | |||
Source: https://github.com/rear/rear/archive/%{version}.tar.gz#/rear-%{version}.tar.gz | |||
|
|||
# BuildRoot: is required for SLES 11 and RHEL/CentOS 5 builds on openSUSE Build Service (#2135) |
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.
@jsmeix please remind me - is SLES 11 going to be deprecated in the next release? If so, we could remove this line.
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.
SLES11 is no longer officially supported by ReaR upstream
since a long time and since ReaR 2.7 is released even I
do no longer care about SLE11 at ReaR upstream
so feel free to remove such old and obsolete stuff.
Explanation:
During ReaR 2.7 development I only liked to
not knowingly break ReaR 2.7 for SLE11 because
I might need ReaR 2.7 for SLE11 for special SUSE customers
on very specific request and therefore I liked to avoid
that I would have to fix various things at various places
to make ReaR 2.7 usable for a specific use case on SLE11.
Furthermore:
SLES11 Long Term Service Pack Support (LTSS)
had ended on 31 March 2022 so in general
SLES11 is no longer supported by SUSE, see
https://en.wikipedia.org/wiki/SUSE_Linux_Enterprise#End-of-support_schedule
Good catch. I was also fighting our For the |
It does not need to be a URL at all. I would actually prefer the Makefile to keep only the file name in Source. URLs of type |
have a look at the |
by the way, I believe ReaR can already run from source checkout without modifications - https://github.com/rear/rear#quick-start-guide |
The problem is that ReaR running from source add os.conf and the log files
into the source tree. And uses it to build the rescue image.
And yes, running make shouldn't randomly recreate the manpages and docs
with a different asciidoc heading embedded.
|
if by |
So the problem is that the rescue image will contain |
Remove the sourceforge.net URL from the Makefile recipe that generates the Source tag in the RPM spec in the `dist` target. We don't use sourceforge.net anymore and the Source points to a locally-generated tarball, so the URL has not been valid anyway. If $(distversion) == $(version) (when OFFICIAL is set), we could keep the Source tag unchanged - this is true of most of the sed transformations in this recipe.
The message looked like the recipe rewrites files in the source tree. In fact, it only rewrites their copies in the build directory and leaves the originals untouched. XXX the message is now a bit long, it exceeds 80 characters.
Replace SourceForge by GitHub
@schlomo I think I addressed all the ToDos now. |
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.
Looks good, not sure about the context where the full URL in the spec file will be used though.
For sure I see no harm so if it helps anybody then this is great.
@@ -18,8 +18,7 @@ License: GPL-3.0 | |||
Group: Applications/File | |||
URL: http://relax-and-recover.org/ | |||
|
|||
# as GitHub stopped with download section we need to go back to Sourceforge for downloads | |||
Source: https://sourceforge.net/projects/rear/files/rear/%{version}/rear-%{version}.tar.gz | |||
Source: https://github.com/rear/rear/archive/%{version}.tar.gz#/rear-%{version}.tar.gz |
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.
In which circumstance or context does this line actually take effect if make dist
always changes that to just the dist archive file name?
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.
Only when you want to build the RPM manually and need to know where to obtain the sources from. In the future, we might also avoid spec file rewriting in make dist
if OFFICIAL
is set and thus the RPM is going to be built from unmodified sources.
The usual RPM build automation ( There is a tool though called All in all, this PR is less important than it may seem. The incorrect URL was not causing any failure. |
I'm also not super happy with out Makefile, but this PR is a good improvement and we learned something. Thanks a lot! |
In the openSUSE Build Service projects |
@jsmeix thank you for showing us how this Makefile target is actually being used in the release process. If we decide to change the functionality of the target, we should definitely consider how it fits into the release process. |
(this was in reaction to my
) I think that the tag name is actually OK and one should use a different release branch name to avoid ambiguity. |
Pull Request Details:
Type: Bug Fix
Impact: Low
Reference to related issue (URL): closes Fix ReaR source download links in packaging / drop SourceForge? #2945
How was this pull request tested?
spectool -g packaging/rpm/rear.spec
downloads the correct tarballBrief description of the changes in this pull request:
Change the URL in the Source tag in the RPM spec file to point to the tarball on GitHub instead of SourceForge (where the tarball is not updated anymore).
AFAIK GitHub creates the tarballs automatically from tags.