diff --git a/system/base/util-linux/actions.py b/system/base/util-linux/actions.py
index 24343945..2e2c228a 100644
--- a/system/base/util-linux/actions.py
+++ b/system/base/util-linux/actions.py
@@ -33,8 +33,10 @@ def setup():
--disable-sulogin \
--disable-utmpdump \
--disable-chfn-chsh \
+ --enable-gtk-doc-html=no \
--disable-makeinstall-chown \
--disable-socket-activation \
+ --without-systemdsystemunitdir \
"
if get.buildTYPE() == "emul32":
@@ -59,7 +61,7 @@ def setup():
--bindir=/bin \
--sbindir=/sbin \
--enable-partx \
- --enable-raw \
+ --disable-raw \
--enable-write \
--enable-tunelp \
--enable-runuser \
@@ -68,8 +70,8 @@ def setup():
--enable-mountpoint \
--without-utempter \
"
-
- autotools.autoreconf("-fi")
+ shelltools.system("NOCONFIGURE=1 ./autogen.sh")
+ #autotools.autoreconf("-fi")
autotools.configure(options)
pisitools.dosed("libtool", "( -shared )", r" -Wl,--as-needed\1")
diff --git a/system/base/util-linux/files/login-lastlog-create.patch b/system/base/util-linux/files/login-lastlog-create.patch
new file mode 100644
index 00000000..799f3304
--- /dev/null
+++ b/system/base/util-linux/files/login-lastlog-create.patch
@@ -0,0 +1,12 @@
+diff -up util-linux-2.36/login-utils/login.c.kzak util-linux-2.36/login-utils/login.c
+--- util-linux-2.36/login-utils/login.c.kzak 2020-07-23 14:13:26.777030764 +0200
++++ util-linux-2.36/login-utils/login.c 2020-07-23 14:11:22.793686983 +0200
+@@ -585,7 +585,7 @@ static void log_lastlog(struct login_con
+ sa.sa_handler = SIG_IGN;
+ sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
+
+- fd = open(_PATH_LASTLOG, O_RDWR, 0);
++ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
+ if (fd < 0)
+ goto done;
+ offset = cxt->pwd->pw_uid * sizeof(ll);
diff --git a/system/base/util-linux/pspec.xml b/system/base/util-linux/pspec.xml
index a48a1fb8..caff54bb 100644
--- a/system/base/util-linux/pspec.xml
+++ b/system/base/util-linux/pspec.xml
@@ -13,7 +13,7 @@
library
Various useful Linux utilities
The util-linux package contains a large variety of low-level system utilities that are necessary for a Linux system to function.
- https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.36/util-linux-2.36.tar.xz
+ https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.37/util-linux-2.37.4.tar.xz
zlib-devel
eudev-devel
@@ -41,6 +41,7 @@
libutil-linux
zlib
pam
+ file
perl
ncurses
readline
@@ -151,6 +152,13 @@
+
+ 2022-07-21
+ 2.37.4
+ Version bump.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2021-03-14
2.36