rpms/tar/devel tar-1.19-xattrs.patch,1.12,1.13 tar.spec,1.94,1.95

Kamil Dudka kdudka at fedoraproject.org
Wed Feb 3 16:02:11 UTC 2010


Author: kdudka

Update of /cvs/extras/rpms/tar/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11365

Modified Files:
	tar-1.19-xattrs.patch tar.spec 
Log Message:
- allow also build with SELinux support

tar-1.19-xattrs.patch:
 b/configure.ac           |   20 +
 tar-1.22/doc/tar.texi    |   75 +++++++
 tar-1.22/src/Makefile.am |    7 
 tar-1.22/src/common.h    |   18 +
 tar-1.22/src/create.c    |   32 +++
 tar-1.22/src/extract.c   |   74 +++++++
 tar-1.22/src/list.c      |    7 
 tar-1.22/src/tar.c       |   80 +++++++
 tar-1.22/src/tar.h       |   20 +
 tar-1.22/src/xattrs.c    |  491 +++++++++++++++++++++++++++++++++++++++++++++++
 tar-1.22/src/xattrs.h    |   14 +
 tar-1.22/src/xheader.c   |  224 ++++++++++++++++++---
 12 files changed, 1030 insertions(+), 32 deletions(-)

Index: tar-1.19-xattrs.patch
===================================================================
RCS file: /cvs/extras/rpms/tar/devel/tar-1.19-xattrs.patch,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- tar-1.19-xattrs.patch	1 Feb 2010 14:48:57 -0000	1.12
+++ tar-1.19-xattrs.patch	3 Feb 2010 16:02:10 -0000	1.13
@@ -1,7 +1,8 @@
-diff -urNp tar-1.22-orig/configure.ac tar-1.22/configure.ac
---- tar-1.22-orig/configure.ac	2009-03-05 08:01:58.000000000 +0100
-+++ tar-1.22/configure.ac	2009-11-23 14:48:00.000000000 +0100
-@@ -40,7 +40,7 @@ AC_CHECK_HEADERS_ONCE(fcntl.h linux/fd.h
+diff --git a/configure.ac b/configure.ac
+index 762f8e4..c442489 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -40,7 +40,7 @@ AC_CHECK_HEADERS_ONCE(fcntl.h linux/fd.h memory.h net/errno.h \
    sys/param.h sys/device.h sys/filio.h sys/gentape.h \
    sys/inet.h sys/io/trioctl.h \
    sys/mtio.h sys/time.h sys/tprintf.h sys/tape.h \
@@ -31,22 +32,19 @@ diff -urNp tar-1.22-orig/configure.ac ta
  AC_CHECK_TYPE(iconv_t,:,
                AC_DEFINE(iconv_t, int,
                          [Conversion descriptor type]),
-@@ -212,6 +219,20 @@ AC_CHECK_TYPE(iconv_t,:,
+@@ -212,6 +219,17 @@ AC_CHECK_TYPE(iconv_t,:,
  #endif
  ])
  
-+AC_ARG_WITH(selinux,
-+	[AC_HELP_STRING([--with-selinux], [use SELinux support @<:@default=no@:>@])],
-+	[with_selinux=$withval], [with_selinux=no])
-+if test "$with_selinux" = "yes"; then
-+	AC_CHECK_LIB(selinux, getfilecon,
-+		[LIBSELINUX="-lselinux"
-+		AC_SUBST(LIBSELINUX)
-+		AC_CHECK_HEADERS(selinux/selinux.h, [],
-+			[AC_MSG_ERROR([selinux/selinux.h is missing])])
-+		AC_DEFINE(WITH_SELINUX, 1, [Build tar with SELinux support])
-+		],
-+		[AC_MSG_ERROR([libselinux not found])])
++AC_ARG_ENABLE(selinux,
++  AC_HELP_STRING([--enable-selinux],
++    [enable SELinux support (disabled by default)]),
++  [selinux_enabled=$enableval],
++  [selinux_enabled=no])
++
++if test "x$selinux_enabled" = xyes; then
++  AC_CHECK_LIB(selinux, getfilecon)
++  AC_CHECK_HEADERS(selinux/selinux.h)
 +fi
 +
  # Gettext.


Index: tar.spec
===================================================================
RCS file: /cvs/extras/rpms/tar/devel/tar.spec,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -p -r1.94 -r1.95
--- tar.spec	1 Feb 2010 14:48:58 -0000	1.94
+++ tar.spec	3 Feb 2010 16:02:10 -0000	1.95
@@ -5,7 +5,7 @@ Summary: A GNU file archiving program
 Name: tar
 Epoch: 2
 Version: 1.22
-Release: 13%{?dist}
+Release: 14%{?dist}
 License: GPLv3+
 Group: Applications/Archiving
 URL: http://www.gnu.org/software/tar/
@@ -72,11 +72,12 @@ the rmt package.
 #%patch9 -p1 -b .nsfraction #causing stack smashing, do not apply
 %patch10 -p1 -b .utimens
 
-%build
 autoreconf
+
+%build
 %configure --bindir=/bin --libexecdir=/sbin \
 %if %{WITH_SELINUX}
-  --with-selinux
+  --enable-selinux
 %endif
 make
 
@@ -131,6 +132,9 @@ fi
 %{_infodir}/tar.info*
 
 %changelog
+* Wed Feb 03 2010 Kamil Dudka <kdudka at redhat.com> 2:1.22-14
+- allow also build with SELinux support
+
 * Mon Feb 01 2010 Ondrej Vasik <ovasik at redhat.com> 2:1.22-13
 - allow build without SELinux support(#556679)
 



More information about the scm-commits mailing list