$OpenBSD: patch-cupshelpers_cupshelpers_py,v 1.1 2008/07/08 09:33:21 ajacoutot Exp $
--- cupshelpers/cupshelpers.py.orig	Wed Jul  2 16:18:51 2008
+++ cupshelpers/cupshelpers.py	Wed Jul  2 16:21:08 2008
@@ -699,7 +699,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:
@@ -794,8 +794,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.
