build: do not generate aclocal.m4 to fix compile error

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
(cherry picked from commit 82257f8641ac1a44883b05d07ee78aa31a31ca4c)
This commit is contained in:
Wenchao Hao 2022-01-10 21:24:28 +08:00 committed by openeuler-sync-bot
parent 85d997b0c9
commit 9d0e62876c
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,47 @@
From c0819ccf8ddf3fffffe69c5f77387a30a9704e00 Mon Sep 17 00:00:00 2001
From: Wenchao Hao <haowenchao@huawei.com>
Date: Mon, 10 Jan 2022 20:56:24 +0800
Subject: [PATCH] build: do not generate aclocal.m4
Since autoconf updated, aclocal would report following error:
aclocal --output=aclocal.m4
Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at /usr/share/perl5/vendor_perl/File/Temp.pm line 153.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/File/Temp.pm line 153.
Compilation failed in require at /usr/share/autoconf/Autom4te/General.pm line 44.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/General.pm line 44.
Compilation failed in require at /usr/bin/autom4te line 47.
BEGIN failed--compilation aborted at /usr/bin/autom4te line 47.
aclocal: error: autom4te failed with exit status: 255
make: *** [Makefile:78: aclocal.m4] Error 255
aclocal command is to generate aclocal.m4 from configure.ac, this file is would not
change.
And origin tar package contains aclocal.m4 file which generated from configure.ac.
aclocal.m4 generated in Makefile is same with aclocal.m4 in tar package. Here do not
generate in Makefile
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index fa3d93b..6aaf672 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ endif
include/builddefs: configure
include/config.h: configure
-configure: aclocal.m4
+configure:
autoconf
./configure \
--prefix=/ \
--
1.8.3.1

View File

@ -1,6 +1,6 @@
Name: nfs4-acl-tools
Version: 0.3.7
Release: 3
Release: 4
Summary: The nfs4 ACL tools
License: BSD
URL: http://www.citi.umich.edu/projects/nfsv4/linux/
@ -9,6 +9,7 @@ Source0: http://linux-nfs.org/~bfields/nfs4-acl-tools/%{name}-%{version}.
BuildRequires: libtool libattr-devel
Patch1: 0001-Fix-infinite-loop-when-perl-is-added-in-BEP_FILE_TIM.patch
Patch2: 0002-build-do-not-generate-aclocal.m4.patch
%description
It contains commandline NFSv4 ACL tools, which deal directly with NFSv4 ACLs.
@ -44,6 +45,9 @@ make DESTDIR=%{buildroot} install
%{_mandir}/man*/*
%changelog
* Mon Jan 10 2022 Wenchao Hao <haowenchao@huawei.com> - 0.3.7-4
- DESC: build: do not generate aclocal.m4 to fix compile error
* Wed Dec 1 2021 volcanodragon <linfeilong@huawei.com> - 0.3.7-3
- DESC: Fix infinite loop when perl is added in BEP_FILE_TIME_LIST