1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 20:22:38 +01:00

sys-kernel/dracut-crypt-ssh: Add ebuild

This commit is contained in:
2020-05-11 23:27:03 +02:00
parent ae046860c6
commit 185464905b
5 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
From cc349b6df4eb85e27c0bc5dc2621f0cb4281f0cf Mon Sep 17 00:00:00 2001
From: Jan Delgado <jdelgado@gmx.net>
Date: Sun, 27 Oct 2019 21:03:58 +0100
Subject: [PATCH] make sure string is interpreted as base10 integer
Current implementation leads to error when e.g.
DRACUT_VERSION == 049, since 049 will be interpreted as
an (invalid) octal value in bash.
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 1c283a1..3fc48df 100755
--- a/configure
+++ b/configure
@@ -114,7 +114,7 @@ else
fi
OLDDRACUT=0
-[[ $DRACUT_VERSION -le 4 ]] && OLDDRACUT=1
+[[ 10#$DRACUT_VERSION -le 4 ]] && OLDDRACUT=1
cat >config.mk <<EOF
export DRACUT=${DRACUT}

View File

@@ -0,0 +1,24 @@
From 111148d470e13dcc2cd60ba04e8d6d473a374b10 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Thu, 26 Mar 2020 16:48:56 +0100
Subject: [PATCH] Correctly link with --as-needed
Linker needs to analzye the objects first before considering libraries.
as-needed is commonly used on distros.
---
modules/60crypt-ssh/helper/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/60crypt-ssh/helper/Makefile b/modules/60crypt-ssh/helper/Makefile
index 7abc5f3..9aa5003 100644
--- a/modules/60crypt-ssh/helper/Makefile
+++ b/modules/60crypt-ssh/helper/Makefile
@@ -20,7 +20,7 @@ console_auth: auth.c
$(CC) $(CFLAGS) $^ -o $@
unlock: crypttab.o unlock.o
- $(CC) $(CFLAGS) -lblkid $^ -o $@
+ $(CC) $(CFLAGS) $^ -lblkid -o $@
crypttab-test: crypttab-test.c crypttab.o crypttab-test-data
$(CC) crypttab-test.c $(CFLAGS) crypttab.o -lblkid -o crypttab-test