openbsd-ports/math/graphviz/patches/patch-lib_gvc_gvconfig_c
edd 2aac4af278 Update math/graphviz to version 2.42.3.
Based on work from rsadowski@ (in openbsd-wip) and with lots of input
from sthen@.

OK sthen@, thanks!
2020-01-08 09:44:55 +00:00

17 lines
654 B
Plaintext

$OpenBSD: patch-lib_gvc_gvconfig_c,v 1.5 2020/01/08 09:44:55 edd Exp $
Plugin scanner fails to find our libs because we overide lib version.
Index: lib/gvc/gvconfig.c
--- lib/gvc/gvconfig.c.orig
+++ lib/gvc/gvconfig.c
@@ -417,6 +417,8 @@ static void config_rescan(GVC_t *gvc, char *config_pat
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
sprintf(config_re,"%s%s", plugin_re_beg, plugin_re_end);
+#elif defined(__OpenBSD__)
+ sprintf(config_re,"%s[0-9]\\.[0-9]%s", plugin_re_beg, plugin_re_end);
#elif defined(GVPLUGIN_VERSION)
sprintf(config_re,"%s%d%s", plugin_re_beg, GVPLUGIN_VERSION, plugin_re_end);
#else