sys-boot/grub: update test dependencies.
authorRobin H. Johnson <robbat2@gentoo.org>
Tue, 14 Feb 2017 23:07:51 +0000 (15:07 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Tue, 14 Feb 2017 23:08:03 +0000 (15:08 -0800)
Package-Manager: portage-2.3.2

sys-boot/grub/grub-9999.ebuild

index 7409bfd4ffeff77c014ee1812272e084e7b8b240..8aeed5fc3425e6c025388428d80cdc91737ebfc3 100644 (file)
@@ -95,8 +95,14 @@ DEPEND="${RDEPEND}
                )
        )
        test? (
-               dev-libs/libisoburn
+               app-admin/genromfs
+               app-arch/cpio
+               app-arch/lzop
                app-emulation/qemu
+               dev-libs/libisoburn
+               sys-apps/miscfiles
+               sys-block/parted
+               sys-fs/squashfs-tools
        )
        themes? (
                app-arch/unzip
@@ -137,6 +143,14 @@ src_prepare() {
                sed -i -e 's/^\* GRUB:/* GRUB2:/' -e 's/(grub)/(grub2)/' docs/grub.texi || die
        fi
 
+       # Nothing in Gentoo packages 'american-english' in the exact path
+       # wanted for the test, but all that is needed is a compressible text
+       # file, and we do have 'words' from miscfiles in the same path.
+       sed -i \
+               -e '/CFILESSRC.*=/s,american-english,words,' \
+               tests/util/grub-fs-tester.in \
+               || die
+
        if [[ -n ${GRUB_AUTOGEN} ]]; then
                python_setup
                bash autogen.sh || die