Fix path to snmp backend of CUPS.

This commit is contained in:
ajacoutot 2017-07-21 13:24:55 +00:00
parent 5d6bca2d7f
commit 9416ddd1f5
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.32 2017/07/16 19:20:57 espie Exp $
# $OpenBSD: Makefile,v 1.33 2017/07/21 13:24:55 ajacoutot Exp $
# XXX change proxy settings without network-manager?
@ -6,7 +6,7 @@ COMMENT= GNOME control center
GNOME_PROJECT= gnome-control-center
GNOME_VERSION= 3.24.2
REVISION= 2
REVISION= 3
CATEGORIES= x11
@ -107,4 +107,6 @@ pre-configure:
autoreconf -fi
###
${SUBST_CMD} ${WRKSRC}/panels/printers/pp-host.c
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-panels_printers_pp-host_c,v 1.1 2017/07/21 13:24:55 ajacoutot Exp $
Index: panels/printers/pp-host.c
--- panels/printers/pp-host.c.orig
+++ panels/printers/pp-host.c
@@ -267,7 +267,7 @@ _pp_host_get_snmp_devices_thread (GSimpleAsyncResult *
data->devices->devices = NULL;
argv = g_new0 (gchar *, 3);
- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp");
+ argv[0] = g_strdup ("${LOCALBASE}/libexec/cups/backend/snmp");
argv[1] = g_strdup (priv->hostname);
/* Use SNMP to get printer's informations */