Date: Sun, 27 Dec 2020 21:58:13 +0000 From: Nuno Teixeira <ed.arrakis@gmail.com> To: freebsd-ports@freebsd.org Subject: How to fix/patch hardcoded values Message-ID: <CAFDf7ULqj2pzPb7WX-3oee_HHye3jnk93nV-XGbr1cjAcwgYqQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello I've just submited a new port net/gitup <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252220> and I used a simple workaround to help program find its config in /usr/local/etc instead of (hardcoded) ./ --- gitup.c.orig 2020-12-27 21:16:22 UTC +++ gitup.c @@ -2030,7 +2030,7 @@ main(int argc, char **argv) ... - const char *configuration_file = "./gitup.conf"; + const char *configuration_file = "/usr/local/etc/gitup.conf"; Now I'm thinking that this might not be the best fix in case PREFIX is a different one. Could I have an opinion on this? Thanks, Nuno Teixeira
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULqj2pzPb7WX-3oee_HHye3jnk93nV-XGbr1cjAcwgYqQ>