From eb18ab0923b5156f22b690381338e6183d17c4fb Mon Sep 17 00:00:00 2001 From: zhangyao Date: Wed, 31 Jul 2024 10:26:29 +0800 Subject: [PATCH] fix build error caused by build-system changed --- util-linux.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/util-linux.spec b/util-linux.spec index 591ccb8..8237427 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -3,7 +3,7 @@ Name: util-linux Version: 2.39.1 -Release: 10 +Release: 11 Summary: A random collection of Linux utilities License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain URL: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git @@ -49,6 +49,8 @@ Patch9003: add-new-gmo-file.patch BuildRequires: audit-libs-devel >= 1.0.6 gettext-devel libselinux-devel ncurses-devel pam-devel zlib-devel popt-devel BuildRequires: libutempter-devel systemd-devel systemd libuser-devel libcap-ng-devel python3-devel gcc autoconf automake BuildRequires: make readline-devel rubygem-asciidoctor po4a lsof git +#enable if make changes to build-system +BuildRequires: autoconf automake libtool bison Requires(post): coreutils Requires: pam >= 1.1.3-7, /etc/pam.d/system-auth audit-libs >= 1.0.6 @@ -169,10 +171,12 @@ This package contains some doc and man help files for %{name}. %build %define _build_arg0__ CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS" SUID_CFLAGS="-fpie" %define _build_arg1__ SUID_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" DAEMON_CFLAGS="$SUID_CFLAGS" DAEMON_LDFLAGS="$SUID_LDFLAGS" -#autoreconf unset LINGUAS || : -autoreconf -fiv + +#enable if make changes to build-system +./autogen.sh + # del support enable-raw https://github.com/torvalds/linux/commit/603e4922f1c81fc2ed3a87b4f91a8d3aafc7e093 %configure \ --with-systemdsystemunitdir=%{_unitdir} \ @@ -425,6 +429,12 @@ fi %endif %changelog +* Wed Jul 31 2024 zhangyao - 2.39.1-11 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix build error caused by build-system changed + * Mon Jul 22 2024 liweigang - 2.39.1-10 - Type: bugfix - CVE: NA -- Gitee