}
next;
}
- if ($l0 eq 'preinstall:' || $l0 eq 'vminstall:' || $l0 eq 'cbpreinstall:' || $l0 eq 'cbinstall:' || $l0 eq 'cbpreignore:' || $l0 eq 'cbignore:' || $l0 eq 'required:' || $l0 eq 'support:' || $l0 eq 'keep:' || $l0 eq 'prefer:' || $l0 eq 'ignore:' || $l0 eq 'conflict:' || $l0 eq 'runscripts:') {
+ if ($l0 eq 'preinstall:' || $l0 eq 'vminstall:' || $l0 eq 'cbpreinstall:' || $l0 eq 'cbinstall:' || $l0 eq 'required:' || $l0 eq 'support:' || $l0 eq 'keep:' || $l0 eq 'prefer:' || $l0 eq 'ignore:' || $l0 eq 'conflict:' || $l0 eq 'runscripts:') {
my $t = substr($l0, 0, -1);
for my $l (@l) {
if ($l eq '!*') {
warn("unknown keyword in config: $l0\n");
}
}
- for my $l (qw{preinstall vminstall cbpreinstall cbinstall cbpreignore cbignore required support keep runscripts repotype patterntype}) {
+ for my $l (qw{preinstall vminstall cbpreinstall cbinstall required support keep runscripts repotype patterntype}) {
$config->{$l} = [ unify(@{$config->{$l}}) ];
}
for my $l (keys %{$config->{'substitute'}}) {
return @{$config->{'cbinstall'}};
}
-sub get_cbpreignores {
- my ($config) = @_;
- return @{$config->{'cbpreignore'}};
-}
-
-sub get_cbignores {
- my ($config) = @_;
- return @{$config->{'cbignore'}};
-}
-
sub get_runscripts {
my ($config) = @_;
return @{$config->{'runscripts'}};
PACKAGES_TO_VMINSTALL=
PACKAGES_TO_CBPREINSTALL=
PACKAGES_TO_CBINSTALL=
- PACKAGES_TO_CBPREIGNORE=
- PACKAGES_TO_CBIGNORE=
RUNSCRIPTS_SEEN=
GUESSED_DIST=unknown
mkdir -p $BUILD_ROOT/.init_b_cache/rpms
fi
continue
fi
- if test "$PKG" = "cbignore:" ; then
- if is_emulator_arch ; then
- PACKAGES_TO_CBIGNORE=$SRC
- fi
- continue
- fi
- if test "$PKG" = "cbpreignore:" ; then
- if is_emulator_arch ; then
- PACKAGES_TO_CBPREIGNORE=$SRC
- fi
- continue
- fi
if test "$PKG" = "runscripts:" ; then
RUNSCRIPTS_SEEN=true
PACKAGES_TO_RUNSCRIPTS=$SRC
test -n "$PACKAGES_TO_CBPREINSTALL" && echo "cbpreinstall: $PACKAGES_TO_CBPREINSTALL"
test -n "$PACKAGES_TO_CBINSTALL" && echo "cbinstall : $PACKAGES_TO_CBINSTALL"
- test -n "$PACKAGES_TO_CBPREIGNORE" && echo "cbpreignore: $PACKAGES_TO_CBPREIGNORE"
- test -n "$PACKAGES_TO_CBIGNORE" && echo "cbignore: $PACKAGES_TO_CBIGNORE"
-
# compatibility...
test -z "$RUNSCRIPTS_SEEN" && PACKAGES_TO_RUNSCRIPTS="$PACKAGES_TO_PREINSTALL"
:> $BUILD_ROOT/etc/ld.so.conf
:> $BUILD_ROOT/etc/default/rcS
fi
- # remove CBPREIGNORE
- if test -n "$PACKAGES_TO_CBPREIGNORE"; then
- for preignore in $PACKAGES_TO_CBPREIGNORE; do
- ${PACKAGES_TO_RUNSCRIPTS#preignore}
- ${PACKAGES_TO_PREINSTALL#preignore}
- echo "Removing $preignore from runscripts and preinstall (cbpreignore)."
- done
- fi
for PKG in $PACKAGES_TO_RUNSCRIPTS ; do
: > $BUILD_ROOT/.init_b_cache/scripts/$PKG.run
done
done
# alreadyinstalled check will not work, but we have to live with
# that...
- # remove CBPREIGNORE
- if test -n "$PACKAGES_TO_CBIGNORE"; then
- for ignore in $PACKAGES_TO_CBIGNORE; do
- ${PACKAGES_TO_INSTALL#ignore}
- echo "Removing $ignore from install (cbignore)."
- done
- fi
echo -n 'reordering...'
PACKAGES_TO_INSTALL=`reorder $PACKAGES_TO_INSTALL`
echo 'done'
# reorder packages (already done in vm continuation)
#
if ! test -e $BUILD_ROOT/.build/init_buildsystem.data ; then
- # remove CBIGNORE
- if test -n "$PACKAGES_TO_CBIGNORE"; then
- for ignore in $PACKAGES_TO_CBIGNORE; do
- ${PACKAGES_TO_INSTALL#ignore}
- echo "Removing $ignore from install (cbignore)."
- done
- fi
echo -n 'reordering...'
- # unused ? PACKAGES_TO_INSTALL_FIRST=`reorder $PACKAGES_TO_INSTALL_FIRST`
+ PACKAGES_TO_INSTALL_FIRST=`reorder $PACKAGES_TO_INSTALL_FIRST`
PACKAGES_TO_INSTALL=`reorder $PACKAGES_TO_INSTALL`
echo 'done'
fi
test "$PKG" = "*" && continue
ln $BUILD_ROOT/.init_b_cache/alreadyinstalled/$PKG $BUILD_ROOT/.init_b_cache/todelete/$PKG
done
-# unused ? $PACKAGES_TO_INSTALL_FIRST
-for PKG in $PACKAGES_TO_INSTALL $PACKAGES_TO_CBINSTALL ; do
+for PKG in $PACKAGES_TO_INSTALL_FIRST $PACKAGES_TO_INSTALL $PACKAGES_TO_CBINSTALL ; do
rm -f $BUILD_ROOT/.init_b_cache/todelete/$PKG
done
for PKG in $BUILD_ROOT/.init_b_cache/todelete/* ; do
# detect rpm4
test -x $BUILD_ROOT/usr/bin/rpmsign && RPMCHECKOPTS="--nodigest --nosignature"
test -x /usr/bin/rpmsign && RPMCHECKOPTS_HOST="--nodigest --nosignature"
-#$PACKAGES_TO_INSTALL_FIRST
-for PKG in RUN_LDCONFIG $PACKAGES_TO_INSTALL $PACKAGES_TO_CBINSTALL; do
+
+for PKG in $PACKAGES_TO_INSTALL_FIRST RUN_LDCONFIG $PACKAGES_TO_INSTALL $PACKAGES_TO_CBINSTALL; do
case $PKG in
RUN_LDCONFIG)