$OpenBSD: patch-cupshelpers_cupshelpers_py,v 1.8 2012/08/28 19:16:20 ajacoutot Exp $
--- cupshelpers/cupshelpers.py.orig	Fri Aug  3 12:00:04 2012
+++ cupshelpers/cupshelpers.py	Tue Aug 28 21:13:37 2012
@@ -732,7 +732,7 @@ def missingExecutables(ppd):
 
     # First, a local function.  How to check that something exists
     # in a path:
-    def pathcheck (name, path="/usr/bin:/bin"):
+    def pathcheck (name, path="/usr/bin:/bin:${PREFIX}/bin:${LOCALBASE}/bin"):
         if name == "-":
             # A filter of "-" means that no filter is required,
             # i.e. the device accepts the given format as-is.
@@ -846,7 +846,7 @@ def missingExecutables(ppd):
 
                 exepath = pathcheck (exe,
                                      config.cupsserverbindir + "/filter:"
-                                     "/usr/lib64/cups/filter")
+                                     "${LOCALBASE}/libexec/cups/filter")
                 if not exepath:
                     add_missing (config.cupsserverbindir + "/filter/" + exe)
 
