aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-15 11:08:47 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-15 11:08:47 -0700
commit698af6ed24c50eb9c8bcc2446f23cd2d76f0fa0a (patch)
tree9ebcb699ca415571ce71512cb96a860fc6c0aef1
parentb780df8b59b54048f08cc1fb2bce8ecd49390c6e (diff)
Fixup source dependancies
* Add the builder git index and included configs to a packages source dependancies.
-rwxr-xr-xbuild5
-rwxr-xr-xlibexec/build-makedeps8
2 files changed, 12 insertions, 1 deletions
diff --git a/build b/build
index 399021d..6cd9f98 100755
--- a/build
+++ b/build
@@ -99,6 +99,11 @@ include()
eval "test -z '\${BUILDER_INCLUDE_${2}}'" || return
. "${BUILDER_CFGDIR}/${1}"
eval "BUILDER_INCLUDE_${2}='${BUILDER_CFGDIR}/${1}"
+ if [ -z "${BUILDER_INCLUDED}" ]; then
+ BUILDER_INCLUDED="${1}"
+ else
+ BUILDER_INCLUDED="${BUILDER_INCLUDED} ${1}"
+ fi
}
# FIXME we need a build-resolv subcmd for resolving package names
diff --git a/libexec/build-makedeps b/libexec/build-makedeps
index 1d7a2bd..b346120 100755
--- a/libexec/build-makedeps
+++ b/libexec/build-makedeps
@@ -57,7 +57,13 @@ for package in $(echo "${BUILDER_PKGDIR}"/*/*); do
package_export="${BUILDER_TOPDIR}/exports/${CATEGORY}/${NAME}-${VERSION}-${RELEASE}.${CHOST%%-*}.rpm"
package_logdir="${L}"
- package_sources="${RULESFILE}"
+ package_sources="${BUILDER_TOPDIR}/.git/modules/scripts/index"
+ for config in ${BUILDER_INCLUDED}; do
+ test -f "${BUILDER_CFGDIR}/${config}" || continue
+ package_sources="${package_sources} ${BUILDER_CFGDIR}/${config}"
+ done
+
+ package_sources="${package_sources} ${RULESFILE}"
for patch in ${PATCHES}; do
patch="${F}/${NAME}-${VERSION}-${patch}.patch"
if ! test -f "${patch}"; then