697 |
echo "Error: unable to parse package dependencies -- please check PKG_DEPEND=\"$1\"" |
echo "Error: unable to parse package dependencies -- please check PKG_DEPEND=\"$1\"" |
698 |
exit 1 |
exit 1 |
699 |
fi |
fi |
700 |
|
#echo "---- content of tmp file '.pd_tmp' :" ; cat .pd_tmp ; echo "---- end of file" |
701 |
. ./.pd_tmp |
. ./.pd_tmp |
702 |
rm -f ./.pd_tmp |
rm -f ./.pd_tmp |
703 |
} |
} |
2450 |
if test "x$p" = "x$pname" ; then pin="t" ; fi |
if test "x$p" = "x$pname" ; then pin="t" ; fi |
2451 |
done |
done |
2452 |
|
|
2453 |
# Is the DNAME entry a (+) or (-) rule ? |
# Is the DNAME entry a (=), (+) or (-) rule ? |
2454 |
tmp="dname=\"\$DNAME_$i\"" |
tmp="dname=\"\$DNAME_$i\"" |
2455 |
eval $tmp |
eval $tmp |
2456 |
plus="-" |
plus="a" |
2457 |
echo $dname | grep '^+' > /dev/null 2>&1 |
echo $dname | grep '^+' > /dev/null 2>&1 |
2458 |
RETVAL=$? |
RETVAL=$? |
2459 |
if test "x$RETVAL" = x0 ; then |
if test "x$RETVAL" = x0 ; then plus="+" ; fi |
2460 |
plus="+" |
echo $dname | grep '^-' > /dev/null 2>&1 |
2461 |
fi |
RETVAL=$? |
2462 |
|
if test "x$RETVAL" = x0 ; then plus="-" ; fi |
2463 |
|
|
2464 |
# Is $dname in the current $PACKAGES list? |
# Is $dname in the current $PACKAGES list? |
2465 |
dname=`echo $dname | sed -e 's/^[+-]//'` |
dname=`echo $dname | sed -e 's/^[=+-]//'` |
2466 |
din="f" |
din="f" |
2467 |
for p in $PACKAGES ; do |
for p in $PACKAGES ; do |
2468 |
if test "x$p" = "x$dname" ; then |
if test "x$p" = "x$dname" ; then |
2471 |
done |
done |
2472 |
|
|
2473 |
# Do we need to add $dname according to the dependency rules? |
# Do we need to add $dname according to the dependency rules? |
2474 |
if test "x$pin" = xt -a "x$plus" = "x+" -a "x$din" = xf ; then |
if test "x$pin" = xt -a "x$plus" != "x-" -a "x$din" = xf ; then |
2475 |
#echo " " $pname ": need to add :" $dname |
#echo " " $pname ": need to add :" $dname |
2476 |
in_dis="f" |
in_dis="f" |
2477 |
for dis in $DISABLE ; do |
for dis in $DISABLE ; do |
2480 |
fi |
fi |
2481 |
done |
done |
2482 |
if test "x$in_dis" = xt ; then |
if test "x$in_dis" = xt ; then |
2483 |
echo "Error: can't satisfy package dependencies:" |
if test "x$plus" = "x+" ; then |
2484 |
echo " \"$dname\" is required by the dependency rules" |
echo "Error: can't satisfy package dependencies:" |
2485 |
echo " but is disallowed by the DISABLE settings" |
echo " \"$dname\" is required with pkg \"$pname\" (dependency rules)" |
2486 |
exit 1 |
echo " but is disallowed by the DISABLE settings" |
2487 |
|
exit 1 |
2488 |
|
elif test "x$ck" = xt ; then |
2489 |
|
#- (=) is a weaker dependency rule: warning but no stop |
2490 |
|
echo "Warning: pkg \"$dname\" is set DISABLE (from: \"$PKG_LIST\")" |
2491 |
|
echo -n " but is recommended with pkg \"$pname\" (dependency rules)" |
2492 |
|
echo " <- ignores recommendation" |
2493 |
|
fi |
2494 |
else |
else |
2495 |
PACKAGES="$PACKAGES $dname" |
PACKAGES="$PACKAGES $dname" |
2496 |
ck= |
ck= |
2500 |
# Do we need to get rid of $dname according to the dependency rules? |
# Do we need to get rid of $dname according to the dependency rules? |
2501 |
if test "x$pin" = xt -a "x$plus" = "x-" -a "x$din" = xt; then |
if test "x$pin" = xt -a "x$plus" = "x-" -a "x$din" = xt; then |
2502 |
echo "Error: can't satisfy package dependencies:" |
echo "Error: can't satisfy package dependencies:" |
2503 |
echo " \"$pname\" was requested but is disallowed by" |
echo " \"$dname\" was requested but is disallowed by" |
2504 |
echo " the dependency rules for \"$dname\"" |
echo " the dependency rules for \"$pname\"" |
2505 |
exit 1 |
exit 1 |
2506 |
fi |
fi |
2507 |
i=`echo "$i + 1" | bc -l` |
i=`echo "$i + 1" | bc -l` |