$OpenBSD: patch-cupshelpers_cupshelpers_py,v 1.6 2011/07/29 16:56:32 ajacoutot Exp $
--- cupshelpers/cupshelpers.py.orig	Thu Jul 28 18:04:13 2011
+++ cupshelpers/cupshelpers.py	Fri Jul 29 18:50:55 2011
@@ -699,7 +699,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.
@@ -813,7 +813,7 @@ def missingExecutables(ppd):
 
                 exepath = pathcheck (exe,
                                      "/usr/lib/cups/filter:"
-                                     "/usr/lib64/cups/filter")
+                                     "${LOCALBASE}/libexec/cups/filter")
                 if not exepath:
                     add_missing ("/usr/lib/cups/filter/" + exe)
 
