Fix VMInstall package is not installed 26/262026/1
authorHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 2 Aug 2021 01:35:51 +0000 (10:35 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 2 Aug 2021 01:35:51 +0000 (10:35 +0900)
problem
gbs build -A armv7l --kvm
[   16s] [38/41] preinstalling util-linux-su...
[   16s] [39/41] preinstalling nss...
[   16s] [40/41] preinstalling libsoftokn3...
[   16s] [41/41] preinstalling rpm...
[   16s]
[   16s] binary not found: libext2fs
[   16s] exit ...

In project.conf
VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols procps-ng
but it is not installed.

When performing expanddeps, the --vm option is missing.
so it is not installed.
Add  to option

Change-Id: Ie238163125e3836f403ad55eee0dc76a3d23850c
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
init_buildsystem

index de92390..30f4132 100755 (executable)
@@ -636,7 +636,7 @@ else
        test -z "$LIST_STATE" && echo "expanding package dependencies..."
        VMOPT=
        test -z "$PREPARE_VM" || VMOPT=--vm
-       if ! $BUILD_DIR/expanddeps $USEUSEDFORBUILD $USEHIGHERDEPS "${definesnstuff[@]}" --dist "$BUILD_DIST" --depfile "$CACHE_FILE" --archpath "$BUILD_ARCH" --configdir $CONFIG_DIR "${PKGS[@]}" > $RPMLIST ; then
+       if ! $BUILD_DIR/expanddeps $USEUSEDFORBUILD $VMOPT $USEHIGHERDEPS "${definesnstuff[@]}" --dist "$BUILD_DIST" --depfile "$CACHE_FILE" --archpath "$BUILD_ARCH" --configdir $CONFIG_DIR "${PKGS[@]}" > $RPMLIST ; then
            rm -f $BUILD_IS_RUNNING
            cleanup_and_exit 1
        fi