From 01f99c063ec92a22d97c339768ec0679a0316315 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 22 Feb 2019 10:33:29 +0000 Subject: dpkg: enable in the default configuration BusyBox's dpkg is marginally more useful than rpm because it maintains package status. Run the following commands to initialise the filesystem: mkdir -p /var/lib/dpkg/info touch /var/lib/dpkg/status --- archival/dpkg.c | 5 +++++ configs/mingw32_defconfig | 2 +- configs/mingw64_defconfig | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/archival/dpkg.c b/archival/dpkg.c index ddb5daf09..8b25cfd47 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -149,6 +149,11 @@ enum edge_type_e { EDGE_RECOMMENDS = 13, EDGE_ENHANCES = 15 }; +#if ENABLE_PLATFORM_MINGW32 +#undef VER_EQUAL +#undef VER_LESS +#undef VER_LESS_EQUAL +#endif enum operator_e { VER_NULL = 0, VER_EQUAL = 1, diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig index 907a5fa91..b288626a3 100644 --- a/configs/mingw32_defconfig +++ b/configs/mingw32_defconfig @@ -173,7 +173,7 @@ CONFIG_FEATURE_BZIP2_DECOMPRESS=y CONFIG_CPIO=y CONFIG_FEATURE_CPIO_O=y # CONFIG_FEATURE_CPIO_P is not set -# CONFIG_DPKG is not set +CONFIG_DPKG=y CONFIG_DPKG_DEB=y CONFIG_GZIP=y CONFIG_FEATURE_GZIP_LONG_OPTIONS=y diff --git a/configs/mingw64_defconfig b/configs/mingw64_defconfig index 048c1da0f..3799fe421 100644 --- a/configs/mingw64_defconfig +++ b/configs/mingw64_defconfig @@ -173,7 +173,7 @@ CONFIG_FEATURE_BZIP2_DECOMPRESS=y CONFIG_CPIO=y CONFIG_FEATURE_CPIO_O=y # CONFIG_FEATURE_CPIO_P is not set -# CONFIG_DPKG is not set +CONFIG_DPKG=y CONFIG_DPKG_DEB=y CONFIG_GZIP=y CONFIG_FEATURE_GZIP_LONG_OPTIONS=y -- cgit v1.2.3-55-g6feb