rpms/perl/devel perl-5.8.7-IOC_SIZE.patch, NONE, 1.1 perl.spec, 1.68, 1.69
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Oct 25 22:16:13 UTC 2005
Author: jvdias
Update of /cvs/dist/rpms/perl/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv4666
Modified Files:
perl.spec
Added Files:
perl-5.8.7-IOC_SIZE.patch
Log Message:
fix bug 171111
perl-5.8.7-IOC_SIZE.patch:
perl.h | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
--- NEW FILE perl-5.8.7-IOC_SIZE.patch ---
--- perl-5.8.7/perl.h.IOC_SIZE 2005-05-07 16:11:45.000000000 -0400
+++ perl-5.8.7/perl.h 2005-10-25 16:56:10.000000000 -0400
@@ -2508,11 +2508,17 @@
#ifndef IOCPARM_LEN
# ifdef IOCPARM_MASK
- /* on BSDish systes we're safe */
+ /* on BSDish systems we're safe */
# define IOCPARM_LEN(x) (((x) >> 16) & IOCPARM_MASK)
# else
- /* otherwise guess at what's safe */
-# define IOCPARM_LEN(x) 256
+# ifdef _IOC_SIZE
+ /* on Linux systems we're safe */
+# define IOCPARM_LEN(x) _IOC_SIZE(x)
+# else
+ /* otherwise guess at what's safe (we're UNSAFE!) */
+# warning "unsafe assumption of IOCPARM_LEN=256"
+# define IOCPARM_LEN(x) 256
+# endif
# endif
#endif
Index: perl.spec
===================================================================
RCS file: /cvs/dist/rpms/perl/devel/perl.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- perl.spec 10 Oct 2005 03:39:38 -0000 1.68
+++ perl.spec 25 Oct 2005 22:16:09 -0000 1.69
@@ -5,7 +5,7 @@
%define multilib_64_archs x86_64 s390x ppc64 sparc64
%define perlver 5.8.7
-%define perlrel 0.5.fc5
+%define perlrel 0.6.fc5
%define perlepoch 3
Provides: perl(:WITH_PERLIO)
@@ -97,6 +97,9 @@
# Disable -DDEBUGGING and allow -g to do its job (#156113)
Patch31: perl-5.8.7-no-debugging.patch
+# Fix for bug 171111: missing IOCPARM_LEN
+Patch32: perl-5.8.7-IOC_SIZE.patch
+
# arch-specific patches
Patch100: perl-5.8.1-fpic.patch
Patch101: perl-5.8.0-libdir64.patch
@@ -242,6 +245,8 @@
%patch30 -p1
%patch31 -p1
+%patch32 -p1
+
%patch100 -p1
%ifarch %{multilib_64_archs}
%patch101 -p1
@@ -455,6 +460,10 @@
%changelog
+* Tue Oct 25 2005 Jason Vas Dias <jvdias at redhat.com> - 3.5.8.7-0.6
+- fix bug 171111 : define ioctl length macro IOCPARM_LEN(x)
+ macro to be _IOC_SIZE(x), not 256 - upstream bug raised.
+
* Sun Oct 09 2005 Warren Togami <wtogami at redhat.com> - 3:5.8.7-0.4
- rebuild for db4 (#170235)
More information about the fedora-cvs-commits
mailing list