summaryrefslogtreecommitdiff
path: root/lang/parrot/patches/patch-am
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2011-04-06 11:25:30 +0000
committerhe <he@pkgsrc.org>2011-04-06 11:25:30 +0000
commitc6bbc0ec3ac40eafe31ef85454ae98a703526cda (patch)
tree8a88fc52fcf927a1f0c2306ae0b1c31dda425193 /lang/parrot/patches/patch-am
parent73e926595464b89128f8ebc2144bbaccbba33632 (diff)
downloadpkgsrc-c6bbc0ec3ac40eafe31ef85454ae98a703526cda.tar.gz
Ahem, add in the explanation I had written for the new patch..
Diffstat (limited to 'lang/parrot/patches/patch-am')
-rw-r--r--lang/parrot/patches/patch-am8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/parrot/patches/patch-am b/lang/parrot/patches/patch-am
index f31358f0b38..946a51d2ed7 100644
--- a/lang/parrot/patches/patch-am
+++ b/lang/parrot/patches/patch-am
@@ -1,4 +1,10 @@
-$NetBSD: patch-am,v 1.1 2011/04/06 11:22:57 he Exp $
+$NetBSD: patch-am,v 1.2 2011/04/06 11:25:31 he Exp $
+
+Perl uses stat(2) and lstat(2) directly, and those system calls may
+not fill in st_rdev, leaving garbage behind. Parrot, on the other hand,
+sets the st_rdev member always to 0 in stat_buf_to_array() in dynpmc/os.pmc,
+so compensate for this by zeroing the st_rdev member from the perl stat
+and lstat operations.
--- t/dynpmc/os.t.orig 2011-03-15 08:01:43.000000000 +0000
+++ t/dynpmc/os.t