From 3a4cfcb32c662dd5bfa2023858cf22e689abdbd9 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Jan 07 2016 18:15:12 +0000 Subject: remove outdated tests from test/attr.test --- diff --git a/0003-attr-2.4.47-test-suite.patch b/0003-attr-2.4.47-test-suite.patch new file mode 100644 index 0000000..a07b1e4 --- /dev/null +++ b/0003-attr-2.4.47-test-suite.patch @@ -0,0 +1,40 @@ +From 080ffdf051aff85688e4e35fc58c5c7eedcdd480 Mon Sep 17 00:00:00 2001 +From: Andreas Gruenbacher +Date: Tue, 3 Mar 2015 18:15:07 +0100 +Subject: [PATCH] Remove outdated tests from test/attr.test + +Extended attributes are not accounted for in the real file size on most file +systems, not even in ext* file systems with large inodes. Remove the +associated tests. + +Upstream-commit: 07cdd574b01309599c5ceddcd3d6553a5f5cd75d +Signed-off-by: Kamil Dudka +--- + test/attr.test | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/test/attr.test b/test/attr.test +index 1f755ae..9f750b0 100644 +--- a/test/attr.test ++++ b/test/attr.test +@@ -92,8 +92,6 @@ Everything with one file + $ setfattr -n user.longername -v longervalue f + $ setfattr -n user.short -v value f + $ setfattr -n user.novalue-yet f +- $ ls -s f +- > 4 f + + $ getfattr -d f + > # file: f +@@ -130,8 +128,6 @@ Everything with one file + $ setfattr -x user.novalue f + $ setfattr -x user.novalue-yet f + $ getfattr -d f +- $ ls -s f +- > 0 f + + $ rm f + +-- +2.5.0 + diff --git a/attr.spec b/attr.spec index 55be017..2fc952f 100644 --- a/attr.spec +++ b/attr.spec @@ -1,7 +1,7 @@ Summary: Utilities for managing filesystem extended attributes Name: attr Version: 2.4.47 -Release: 14%{?dist} +Release: 15%{?dist} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source: http://download.savannah.gnu.org/releases-noredirect/attr/attr-%{version}.src.tar.gz @@ -11,6 +11,9 @@ Patch1: 0001-attr-2.4.47-warnings.patch # install /etc/xattr.conf Patch2: 0002-attr-2.4.47-xattr-conf.patch +# remove outdated tests from test/attr.test +Patch3: 0003-attr-2.4.47-test-suite.patch + License: GPLv2+ URL: http://acl.bestbits.at/ Group: System Environment/Base @@ -62,6 +65,7 @@ you'll also want to install attr. %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %configure @@ -136,6 +140,9 @@ rmdir "$RPM_BUILD_ROOT%{_mandir}/man5" %config(noreplace) %{_sysconfdir}/xattr.conf %changelog +* Thu Jan 07 2016 Kamil Dudka 2.4.47-15 +- remove outdated tests from test/attr.test + * Mon Sep 14 2015 Kamil Dudka 2.4.47-14 - make libattr-devel not insist on man-pages being installed (#1262605)