[pacman-dev] [PATCH] Add rundepends keyword to makepkg
Thomas Bächler
thomas at archlinux.org
Tue Jul 1 13:47:09 EDT 2008
When a package A requires a package B at runtime, but B is not
needed for building A or B cannot be installed while A is being
built, rundepends=('B') can be used to add B to A's dependencies,
omitting the dependency check at built time.
---
scripts/makepkg.sh.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index c45d7e8..c809498 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -809,7 +809,7 @@ create_package() {
for it in "${groups[@]}"; do
echo "group = $it" >>.PKGINFO
done
- for it in "${depends[@]}"; do
+ for it in "${depends[@]} ${rundepends[@]}"; do
echo "depend = $it" >>.PKGINFO
done
for it in "${optdepends[@]}"; do
@@ -1287,7 +1287,7 @@ fi
unset pkgname pkgver pkgrel pkgdesc url license groups provides md5sums
unset replaces depends conflicts backup source install build makedepends
-unset optdepends options noextract
+unset optdepends options noextract rundepends
if [ ! -f "$BUILDSCRIPT" ]; then
error "$(gettext "%s does not exist.")" "$BUILDSCRIPT"
--
1.5.6
More information about the pacman-dev
mailing list