pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libgtop2 Add support for amd64.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2006b264dc86
branches:  trunk
changeset: 471140:2006b264dc86
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Fri Mar 19 22:55:30 2004 +0000

description:
Add support for amd64.

diffstat:

 devel/libgtop2/Makefile         |   5 +++--
 devel/libgtop2/distinfo         |   4 ++--
 devel/libgtop2/patches/patch-al |  11 +++++++----
 3 files changed, 12 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r db4bfcc22aec -r 2006b264dc86 devel/libgtop2/Makefile
--- a/devel/libgtop2/Makefile   Fri Mar 19 21:26:29 2004 +0000
+++ b/devel/libgtop2/Makefile   Fri Mar 19 22:55:30 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2004/03/12 22:30:35 minskim Exp $
+# $NetBSD: Makefile,v 1.26 2004/03/19 22:55:30 kristerw Exp $
 
 DISTNAME=              libgtop-2.0.8
 PKGNAME=               ${DISTNAME:S/-/2-/}
@@ -22,7 +22,8 @@
        (${MACHINE_ARCH} != arm) && (${MACHINE_ARCH} != arm32) && \
        (${MACHINE_ARCH} != i386) && (${MACHINE_ARCH} != m68k) && \
        (${MACHINE_ARCH} != mipsel) && (${MACHINE_ARCH} != powerpc) && \
-       (${MACHINE_ARCH} != sparc) && (${MACHINE_ARCH} != sparc64)
+       (${MACHINE_ARCH} != sparc) && (${MACHINE_ARCH} != sparc64) && \
+       (${MACHINE_ARCH} != x86_64)
 PKG_FAIL_REASON=       "${PKGNAME} has not yet been ported to ${MACHINE_ARCH}."
 PKG_FAIL_REASON+=      "Please look at /usr/include/${MACHINE_ARCH}/pcb.h"
 PKG_FAIL_REASON+=      "and update patches/patch-al appropriately."
diff -r db4bfcc22aec -r 2006b264dc86 devel/libgtop2/distinfo
--- a/devel/libgtop2/distinfo   Fri Mar 19 21:26:29 2004 +0000
+++ b/devel/libgtop2/distinfo   Fri Mar 19 22:55:30 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2004/02/06 21:40:19 jmmv Exp $
+$NetBSD: distinfo,v 1.9 2004/03/19 22:55:30 kristerw Exp $
 
 SHA1 (libgtop-2.0.8.tar.bz2) = 32f6f3b94a42a9cd53ad9715d3922debcf3ebbba
 Size (libgtop-2.0.8.tar.bz2) = 916084 bytes
@@ -13,7 +13,7 @@
 SHA1 (patch-ai) = 07a83340eb9d6a36a3f5b2db33eb50c74fbc4777
 SHA1 (patch-aj) = 0a0ca01be2a33a1a3b9f17e1d52db1a1b7502177
 SHA1 (patch-ak) = 95170aa2786c5313f859b2381031be9bc7f7cd76
-SHA1 (patch-al) = 93dbdb01e268005f231c00ce7e640dc68b7d6ca2
+SHA1 (patch-al) = e18c0d13a3aeb6a4357147e32c9cc650a5e2a1ad
 SHA1 (patch-am) = cc12e383f36e7f3c0f25fd3a3ea2e0ceff04d43c
 SHA1 (patch-an) = 5ea04c27db91067733ab75d4ce4959446031cb91
 SHA1 (patch-ao) = f54754a2bdcce99a0d953186aee6d2bcbc5d7bae
diff -r db4bfcc22aec -r 2006b264dc86 devel/libgtop2/patches/patch-al
--- a/devel/libgtop2/patches/patch-al   Fri Mar 19 21:26:29 2004 +0000
+++ b/devel/libgtop2/patches/patch-al   Fri Mar 19 22:55:30 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-al,v 1.3 2003/12/13 20:27:42 xtraeme Exp $
+$NetBSD: patch-al,v 1.4 2004/03/19 22:55:30 kristerw Exp $
 
---- sysdeps/freebsd/prockernel.c.orig  Sat Sep  6 00:34:15 2003
-+++ sysdeps/freebsd/prockernel.c       Sat Sep  6 00:45:41 2003
+--- sysdeps/freebsd/prockernel.c.orig  2003-10-19 18:55:32.000000000 +0200
++++ sysdeps/freebsd/prockernel.c       2004-03-19 23:39:38.000000000 +0100
 @@ -34,12 +34,9 @@
  #if (!defined __OpenBSD__) && (!defined __bsdi__)
  #include <sys/user.h>
@@ -123,7 +123,7 @@
                       (unsigned long) &u_addr->u_pcb,
                       (char *) &pcb, sizeof (pcb)) == sizeof (pcb))
                {
-@@ -167,18 +215,52 @@
+@@ -167,18 +215,55 @@
                        /*xxx FreeBSD/Alpha? */
  #endif
  #else
@@ -140,6 +140,9 @@
 +#if defined(__m68k__)
 +                      buf->kstk_esp = (u_int64_t) pcb.pcb_usp;
 +                      buf->kstk_eip = (u_int64_t) 0;
++#elif defined(__x86_64__)
++                      buf->kstk_esp = (u_int64_t) pcb.pcb_usersp;
++                      buf->kstk_eip = (u_int64_t) 0;
 +#elif (defined(__arm32__) || defined(__powerpc__))
 +                      buf->kstk_esp = (u_int64_t) pcb.pcb_sp;
 +                      buf->kstk_eip = (u_int64_t) 0;



Home | Main Index | Thread Index | Old Index