$OpenBSD: patch-installer_dcheck_py,v 1.4 2012/06/26 06:17:11 ajacoutot Exp $ --- installer/dcheck.py.orig Mon Jun 18 12:41:59 2012 +++ installer/dcheck.py Tue Jun 26 07:06:29 2012 @@ -44,7 +44,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.") @@ -99,7 +99,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)