openbsd-ports/print/hplip/patches/patch-installer_dcheck_py
ajacoutot f8bddf7e5a Major update to hplip-3.9.6b.
Refer to the project homepage for the complete changelog.

This port now comes into 5 subpackages (ala Fedora):
- main: complete hplip functionnalities
- hpijs: deprecated hpijs printer driver
- hpcups: new-gen printer driver
- libs: libraries and helpers used by other subpackages
- gui: graphical tools (systray applet...)

It seems this version works a least as good as the previous one we had
in-tree. I could use some feedbacks for the fancier stuffs that hplip
provides (besides regular printing using hpcups and/or hpijs), like
printer communication, ink levels... because I have no hp equipment, but
at least, there was no regression reported.
(some features are Linux-only and are expected not to work)

Tested by several, thanks!
2009-07-13 08:14:28 +00:00

22 lines
980 B
Plaintext

$OpenBSD: patch-installer_dcheck_py,v 1.3 2009/07/13 08:14:28 ajacoutot Exp $
--- installer/dcheck.py.orig Thu Jul 2 17:45:31 2009
+++ installer/dcheck.py Thu Jul 2 17:46:28 2009
@@ -43,7 +43,7 @@ mod_output = ''
def update_ld_output():
# For library checks
global ld_output
- status, ld_output = utils.run('%s -p' % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False)
+ status, ld_output = utils.run('%s -r' % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False)
if status != 0:
log.debug("ldconfig failed.")
@@ -98,7 +98,7 @@ def check_lib(lib, min_ver=0):
log.debug("Not found.")
return False
-def check_file(f, dir="/usr/include"):
+def check_file(f, dir="${LOCALBASE}/include"):
log.debug("Searching for file '%s' in '%s'..." % (f, dir))
for w in utils.walkFiles(dir, recurse=True, abs_paths=True, return_folders=False, pattern=f):
log.debug("File found at '%s'" % w)