diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-28 10:07:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-28 10:07:08 +0000 |
commit | 897b667e349aec2eeb4833021e51b8621335c623 (patch) | |
tree | 500eda1a153766f1f88828f48578e764ecb401b0 /dev-util/strace | |
parent | gnutls is global now (diff) | |
download | gentoo-2-897b667e349aec2eeb4833021e51b8621335c623.tar.gz gentoo-2-897b667e349aec2eeb4833021e51b8621335c623.tar.bz2 gentoo-2-897b667e349aec2eeb4833021e51b8621335c623.zip |
Add a temp workaround to alpha stat64 issues.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-util/strace')
-rw-r--r-- | dev-util/strace/ChangeLog | 6 | ||||
-rw-r--r-- | dev-util/strace/files/strace-4.5.11-alpha-stat64.patch | 37 | ||||
-rw-r--r-- | dev-util/strace/strace-4.5.11.ebuild | 5 |
3 files changed, 46 insertions, 2 deletions
diff --git a/dev-util/strace/ChangeLog b/dev-util/strace/ChangeLog index 28a724cd2a2f..85ea2969d6aa 100644 --- a/dev-util/strace/ChangeLog +++ b/dev-util/strace/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-util/strace # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/ChangeLog,v 1.62 2005/05/24 00:29:54 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/ChangeLog,v 1.63 2005/05/28 10:07:08 vapier Exp $ + + 28 May 2005; Mike Frysinger <vapier@gentoo.org> + +files/strace-4.5.11-alpha-stat64.patch, strace-4.5.11.ebuild: + Add a temp workaround to alpha stat64 issues. *strace-4.5.11 (24 May 2005) diff --git a/dev-util/strace/files/strace-4.5.11-alpha-stat64.patch b/dev-util/strace/files/strace-4.5.11-alpha-stat64.patch new file mode 100644 index 000000000000..e55f61d1f682 --- /dev/null +++ b/dev-util/strace/files/strace-4.5.11-alpha-stat64.patch @@ -0,0 +1,37 @@ +Hack around an ugly issue. The only arch to provide the st_flags and st_gen +members of the stat structure is alpha. However, alpha only provides it for +stat and not stat64. So the autoconf script checks the stat structure for +all the relevant members but does not check stat64, thus setting up defines +that say these two members are present. To make matters worse, glibc defines +(via sys/stat.h -> bits/stat.h) both stat and stat64 with the st_flags and +st_gen members. Since file.c makes sure to hide the glibc defines and use the +kernel defines, even if we tried to detect stat64.st_flags and stat64.st_gen +in the autoconf script, the glibc headers would be parsed thereforce providing +false positives. + +--- file.c ++++ file.c +@@ -997,13 +997,6 @@ + tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime)); + tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime)); + tprintf("st_ctime=%s", sprinttime(statbuf.st_ctime)); +-#if HAVE_STRUCT_STAT_ST_FLAGS +- tprintf(", st_flags="); +- if (statbuf.st_flags) { +- printflags(fileflags, statbuf.st_flags); +- } else +- tprintf("0"); +-#endif + #if HAVE_STRUCT_STAT_ST_ACLCNT + tprintf(", st_aclcnt=%d", statbuf.st_aclcnt); + #endif +@@ -1014,9 +1007,6 @@ + tprintf(", st_fstype=%.*s", + (int) sizeof statbuf.st_fstype, statbuf.st_fstype); + #endif +-#if HAVE_STRUCT_STAT_ST_GEN +- tprintf(", st_gen=%u", statbuf.st_gen); +-#endif + tprintf("}"); + } + else diff --git a/dev-util/strace/strace-4.5.11.ebuild b/dev-util/strace/strace-4.5.11.ebuild index e6af2728b8b6..22bfc85ed1a8 100644 --- a/dev-util/strace/strace-4.5.11.ebuild +++ b/dev-util/strace/strace-4.5.11.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.5.11.ebuild,v 1.2 2005/05/25 00:22:52 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.5.11.ebuild,v 1.3 2005/05/28 10:07:08 vapier Exp $ inherit flag-o-matic @@ -24,6 +24,9 @@ src_unpack() { aclocal && autoconf && automake || die "autotools failed" fi + # Hack until we can fix this properly + epatch ${FILESDIR}/strace-4.5.11-alpha-stat64.patch + # Remove some obsolete ia64-related hacks from the strace source # (08 Feb 2005 agriffis) epatch ${FILESDIR}/strace-4.5.8-ia64.patch |