Summary: | graphics/zathura: Expect system-wide config at ${PREFIX}/etc/zathurarc | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | embhd | ||||||||
Component: | Individual Port(s) | Assignee: | Zsolt Udvari <uzsolt> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Only Me | CC: | quentin.stievenart, uzsolt | ||||||||
Priority: | --- | Flags: | quentin.stievenart:
maintainer-feedback+
|
||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Created attachment 255232 [details]
Patch
Thanks for patch. I suggest simplify: you patch both file twice (with patch and with post-patch). In the config.c should replace the value after GLOBAL_RC - you can do it with REINPLACE_CMD. In the zathurarc.5.rst should replace ^/etc/zathurarc - with REINPLACE_CMD. That's all, you don't need patch files. (In reply to Zsolt Udvari from comment #2) Sure. I gave that a try with the make target "do-patch". Using that, the existing patch file for data/meson.build seems to be ignored. Since this is another one-line substitution, should I integrate it into the Makefile or stick to patch files? (In reply to embhd from comment #3) No, you don't have to rewrite do-patch target (as you can see, the existing patch will ignored). The post-patch target is perfect in this case. Created attachment 255512 [details]
Patch
Like this?
(In reply to embhd from comment #5) Yes :) We should wait maintainer's approval. Committed, thanks! A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=6bd8a8b245a77eb84547876ff450d5dfb76a97fc commit 6bd8a8b245a77eb84547876ff450d5dfb76a97fc Author: embhd <embhd@posteo.de> AuthorDate: 2024-12-02 19:34:17 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-12-02 19:37:21 +0000 graphics/zathura: Fix system-wide config path Zathura searches system-wide config in /etc - now in ${PREFIX}/etc. Pet portfmt. PR: 282810 Approved by: quentin.stievenart <quentin.stievenart@gmail.com> (maintainer) graphics/zathura/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) |
Created attachment 255231 [details] Patch As of now, zathura searches both /etc as well as ${XDG_CONFIG_HOME} for possible configuration files. The proposed patch changes the first location to ${PREFIX}/etc.