$OpenBSD: patch-cupshelpers_cupshelpers_py,v 1.3 2009/01/31 12:37:30 ajacoutot Exp $
--- cupshelpers/cupshelpers.py.orig	Fri Jan 16 10:50:57 2009
+++ cupshelpers/cupshelpers.py	Sat Jan 31 12:11:42 2009
@@ -707,7 +707,7 @@ def missingPackagesAndExecutables(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"):
         # Strip out foomatic '%'-style place-holders.
         p = name.find ('%')
         if p != -1:
@@ -805,8 +805,7 @@ def missingPackagesAndExecutables(ppd):
                     continue
 
                 exepath = pathcheck (exe,
-                                     "/usr/lib/cups/filter:"
-                                     "/usr/lib64/cups/filter")
+                                     "${PREFIX}/libexec/cups/filter")
 
     if exe and not exepath:
         # We didn't find a necessary executable.  Complain.
