From fade0570ec676c3106f866040f913cedcdcef4cc Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 27 Oct 2019 02:34:08 +0100 Subject: Fix building mkinitrd --- scripts/bootstrap/fix_deps.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'scripts/bootstrap/fix_deps.sh') diff --git a/scripts/bootstrap/fix_deps.sh b/scripts/bootstrap/fix_deps.sh index 2cccf4b..c5ccd3b 100644 --- a/scripts/bootstrap/fix_deps.sh +++ b/scripts/bootstrap/fix_deps.sh @@ -1,9 +1,17 @@ #! /bin/bash # Ncurses/GPM, pam/caps, pkgconfig/glib circular dependency -USE="${USE} -gpm" emerge -1 ncurses -USE="${USE} -filecaps" emerge -1 pam -USE="${USE} internal-glib" emerge -1 pkgconfig +if [ ! /usr/bin/pkg-config ]; then + USE="${USE} -gpm" emerge -1 ncurses + USE="${USE} -filecaps" emerge -1 pam + USE="${USE} internal-glib" emerge -1 pkgconfig +fi + +# Some applications requires latest version of OpenCL standard, intel provides one +[ -f /etc/OpenCL/vendors/intelocl64.icd ] || emerge -u1 intel-ocl-sdk && eselect opencl set intel + +# Preparing kernel +[ -f /usr/src/linux/.config ] || emerge -1 gentoo-sources && yes "" | make -C /usr/src/linux oldconfig # Unmerge #emerge --depclean -a -- cgit v1.2.3