diff options
Diffstat (limited to 'devel/valgrind')
-rw-r--r-- | devel/valgrind/Makefile | 27 | ||||
-rw-r--r-- | devel/valgrind/files/patch-Makefile.am | 54 | ||||
-rw-r--r-- | devel/valgrind/files/patch-configure | 11 | ||||
-rw-r--r-- | devel/valgrind/files/patch-configure.in | 49 | ||||
-rw-r--r-- | devel/valgrind/files/patch-coregrind_Makefile.am | 51 | ||||
-rw-r--r-- | devel/valgrind/files/patch-coregrind_vg_signals.c | 18 | ||||
-rw-r--r-- | devel/valgrind/files/patch-coregrind_vg_syscalls.c | 56 | ||||
-rw-r--r-- | devel/valgrind/files/patch-include_vg_kerneliface.h | 11 | ||||
-rw-r--r-- | devel/valgrind/pkg-plist | 9 |
9 files changed, 269 insertions, 17 deletions
diff --git a/devel/valgrind/Makefile b/devel/valgrind/Makefile index efb13f0e8e74..7f9dbd3deb13 100644 --- a/devel/valgrind/Makefile +++ b/devel/valgrind/Makefile @@ -7,7 +7,7 @@ PORTNAME= valgrind PORTVERSION= 352 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= http://www.rabson.org/ DISTNAME= ${PORTNAME}-stable-${PORTVERSION} @@ -21,6 +21,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME} USE_GMAKE= yes USE_GNOME= pkgconfig GNU_CONFIGURE= yes +USE_AUTOTOOLS+= autoconf:259 aclocal:19 automake:19 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ARGS+=--enable-maintainer-mode USE_REINPLACE= yes @@ -28,16 +29,34 @@ USE_PERL5_BUILD=yes .include <bsd.port.pre.mk> +.if ${OSVERSION} >= 700000 +PLIST_SUB+= RELENG_4="@comment " +PLIST_SUB+= RELENG_5="@comment " +PLIST_SUB+= RELENG_6="@comment " +PLIST_SUB+= RELENG_7="" +.else +.if ${OSVERSION} >= 600000 +PLIST_SUB+= RELENG_4="@comment " +PLIST_SUB+= RELENG_5="@comment " +PLIST_SUB+= RELENG_6="" +PLIST_SUB+= RELENG_7="@comment " +.else .if ${OSVERSION} >= 500000 -PLIST_SUB+= RELENG_5="" PLIST_SUB+= RELENG_4="@comment " +PLIST_SUB+= RELENG_5="" +PLIST_SUB+= RELENG_6="@comment " +PLIST_SUB+= RELENG_7="@comment " .else PLIST_SUB+= RELENG_4="" PLIST_SUB+= RELENG_5="@comment " +PLIST_SUB+= RELENG_6="@comment " +PLIST_SUB+= RELENG_7="@comment " +.endif +.endif .endif .if ${PERL_LEVEL} < 500601 -IGNORE= "can\'t be built. Your Perl version is too old. Please use lang/perl5.8 port to upgrade your Perl" +IGNORE= can\'t be built. Your Perl version is too old. Please use lang/perl5.8 port to upgrade your Perl .endif PROCFS!= /sbin/mount | ${GREP} '^procfs' | ${AWK} '{print $1}' @@ -55,7 +74,7 @@ pre-everything:: # .ifndef (PACKAGE_BUILDING) ECHO_MSG=/usr/bin/printf -IGNORE= needs a running procfs, which is not\n\ +IGNORE= needs a running procfs, which is not\n\ \ \ \ \ \ activated on your system. Please read the procfs\(5\)\n\ \ \ \ \ \ man page and add the following line to /etc/fstab:\n\ \n\ diff --git a/devel/valgrind/files/patch-Makefile.am b/devel/valgrind/files/patch-Makefile.am new file mode 100644 index 000000000000..1d52c6bf7e90 --- /dev/null +++ b/devel/valgrind/files/patch-Makefile.am @@ -0,0 +1,54 @@ +--- Makefile.am.orig Thu Apr 8 21:05:08 2004 ++++ Makefile.am Tue Sep 20 00:01:29 2005 +@@ -50,26 +50,46 @@ + + install-exec-hook: + $(mkinstalldirs) $(DESTDIR)$(valdir) +- rm -f $(DESTDIR)$(valdir)/libpthread.so.0 ++ + if !IS_LINUX + if IS_FREEBSD4 + rm -f $(DESTDIR)$(valdir)/libc_r.so.4 +-else ++endif ++if IS_FREEBSD5 + rm -f $(DESTDIR)$(valdir)/libc_r.so.5 + rm -f $(DESTDIR)$(valdir)/libkse.so.1 + rm -f $(DESTDIR)$(valdir)/libthr.so.1 +- rm -f $(DESTDIR)$(valdir)/libpthread.so.1 ++endif ++if IS_FREEBSD6 ++ rm -f $(DESTDIR)$(valdir)/libc_r.so.6 ++ rm -f $(DESTDIR)$(valdir)/libthr.so.2 ++ rm -f $(DESTDIR)$(valdir)/libpthread.so.2 ++endif ++if IS_FREEBSD7 ++ rm -f $(DESTDIR)$(valdir)/libc_r.so.6 ++ rm -f $(DESTDIR)$(valdir)/libthr.so.2 ++ rm -f $(DESTDIR)$(valdir)/libpthread.so.2 + endif + endif +- $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.0 + if !IS_LINUX + if IS_FREEBSD4 + $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.4 +-else ++endif ++if IS_FREEBSD5 + $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.5 + $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libkse.so.1 + $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libthr.so.1 + $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.1 ++endif ++if IS_FREEBSD6 ++ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.6 ++ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libthr.so.2 ++ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.2 ++endif ++if IS_FREEBSD7 ++ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.6 ++ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libthr.so.2 ++ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.2 + endif + endif + diff --git a/devel/valgrind/files/patch-configure b/devel/valgrind/files/patch-configure deleted file mode 100644 index 86bf6240d9a4..000000000000 --- a/devel/valgrind/files/patch-configure +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.orig Sat Aug 21 00:06:00 2004 -+++ configure Sat Aug 21 00:06:24 2004 -@@ -4010,7 +4010,7 @@ - - ;; - -- *freebsd5*) -+ *freebsd[567]*) - echo "$as_me:$LINENO: result: ok (${host_os})" >&5 - echo "${ECHO_T}ok (${host_os})" >&6 - VG_PLATFORM="x86-freebsd" diff --git a/devel/valgrind/files/patch-configure.in b/devel/valgrind/files/patch-configure.in new file mode 100644 index 000000000000..54349f9ffe06 --- /dev/null +++ b/devel/valgrind/files/patch-configure.in @@ -0,0 +1,49 @@ +--- configure.in.orig Sun Mar 14 13:52:47 2004 ++++ configure.in Mon Sep 19 23:58:01 2005 +@@ -135,11 +135,35 @@ + + ;; + ++ *freebsd7*) ++ AC_MSG_RESULT([ok (${host_os})]) ++ VG_PLATFORM="x86-freebsd" ++ AM_CONDITIONAL(IS_LINUX, false) ++ AM_CONDITIONAL(IS_FREEBSD4, false) ++ AM_CONDITIONAL(IS_FREEBSD5, false) ++ AM_CONDITIONAL(IS_FREEBSD6, false) ++ AM_CONDITIONAL(IS_FREEBSD7, true) ++ ++ ;; ++ *freebsd6*) ++ AC_MSG_RESULT([ok (${host_os})]) ++ VG_PLATFORM="x86-freebsd" ++ AM_CONDITIONAL(IS_LINUX, false) ++ AM_CONDITIONAL(IS_FREEBSD4, false) ++ AM_CONDITIONAL(IS_FREEBSD5, false) ++ AM_CONDITIONAL(IS_FREEBSD6, true) ++ AM_CONDITIONAL(IS_FREEBSD7, false) ++ ++ ;; ++ + *freebsd5*) + AC_MSG_RESULT([ok (${host_os})]) + VG_PLATFORM="x86-freebsd" + AM_CONDITIONAL(IS_LINUX, false) + AM_CONDITIONAL(IS_FREEBSD4, false) ++ AM_CONDITIONAL(IS_FREEBSD5, true) ++ AM_CONDITIONAL(IS_FREEBSD6, false) ++ AM_CONDITIONAL(IS_FREEBSD7, false) + + ;; + +@@ -148,7 +172,9 @@ + VG_PLATFORM="x86-freebsd" + AM_CONDITIONAL(IS_LINUX, false) + AM_CONDITIONAL(IS_FREEBSD4, true) +- ++ AM_CONDITIONAL(IS_FREEBSD5, false) ++ AM_CONDITIONAL(IS_FREEBSD6, false) ++ AM_CONDITIONAL(IS_FREEBSD7, false) + ;; + + *) diff --git a/devel/valgrind/files/patch-coregrind_Makefile.am b/devel/valgrind/files/patch-coregrind_Makefile.am new file mode 100644 index 000000000000..c3eff9742481 --- /dev/null +++ b/devel/valgrind/files/patch-coregrind_Makefile.am @@ -0,0 +1,51 @@ +--- coregrind/Makefile.am.orig Sun Mar 14 13:52:47 2004 ++++ coregrind/Makefile.am Tue Sep 20 00:01:58 2005 +@@ -162,11 +162,23 @@ + vg_unsafe.h + + if !IS_LINUX ++if IS_FREEBSD5 + MANUAL_DEPS_EXTRA = $(inplacedir)/libc_r.so.5 \ + $(inplacedir)/libkse.so.1 \ + $(inplacedir)/libthr.so.1 \ + $(inplacedir)/libpthread.so.1 + endif ++if IS_FREEBSD6 ++MANUAL_DEPS_EXTRA = $(inplacedir)/libc_r.so.6 \ ++ $(inplacedir)/libthr.so.2 \ ++ $(inplacedir)/libpthread.so.2 ++endif ++if IS_FREEBSD7 ++MANUAL_DEPS_EXTRA = $(inplacedir)/libc_r.so.6 \ ++ $(inplacedir)/libthr.so.2 \ ++ $(inplacedir)/libpthread.so.2 ++endif ++endif + + MANUAL_DEPS = $(noinst_HEADERS) $(include_HEADERS) $(inplacedir)/libpthread.so.0 ${MANUAL_DEPS_EXTRA} + +@@ -180,9 +192,23 @@ + ln -sf $(top_srcdir)/$(subdir)/$$i $$to; \ + done + if !IS_LINUX +- ln -sf libpthread.so.0 $(inplacedir)/libc_r.so.5 ++if IS_FREEBSD4 + ln -sf libpthread.so.0 $(inplacedir)/libc_r.so.4 ++endif ++if IS_FREEBSD5 ++ ln -sf libpthread.so.0 $(inplacedir)/libc_r.so.5 + ln -sf libpthread.so.0 $(inplacedir)/libkse.so.1 + ln -sf libpthread.so.0 $(inplacedir)/libthr.so.1 + ln -sf libpthread.so.0 $(inplacedir)/libpthread.so.1 ++endif ++if IS_FREEBSD6 ++ ln -sf libpthread.so.0 $(inplacedir)/libc_r.so.6 ++ ln -sf libpthread.so.0 $(inplacedir)/libthr.so.2 ++ ln -sf libpthread.so.0 $(inplacedir)/libpthread.so.2 ++endif ++if IS_FREEBSD7 ++ ln -sf libpthread.so.0 $(inplacedir)/libc_r.so.6 ++ ln -sf libpthread.so.0 $(inplacedir)/libthr.so.2 ++ ln -sf libpthread.so.0 $(inplacedir)/libpthread.so.2 ++endif + endif diff --git a/devel/valgrind/files/patch-coregrind_vg_signals.c b/devel/valgrind/files/patch-coregrind_vg_signals.c new file mode 100644 index 000000000000..be277882e91a --- /dev/null +++ b/devel/valgrind/files/patch-coregrind_vg_signals.c @@ -0,0 +1,18 @@ +--- coregrind/vg_signals.c.orig Mon Sep 19 21:16:07 2005 ++++ coregrind/vg_signals.c Mon Sep 19 21:28:05 2005 +@@ -1488,6 +1488,15 @@ + VG_(start_GDB)( tid ); + } + ++ if (core) { ++ static struct vki_rlimit zero = { 0, 0 }; ++ ++ VG_(message) (Vg_UserMsg, "Core dumping not implemented. Please re-run valgrind after fixing the crash."); ++ ++ /* make sure we don't get a confusing kernel-generated coredump */ ++ VG_(setrlimit)(VKI_RLIMIT_CORE, &zero); ++ } ++ + if (VG_(fatal_signal_set)) { + VG_(fatal_sigNo) = sigNo; + __builtin_longjmp(VG_(fatal_signal_jmpbuf), 1); diff --git a/devel/valgrind/files/patch-coregrind_vg_syscalls.c b/devel/valgrind/files/patch-coregrind_vg_syscalls.c new file mode 100644 index 000000000000..f18c56469461 --- /dev/null +++ b/devel/valgrind/files/patch-coregrind_vg_syscalls.c @@ -0,0 +1,56 @@ +--- coregrind/vg_syscalls.c.orig Fri Jul 16 19:21:08 2004 ++++ coregrind/vg_syscalls.c Wed Sep 14 22:13:44 2005 +@@ -1369,6 +1369,38 @@ + &tst->m_eflags, + arg1, arg2); + break; ++ case 7: ++ SYSCALL_TRACK( pre_mem_write, tid, ++ "sysarch.get_fsbase(args)", arg2, sizeof(UInt)); ++ tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, ++ tst->m_edx, ++ &tst->m_eflags, ++ arg1, arg2); ++ break; ++ case 8: ++ SYSCALL_TRACK( pre_mem_read, tid, ++ "sysarch.set_fsbase(args)", arg2, sizeof(UInt)); ++ tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, ++ tst->m_edx, ++ &tst->m_eflags, ++ arg1, arg2); ++ break; ++ case 9: ++ SYSCALL_TRACK( pre_mem_read, tid, ++ "sysarch.get_gsbase(args)", arg2, sizeof(UInt)); ++ tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, ++ tst->m_edx, ++ &tst->m_eflags, ++ arg1, arg2); ++ break; ++ case 10: ++ SYSCALL_TRACK( pre_mem_read, tid, ++ "sysarch.set_gsbase(args)", arg2, sizeof(UInt)); ++ tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, ++ tst->m_edx, ++ &tst->m_eflags, ++ arg1, arg2); ++ break; + default: + VG_(core_panic)("Unhandled sysarch call"); + } +@@ -1392,6 +1424,14 @@ + break; + case 6: /* vm86 */ + break; ++ case 7: /* get_fsbase */ ++ break; ++ case 8: /* set_fsbase */ ++ break; ++ case 9: /* get_gsbase */ ++ break; ++ case 10: /* set_gsbase */ ++ break; + default: + VG_(core_panic)("Unhandled sysarch call"); + } diff --git a/devel/valgrind/files/patch-include_vg_kerneliface.h b/devel/valgrind/files/patch-include_vg_kerneliface.h new file mode 100644 index 000000000000..e9b9973ec183 --- /dev/null +++ b/devel/valgrind/files/patch-include_vg_kerneliface.h @@ -0,0 +1,11 @@ +--- include/vg_kerneliface.h.orig Mon Sep 19 21:20:22 2005 ++++ include/vg_kerneliface.h Mon Sep 19 21:22:41 2005 +@@ -975,6 +975,8 @@ + unsigned long long rlim_max; + } vki_rlimit; + ++#define VKI_RLIMIT_DATA 2 ++#define VKI_RLIMIT_CORE 4 + #define VKI_RLIMIT_NOFILE 8 + #endif + diff --git a/devel/valgrind/pkg-plist b/devel/valgrind/pkg-plist index b918413a03fe..213c0d4828c1 100644 --- a/devel/valgrind/pkg-plist +++ b/devel/valgrind/pkg-plist @@ -15,10 +15,15 @@ lib/valgrind/glibc-2.3.supp %%RELENG_4%%lib/valgrind/libc_r.so.4 %%RELENG_5%%lib/valgrind/libc_r.so.5 %%RELENG_5%%lib/valgrind/libkse.so.1 -lib/valgrind/libpthread.so -lib/valgrind/libpthread.so.0 %%RELENG_5%%lib/valgrind/libpthread.so.1 %%RELENG_5%%lib/valgrind/libthr.so.1 +%%RELENG_6%%lib/valgrind/libc_r.so.6 +%%RELENG_6%%lib/valgrind/libpthread.so.2 +%%RELENG_6%%lib/valgrind/libthr.so.2 +%%RELENG_7%%lib/valgrind/libc_r.so.6 +%%RELENG_7%%lib/valgrind/libpthread.so.2 +%%RELENG_7%%lib/valgrind/libthr.so.2 +lib/valgrind/libpthread.so lib/valgrind/stage2 lib/valgrind/valgrind lib/valgrind/vg_inject.so |