diff --git a/patches/util-linux/jinx-working-patch.patch b/patches/util-linux/jinx-working-patch.patch index effe9a54..af55428f 100644 --- a/patches/util-linux/jinx-working-patch.patch +++ b/patches/util-linux/jinx-working-patch.patch @@ -31,3 +31,19 @@ index d1c1840..a860cc9 100644 ]) AC_OUTPUT +diff --git util-linux-clean/term-utils/agetty.c util-linux-workdir/term-utils/agetty.c +index 0dfe52c..60fc168 100644 +--- util-linux-clean/term-utils/agetty.c ++++ util-linux-workdir/term-utils/agetty.c +@@ -92,9 +92,9 @@ + #endif + + /* If USE_SYSLOG is undefined all diagnostics go to /dev/console. */ +-#ifdef USE_SYSLOG ++//##ifdef USE_SYSLOG + # include +-#endif ++//#endif + + /* + * Some heuristics to find out what environment we are in: if it is not diff --git a/recipes/agetty b/recipes/agetty new file mode 100644 index 00000000..0d38682b --- /dev/null +++ b/recipes/agetty @@ -0,0 +1,23 @@ +name=agetty +revision=1 +from_source=util-linux +imagedeps="build-essential python3 python3-dev" +hostrundeps="automake autoconf xgcc xbinutils libstdc++-v3 pkgconfig libtool" +deps="base" + +configure() { + cp -rp ${source_dir}/* . + rm -rf po + build_setsid=yes ./configure --host=x86_64-astral --prefix=${prefix} --disable-all-programs --enable-agetty +} + +build() { + x86_64-astral-gcc -o setsid ${source_dir}/sys-utils/setsid.c -I${source_dir}/include -DHAVE_NANOSLEEP -DHAVE_REALLOCARRAY -DHAVE_FSYNC -DPACKAGE_STRING='"foo"' + make -j ${parallelism} +} + +package() { + mkdir -p ${dest_dir}/usr/bin + cp setsid ${dest_dir}/usr/bin + make DESTDIR="${dest_dir}" install +}