diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-03-21 21:36:52 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-03-21 21:36:52 +0100 |
commit | 86259c9ba2a9e4eab2c5c61ad1c85d8e2004e567 (patch) | |
tree | e096d4bc24fcf2e99190714afedd247350b50c8c /gen_compile.sh | |
parent | Unify output (diff) | |
download | genkernel-86259c9ba2a9e4eab2c5c61ad1c85d8e2004e567.tar.gz genkernel-86259c9ba2a9e4eab2c5c61ad1c85d8e2004e567.tar.bz2 genkernel-86259c9ba2a9e4eab2c5c61ad1c85d8e2004e567.zip |
Add libaio-0.3.110
Required for newer LVM2.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-x | gen_compile.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gen_compile.sh b/gen_compile.sh index 74319bd..0689e10 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -492,6 +492,43 @@ compile_busybox() { fi } +compile_libaio() { + if [ -f "${LIBAIO_BINCACHE}" ] + then + print_info 1 "$(getIndent 3)libaio: >> Using cache" + else + [ -f "${LIBAIO_SRCTAR}" ] || + gen_die "Could not find libaio source tarball: ${LIBAIO_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!" + cd "${TEMP}" + rm -rf ${LIBAIO_DIR} > /dev/null + /bin/tar -xpf ${LIBAIO_SRCTAR} || + gen_die 'Could not extract libaio source tarball!' + [ -d "${LIBAIO_DIR}" ] || + gen_die "libaio directory ${LIBAIO_DIR} is invalid!" + + print_info 1 "$(getIndent 3)libaio: >> Patching ..." + cd "${LIBAIO_DIR}" || gen_die "cannot chdir into '${LIBAIO_DIR}'" + apply_patches libaio ${LIBAIO_VER} + + print_info 1 "$(getIndent 3)libaio: >> Compiling..." + CFLAGS="-fPIC" \ + LDFLAGS='-Wl,--no-as-needed' \ + compile_generic '' utils || gen_die "failed to build libaio" + + print_info 1 "$(getIndent 3)libaio: >> Installing to DESTDIR..." + compile_generic "prefix=${TEMP}/libaio install" utils || gen_die "failed to install libaio" + + print_info 1 "$(getIndent 3)libaio: >> Copying to bincache..." + cd "${TEMP}/libaio" || gen_die "cannot chdir into '${TEMP}/libaio'" + /bin/tar -cjf "${LIBAIO_BINCACHE}" . || + gen_die 'Could not create libaio binary cache' + + cd "${TEMP}" + isTrue "${CMD_DEBUGCLEANUP}" && rm -rf "${LIBAIO_DIR}" libaio + return 0 + fi +} + compile_lvm() { if [ -f "${LVM_BINCACHE}" ] then |