summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2020-06-08 16:16:50 +0300
committerJoonas Niilola <juippis@gentoo.org>2020-06-08 16:41:25 +0300
commitabff3a81d1fb0f6094b1354e6beff11ee14ec3eb (patch)
tree9c0a850a4f095181e7465697ab34425fb23d12a2 /app-crypt
parentsys-fs/loop-aes: Version bump to 3.7q (diff)
downloadgentoo-abff3a81d1fb0f6094b1354e6beff11ee14ec3eb.tar.gz
gentoo-abff3a81d1fb0f6094b1354e6beff11ee14ec3eb.tar.bz2
gentoo-abff3a81d1fb0f6094b1354e6beff11ee14ec3eb.zip
app-crypt/loop-aes-losetup: add die guard, etc
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/loop-aes-losetup/loop-aes-losetup-2.35.2.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/app-crypt/loop-aes-losetup/loop-aes-losetup-2.35.2.ebuild b/app-crypt/loop-aes-losetup/loop-aes-losetup-2.35.2.ebuild
index 0e0be564b397..1c85353f16ee 100644
--- a/app-crypt/loop-aes-losetup/loop-aes-losetup-2.35.2.ebuild
+++ b/app-crypt/loop-aes-losetup/loop-aes-losetup-2.35.2.ebuild
@@ -41,15 +41,15 @@ src_prepare() {
lfs_fallocate_test() {
# Make sure we can use fallocate with LFS #300307
- cat <<-EOF > "${T}"/fallocate.${ABI}.c
+ cat <<-EOF > "${T}"/fallocate.${ABI}.c || die
#define _GNU_SOURCE
#include <fcntl.h>
main() { return fallocate(0, 0, 0, 0); }
EOF
append-lfs-flags
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \
+ $( $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 || die) \
|| export ac_cv_func_fallocate=no
- rm -f "${T}"/fallocate.${ABI}.c || die
+ rm "${T}"/fallocate.${ABI}.c || die
}
src_configure() {