I’m trying to compile the linux-zen-git, but it gets stuck at cloning into bare repository, my internet bandwidth is just 2mbs and my download rate is 248 kbps, is this happening due to my slow connection or is it something else entirely?
Preparando...
Clonando linux-zen-git arquivos para compilar...
Verificando 1linux-zen-git dependências...
Resolvendo dependências...
Verificando conflito entre pacotes...
Construindo linux-zen-git...
==> Criando o pacote: linux-zen-git 5.10.13+970601+gfd4d4ab12786-1 (seg 01 mar 2021 15:25:20)
==> Verificando as dependências de tempo de execução...
==> Verificando as dependências de tempo de compilação...
==> Obtendo fontes...
-> Encontrado linux-zen.conf
-> Encontrado linux-zen.preset
-> Clonando repositório zen-kernel do tipo git...
Cloning into bare repository '/var/tmp/pamac-build-julio/linux-zen-git/zen-kernel'...
Here is the building config section of the PKGBUILD if someone can make it out.
build() {
cd "${srcdir}/zen-kernel"
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
if [ ! -d "${srcdir}/build" ]; then
msg2 "Creating build directory..."
mkdir -p "${srcdir}/build"
else
if [ -f "${srcdir}/build/.config" ]; then
msg "Cleaning build directory, and backing up kernel config to srcdir/zen-config-bak..."
cp "${srcdir}/build/.config" "${srcdir}/zen-config-bak"
rm -rf "${srcdir}/build"
cd "${srcdir}/zen-kernel"
make clean &> /dev/null
make mrproper &> /dev/null
make -C "${srcdir}/zen-kernel/" O="${srcdir}/build" defconfig > /dev/null
msg "Using backed up config from previous build directory."
cp "${srcdir}/zen-config-bak" "${srcdir}/build/.config"
fi
fi
if [ ! -f "${srcdir}/build/.config" ]; then
if [ ! -f "${srcdir}/../zen-config" ]; then
msg2 "Creating default config..."
make -C "${srcdir}/zen-kernel/" O="${srcdir}/build" defconfig > /dev/null
warning "This package does not ship a kernel config."
plain ""
warning "Thus it is up to you to create a one that fits your needs."
warning "Navigate to '${srcdir}/build'"
warning "and either run 'make menuconfig' or if you want to use an existing config,"
warning "save it as '.config' and run 'make oldconfig' in order to update it."
warning "You could also grab the one used for the mainline zen-kernel package from "
warning "https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux-zen/trunk/config "
warning "Having done that you can run 'makepkg' again."
plain ""
return 1
else
msg "Using saved zen-config file in build root."
cp "${srcdir}/../zen-config" "${srcdir}/build/.config"
fi
fi
msg "Allowing disable of MSR in lockdown mode to allow undervolting and prevent false positives for spectre-meltdown-checker..."
patch -Np1 -i "${srcdir}/allow-disable-msr-lockdown.patch"
msg2 "Updating output directory Makefile..."
make -C "${srcdir}/zen-kernel/" O="${srcdir}/build" outputmakefile
warning "Press ENTER if you want to build the kernel or CTRL+C to abort..."
read
cd "${srcdir}/build"
msg2 "Building kernel..."; make -j $_CORES bzImage
msg2 "Building modules..."; make -j $_CORES modules
}