How to fix/patch hardcoded values
Martin Neubauer
m.ne at gmx.net
Sun Dec 27 23:55:13 UTC 2020
In that case you might try an appropriate invocation of REINPLACE_CMD in
post-patch.
On 27/12/2020 22:58, Nuno Teixeira wrote:
> 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
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20201228/333285a5/attachment.sig>
More information about the freebsd-ports
mailing list