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
calibre: remove unnecessary patch #38066
Conversation
I added this patch because the original patches disappeared from the Debian mirror. In fact, it is the same patches below: https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/calibre/files/ The reason, as the patch name suggests, is to prevent Calibre to search for updates. I will look at it later. |
@AndersonTorres That patch which sets
Note that if update checking is disabled by the command line argument, no attribute
Note that if Those are the only two locations that refer to Calibre master branch was just modified so that this works even if The reason I asked why this was added is that I don't see any reason for the patch because Calibre works without it, and with it, it actually doesn't work. So I thought there's probably some reason that isn't clear to me. I guess the patch was fixing some issue that had existed in some older version of Calibre. |
@jluttine , do you think the patch can be completely erased? |
@AndersonTorres I would erase only that part that I've erased in this pull request. The remaining part of that patch disables the update checker by default and offers a command line switch to enable it. That's good. (Normally Calibre does the other way around.) |
Now Calibre was updated. Can you solve this conflict and re-submit it? (You can just submit the modified patch you are suggesting.) |
In addition to bumping the version, remove a patch which made self.update_checker None. This caused errors that showed on the terminal after closing Calibre (if it was launched from a terminal).
@AndersonTorres Yes, I now updated this pull request. It just removes an unnecessary part of the patch. It wouldn't have caused issues anymore on 3.21.0 because of an upstream fix, but it is unnecessary anyway so better to remove so it won't start causing issues at any later point and the nixpkgs codebase stays cleaner. |
@AndersonTorres Is this merge-ready? |
@srhb Yes! I will merge it now! (Real life issues again...) |
Motivation for this change
In addition to bumping the version, remove a patch which made self.update_checker None. This caused errors that showed on the terminal after closing Calibre (if it was launched from a terminal).
@AndersonTorres Perhaps you know if it is safe to remove this patch as you added it? Why was it added? It causes an error on exit (only visible from the terminal). Probably not serious, and I believe next Calibre version will not have this issue, but still, I don't see any reason for the patch.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)