Subject: pkg/15104: pkgsrc/devel/libgtop won't build
To: None <gnats-bugs@gnats.netbsd.org>
From: Lloyd Parkes <lloyd@archangel.must-have-coffee.gen.nz>
List: netbsd-bugs
Date: 12/31/2001 15:08:06
>Number:         15104
>Category:       pkg
>Synopsis:       pkgsrc/devel/libgtop won't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 31 15:08:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Lloyd Parkes
>Release:        NetBSD 1.5ZA
>Organization:
Must Have Coffee
>Environment:
System: NetBSD archangel.must-have-coffee.gen.nz 1.5ZA NetBSD 1.5ZA (GENERIC.PROF) #0: Wed Dec 26 16:56:07 NZDT 2001 lloyd@archangel.must-have-coffee.gen.nz:/usr/src/sys/arch/sparc64/compile/GENERIC.PROF sparc64
Architecture: sparc64
Machine: sparc64
>Description:

libgtop simply doesn't support the sparc64 architecture. This prevents
GNOME from building which is why I have rated this problem as
serious/medium.

>How-To-Repeat:
	cd to pkgsrc/devel/libgtop and type make
>Fix:

Please note that libgtop already seems to use 64 bit arithmetic for
what ever it does with this information. All it needed to know is what
the struct members are called. The names are unchanged from the sparc
architecture.

Index: Makefile
===================================================================
RCS file: /vol/NetBSD/cvs-src/pkgsrc/devel/libgtop/Makefile,v
retrieving revision 1.55
diff -u -r1.55 Makefile
--- Makefile	2001/11/27 21:03:07	1.55
+++ Makefile	2001/12/24 03:41:27
@@ -22,7 +22,7 @@
 .if (${MACHINE_ARCH} != alpha) && (${MACHINE_ARCH} != arm32) && \
     (${MACHINE_ARCH} != i386) && (${MACHINE_ARCH} != m68k) && \
     (${MACHINE_ARCH} != mipsel) && (${MACHINE_ARCH} != powerpc) && \
-    (${MACHINE_ARCH} != sparc)
+    (${MACHINE_ARCH} != sparc) && (${MACHINE_ARCH} != sparc64)
 IGNORE=			"${PKGNAME} has not yet been ported to ${MACHINE_ARCH}."
 IGNORE+=		"Please look at /usr/include/${MACHINE_ARCH}/pcb.h"
 IGNORE+=		"and update patches/patch-al appropriately."
Index: distinfo
===================================================================
RCS file: /vol/NetBSD/cvs-src/pkgsrc/devel/libgtop/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo	2001/11/27 21:03:07	1.8
+++ distinfo	2001/12/24 03:41:27
@@ -8,7 +8,7 @@
 SHA1 (patch-ad) = 9522d20b1467b73678003d5c0f98dcac7d312893
 SHA1 (patch-ae) = cf277165382c17d938593934b59d8035175fd8d0
 SHA1 (patch-af) = c88fc8e4c887bd982daf433b8c0bddbcf9c44929
-SHA1 (patch-al) = e771b022a5c2176138c5f49561ac64a15ce11809
+SHA1 (patch-al) = 3be8b414a37d57e7b0f8d26d4dbd19dbc6e5e5e9
 SHA1 (patch-an) = 339df94fd374d99565be913d1f8b59ea2f7b7881
 SHA1 (patch-ao) = 09cb66ba7ee9a7368ec1cd1d4bd40ea3f6637a31
 SHA1 (patch-ap) = 07a83340eb9d6a36a3f5b2db33eb50c74fbc4777
Index: patches/patch-al
===================================================================
RCS file: /vol/NetBSD/cvs-src/pkgsrc/devel/libgtop/patches/patch-al,v
retrieving revision 1.13
diff -u -r1.13 patch-al
--- patches/patch-al	2001/08/10 10:48:13	1.13
+++ patches/patch-al	2001/12/24 03:41:27
@@ -77,7 +77,7 @@
 +#elif defined(__mipsel__)
 +			buf->kstk_esp = (u_int64_t) pcb.pcb_context[8];
 +			buf->kstk_eip = (u_int64_t) 0;
-+#elif defined(__sparc__)
++#elif defined(__sparc__) || defined(__sparc64__)
 +			buf->kstk_esp = (u_int64_t) pcb.pcb_sp;
 +			buf->kstk_eip = (u_int64_t) pcb.pcb_pc;
 +#elif defined(__alpha__)

>Release-Note:
>Audit-Trail:
>Unformatted:
 All sources (including pkgsrc) are from late December 2001.