openbsd-ports/print/system-config-printer/patches/patch-cupshelpers_cupshelpers_py

23 lines
1008 B
Plaintext

$OpenBSD: patch-cupshelpers_cupshelpers_py,v 1.4 2009/06/08 19:24:43 ajacoutot Exp $
--- cupshelpers/cupshelpers.py.orig Wed Feb 18 16:46:02 2009
+++ cupshelpers/cupshelpers.py Thu Jun 4 03:19:02 2009
@@ -714,7 +714,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:
@@ -812,8 +812,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.