From 296b4c9300da44eef0b523aba896fe7ae52b5636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 5 Mar 2024 22:52:23 +0700 Subject: [PATCH] autofs: fix basename ptr truncate to int --- .../patches/implicit-function-decl.patch | 30 +++++++++++++++++++ srcpkgs/autofs/template | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/autofs/patches/implicit-function-decl.patch diff --git a/srcpkgs/autofs/patches/implicit-function-decl.patch b/srcpkgs/autofs/patches/implicit-function-decl.patch new file mode 100644 index 00000000000..e6d4fb9afe4 --- /dev/null +++ b/srcpkgs/autofs/patches/implicit-function-decl.patch @@ -0,0 +1,30 @@ +--- a/daemon/master.c ++++ b/daemon/master.c +@@ -17,6 +17,7 @@ + * + * ----------------------------------------------------------------------- */ + ++#include + #include + #include + #include +--- a/daemon/automount.c ++++ b/daemon/automount.c +@@ -21,6 +21,7 @@ + + #include + #include ++#include + #include + #include + #include +--- a/modules/lookup_file.c ++++ b/modules/lookup_file.c +@@ -13,6 +13,7 @@ + * + * ----------------------------------------------------------------------- */ + ++#include + #include + #include + #include diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template index e7f3dfd460a..021141381c8 100644 --- a/srcpkgs/autofs/template +++ b/srcpkgs/autofs/template @@ -1,7 +1,7 @@ # Template file for 'autofs' pkgname=autofs version=5.1.9 -revision=1 +revision=2 build_style=gnu-configure make_build_args="DONTSTRIP=1" configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"