fix cpio does not pack symlinks properly #145225

This commit is contained in:
Peter Vrabec 2005-01-17 11:11:43 +00:00
parent edfc3dd796
commit 2940cc7b1d
2 changed files with 20 additions and 3 deletions

11
cpio-2.6-lstat.patch Normal file
View File

@ -0,0 +1,11 @@
--- cpio-2.6/configure.ac.lstat 2004-12-20 10:46:30.000000000 +0000
+++ cpio-2.6/configure.ac 2005-01-17 11:47:22.000000000 +0000
@@ -92,7 +92,7 @@
AC_CONFIG_LINKS(src/fnmatch.h:headers/fnmatch.h)
fi
-AC_CHECK_FUNCS(lchown endpwent endgrent)
+AC_CHECK_FUNCS(lchown endpwent endgrent lstat)
AC_FUNC_VPRINTF
AC_FUNC_ALLOCA
AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"])

View File

@ -6,7 +6,7 @@
Summary: A GNU archiving program. Summary: A GNU archiving program.
Name: cpio Name: cpio
Version: 2.6 Version: 2.6
Release: 2 Release: 3
License: GPL License: GPL
Group: Applications/Archiving Group: Applications/Archiving
URL: http://www.gnu.org/software/cpio/ URL: http://www.gnu.org/software/cpio/
@ -14,6 +14,7 @@ Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.gz
Patch0: cpio-2.6-rh.patch Patch0: cpio-2.6-rh.patch
Patch13: cpio-2.5-nolibnsl.patch Patch13: cpio-2.5-nolibnsl.patch
Patch14: cpio-2.6-lfs.patch Patch14: cpio-2.6-lfs.patch
Patch16: cpio-2.6-lstat.patch
%ifnos linux %ifnos linux
Prereq: /sbin/rmt Prereq: /sbin/rmt
@ -41,10 +42,12 @@ Install cpio if you need a program to manage file archives.
%patch0 -p1 -b .rh %patch0 -p1 -b .rh
%patch13 -p1 -b .nolibnsl %patch13 -p1 -b .nolibnsl
%patch14 -p1 -b .lfs %patch14 -p1 -b .lfs
%patch16 -p1 -b .lstat
autoheader
%build %build
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" %configure CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -Wall" %configure
make make
%install %install
@ -89,7 +92,10 @@ fi
%{_datadir}/locale/* %{_datadir}/locale/*
%changelog %changelog
* Fri Jan 14 2005 Peter Vrabec<pvrabec@redhat.com> * Mon Jan 17 2005 Peter Vrabec <pvrabec@redhat.com>
- fix symlinks pack (#145225)
* Fri Jan 14 2005 Peter Vrabec <pvrabec@redhat.com>
- new fixed version of lfs patch (#144688) - new fixed version of lfs patch (#144688)
* Thu Jan 13 2005 Peter Vrabec <pvrabec@redhat.com> * Thu Jan 13 2005 Peter Vrabec <pvrabec@redhat.com>