... added dracut for alpine ...
This commit is contained in:
parent
0e2c6316e4
commit
48d1ac9452
|
@ -0,0 +1,33 @@
|
|||
From ce55a85ed5d902c19d75895508856f96ec2ceb1a Mon Sep 17 00:00:00 2001
|
||||
From: Laszlo Gombos <laszlo.gombos@gmail.com>
|
||||
Date: Sun, 20 Feb 2022 22:23:49 -0500
|
||||
Subject: [PATCH] fix(install): restore musl support
|
||||
|
||||
__GLIBC_PREREQ is only defined in glibc.
|
||||
---
|
||||
src/install/util.c | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/install/util.c b/src/install/util.c
|
||||
index 5721de89ea..0af387c277 100644
|
||||
--- a/src/install/util.c
|
||||
+++ b/src/install/util.c
|
||||
@@ -24,17 +24,15 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/syscall.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
-#if __GLIBC_PREREQ(2, 30) == 0
|
||||
-#include <sys/syscall.h>
|
||||
#ifndef SYS_gettid
|
||||
#error "SYS_gettid unavailable on this system"
|
||||
#endif
|
||||
|
||||
#define gettid() ((pid_t) syscall(SYS_gettid))
|
||||
-#endif /*__GLIBC_PREREQ */
|
||||
|
||||
size_t page_size(void)
|
||||
{
|
|
@ -0,0 +1,41 @@
|
|||
# SPDX-License-Identifier: GPL-3.0+
|
||||
pkgname=dracut-git
|
||||
pkgver=055
|
||||
pkgrel=1
|
||||
pkgdesc='An event driven initramfs infrastructure'
|
||||
arch='x86_64 aarch64'
|
||||
url='https://dracut.wiki.kernel.org'
|
||||
license='GPL'
|
||||
depends="bash coreutils cpio findutils grep gzip
|
||||
kmod pkgconf sed util-linux xz fts"
|
||||
makedepends="git asciidoc kmod-dev fts-dev"
|
||||
# optdepends='binutils: --uefi option support'
|
||||
# 'tpm2-tools: tpm2-tss module support'
|
||||
# 'elfutils: strip binaries to reduce initramfs size'
|
||||
# 'hardlink: --hardlink option support'
|
||||
# 'memstrack: memstrack module support'
|
||||
# 'multipath-tools: dmraid dracut module support'
|
||||
# 'pigz: faster gzip compression'
|
||||
# 'sbsigntools: uefi_secureboot_cert/key configuration option support'
|
||||
subpackages="$pkgname-doc"
|
||||
source='
|
||||
dracut.tar.gz::https://github.com/dracutdevs/dracut/archive/refs/tags/056.tar.gz
|
||||
000-fix-musl.patch
|
||||
'
|
||||
|
||||
sha512sums='006620b3b9cc71c8cb67fb7c4358936124724b6b7cd51fbb525601841f68e86eb432eabf8d0d493ec1cb6b6cbcbf065af127d8de1017873392ed2ea0636ed5ad dracut.tar.gz
|
||||
f6bfca571aafe05ba37f77b9ba7bf198bbd1133ff8834c01429ef91cc5d63f7404192e511d932fa432eb79ac9cffbebe7225820bd3740d73745a8a3b4a452538 000-fix-musl.patch'
|
||||
|
||||
builddir="$srcdir"/dracut-056
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
Loading…
Reference in New Issue