-
Notifications
You must be signed in to change notification settings - Fork 129
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
Patch files are not copied into the temporary source directory #446
Comments
Per #447, the workaround is to explicitly list the patch as a
|
The idea, when Tito was born, was not use patches at all. Or rather work on git with patches applied. Try this:
and you should end up with srpm where every commit after the branching is separate |
@xsuchy That likely won't work in my case, as I need to patch files in sub modules included in the project that's being built. If tito doesn't want to support patch files that's fine, but then I think it should at least produce a warning of sorts when encountering |
Tito does not copy patches into its temporary %_specdir, which causes the build with tito to fail. Since we're just using tito as a glorified way to download an upstream tarball before the build, this isn't the behavior we want. Fortunately, we can work around it by mentioning all patch files as sources, and a bit of regex magic makes this simple to do. See rpm-software-management/tito#446. Signed-off-by: Clemens Lang <[email protected]>
Just chiming in a use case where it makes a lot of sense for tito to be aware of patch files. In my case, I am packaging an upstream project that does not have official RPMs. The project snapshot with the scenario is available at https://github.com/abn/web-eid-rpm/tree/77375a6.
I was able to workaround this by using in upstream commit patch url. See abn/web-eid-rpm@6f5f585.
The flip side here obviously is that build environment require access to internet. Not necessarily an issue as this is being built on copr. IMHO, it might be a great time to revisit the strictness around the use of patches as it seems tito might have seen adoption outside its original intended use cases. |
I also have tried using tito in this way where we will be carrying downstream patches to build on Fedora. The basic layout works:
But as soon as we try to manage multiple spec files with patches, the patches go missing in the same way described here.
|
It seems that
tito
doesn't properly copy patches into the temporary source directoryBut the patch file is both in the git repo
and in the spec file
so it should have been copied into the temporary source directory.
The text was updated successfully, but these errors were encountered: