From 1270c3b52f55a1ec0f7a9608ab8197cc2b58a20b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 10 Apr 2012 16:36:04 -0400 Subject: Resolve path to status override file in opkbuild. The path to the file as provided to opkbuild should be relative to the package directory (the directory from which opkbuild is called). Instead, opkbuild simply passed the file path unmodified to oh-checkbuilddeps, which runs within the packaging work area (and looks for the status override file relative to the work area). This commit fixes this behavior by resolving the file path before passing it to oh-checkbuilddeps. --- diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 8856eaf..0f397a4 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -151,6 +151,12 @@ elif [ $(echo "${arch}" | wc -l) -gt 1 ]; then exit 1 fi +# Resolve status override file path. +pkg_dir="${PWD}" +cd "$(dirname "${status_override}")" +status_override="${PWD}/$(basename "${status_override}")" +cd "${pkg_dir}" + # Make work area. printf 'opkbuild: Making work area...\n' mkdir tmp -- cgit v0.9.1