Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2000 11:10:00 -0800 (PST)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/22990: Update port: devel/xxgdb
Message-ID:  <20001120191000.383B737B479@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22990
>Category:       ports
>Synopsis:       Update port: devel/xxgdb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 20 11:10:05 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.1.1-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly

New file:
files/patch-ab  files/patch-ac  files/patch-ad  files/patch-ae
files/patch-af

Remove file:
files/patch-aa

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/devel/xxgdb/Makefile devel/xxgdb/Makefile
--- /usr/ports/devel/xxgdb/Makefile	Wed Sep 27 22:34:11 2000
+++ devel/xxgdb/Makefile	Fri Nov 17 22:19:09 2000
@@ -21,9 +21,9 @@
 #  we have the cookie anyway and it's much easier this way
 #  than modifying the Imakefile.
 post-build:
-	cd ${WRKSRC}; gcc -o xxgdbiowin -O2 xxgdbiowin.c
+	cd ${WRKSRC} && ${CC} ${CFLAGS} -o xxgdbiowin xxgdbiowin.c
 
 post-install:
-	install -c -s ${WRKSRC}/xxgdbiowin ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/xxgdbiowin ${PREFIX}/bin
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/xxgdb/files/patch-aa devel/xxgdb/files/patch-aa
--- /usr/ports/devel/xxgdb/files/patch-aa	Sun Nov 26 19:24:24 1995
+++ devel/xxgdb/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,45 +0,0 @@
---- ./global.h.org	Tue Nov 15 18:09:55 1994
-+++ ./global.h	Tue May  2 21:56:19 1995
-@@ -68,7 +68,7 @@
- #define alloca __builtin_alloca
- #endif
- 
--#ifndef __alpha
-+#if !defined(__alpha) && !defined(__FreeBSD__)
- #ifndef MAXPATHLEN
- #define MAXPATHLEN 1024
- #endif
---- ./calldbx.c.org	Mon Dec  5 17:21:36 1994
-+++ ./calldbx.c	Tue May  2 22:06:38 1995
-@@ -137,13 +137,17 @@
- 
- #ifndef sco
- 	for (c='p'; c<'t'; c++) {
-+#ifdef __FreeBSD__
-+	for (i=0; i<32; i++) {
-+#else
- 	for (i=0; i<16; i++) {
-+#endif
- #else
- 	c = 'p';
- 	for (i=0; i<8; i++) {
- #endif
- 	    pty[8] = c;
--	    pty[9] = "0123456789abcdef"[i];
-+	    pty[9] = "0123456789abcdefghijklmnopqrstuv"[i];
- 	    if ((master = open(pty, O_RDWR)) >= 0) 
- 		return (master); 
- 	}
---- ./Imakefile.org	Thu Mar 23 14:49:32 1995
-+++ ./Imakefile	Tue May  2 22:14:58 1995
-@@ -50,6 +50,10 @@
- DEFINES = -DSYSV $(DEFGDB)
- #endif
- 
-+#ifdef FreeBSDArchitecture
-+DEFINES = $(DEFGDB)
-+#endif
-+
- mallocc = #malloc.c
- malloco = #malloc.o
- 
diff -urN /usr/ports/devel/xxgdb/files/patch-ab devel/xxgdb/files/patch-ab
--- /usr/ports/devel/xxgdb/files/patch-ab	Thu Jan  1 09:00:00 1970
+++ devel/xxgdb/files/patch-ab	Fri Nov 17 22:10:56 2000
@@ -0,0 +1,13 @@
+--- Imakefile.orig	Tue Jun 20 07:20:55 1995
++++ Imakefile	Fri Nov 17 21:27:09 2000
+@@ -79,6 +79,10 @@
+ # Add to open all windows at startup
+ #DEFINES+=-DOPEN_ALL_WINDOWS
+ 
++#ifdef FreeBSDArchitecture
++DEFINES = $(DEFGDB)
++#endif
++
+ mallocc = #malloc.c
+ malloco = #malloc.o
+ 
diff -urN /usr/ports/devel/xxgdb/files/patch-ac devel/xxgdb/files/patch-ac
--- /usr/ports/devel/xxgdb/files/patch-ac	Thu Jan  1 09:00:00 1970
+++ devel/xxgdb/files/patch-ac	Fri Nov 17 21:27:45 2000
@@ -0,0 +1,21 @@
+--- calldbx.c.orig	Tue Jun 20 07:11:00 1995
++++ calldbx.c	Fri Nov 17 21:27:09 2000
+@@ -137,13 +137,17 @@
+ 
+ #ifndef sco
+ 	for (c='p'; c<'t'; c++) {
++#ifdef __FreeBSD__
++	for (i=0; i<32; i++) {
++#else
+ 	for (i=0; i<16; i++) {
++#endif
+ #else
+ 	c = 'p';
+ 	for (i=0; i<8; i++) {
+ #endif
+ 	    pty[8] = c;
+-	    pty[9] = "0123456789abcdef"[i];
++	    pty[9] = "0123456789abcdefghijklmnopqrstuv"[i];
+ 	    if ((master = open(pty, O_RDWR)) >= 0) 
+ 		return (master); 
+ 	}
diff -urN /usr/ports/devel/xxgdb/files/patch-ad devel/xxgdb/files/patch-ad
--- /usr/ports/devel/xxgdb/files/patch-ad	Thu Jan  1 09:00:00 1970
+++ devel/xxgdb/files/patch-ad	Fri Nov 17 22:06:43 2000
@@ -0,0 +1,56 @@
+--- filemenu.c.orig	Tue Aug 30 04:38:28 1994
++++ filemenu.c	Fri Nov 17 22:05:05 2000
+@@ -95,7 +95,7 @@
+ #endif
+ #endif	/* _POSIX_SOURCE */
+ #else	/* SYSV */
+-#ifdef SUNOS4
++#if defined(SUNOS4) || defined(__FreeBSD__)
+ #include <dirent.h>
+ #else
+ #include <sys/dir.h>
+@@ -185,7 +185,7 @@
+  *    text files 
+  *    executable files
+  */
+-#ifndef SYSV
++#if !defined(SYSV) && !defined(__FreeBSD__)
+ static int InList(entry)
+ Directory *entry;
+ {
+@@ -228,7 +228,7 @@
+ static void ScanDir(dir)
+ char *dir;
+ {
+-#ifndef SYSV 
++#if !defined(SYSV) && !defined(__FreeBSD__)
+     extern 	alphasort();
+     Directory   **namelist;
+ #else
+@@ -238,7 +238,7 @@
+ #endif
+     register int		i,j;
+ 
+-#ifdef SYSV 
++#if defined(SYSV) || defined(__FreeBSD__)
+     if(!(WorkingDir = opendir(dir)))
+       {
+ 	UpdateMessageWindow("scandir: cannot open %s", dir);
+@@ -262,7 +262,7 @@
+     filelist = (char **) XtMalloc((nfiles+1) * sizeof(char *));
+     i = 0;
+     for (j=0; j<nfiles; j++) {
+-#ifdef SYSV 
++#if defined(SYSV) || defined(__FreeBSD__)
+       WorkingDirEntry = readdir(WorkingDir);
+       if(!strcmp(WorkingDirEntry->d_name, "."))
+ 	  strcpy(store, "./");
+@@ -305,7 +305,7 @@
+     }
+     filelist[i++] = NULL;
+ 
+-#ifdef SYSV 
++#if defined(SYSV) || defined(__FreeBSD__)
+     closedir(WorkingDir);
+ #else
+     XtFree((XtPointer) namelist);
diff -urN /usr/ports/devel/xxgdb/files/patch-ae devel/xxgdb/files/patch-ae
--- /usr/ports/devel/xxgdb/files/patch-ae	Thu Jan  1 09:00:00 1970
+++ devel/xxgdb/files/patch-ae	Fri Nov 17 21:27:36 2000
@@ -0,0 +1,11 @@
+--- global.h.orig	Fri Apr  7 01:23:42 1995
++++ global.h	Fri Nov 17 21:27:09 2000
+@@ -70,7 +70,7 @@
+ #define alloca __builtin_alloca
+ #endif
+ 
+-#ifndef __alpha
++#if !defined(__alpha) && !defined(__FreeBSD__)
+ #ifndef MAXPATHLEN
+ #define MAXPATHLEN 1024
+ #endif
diff -urN /usr/ports/devel/xxgdb/files/patch-af devel/xxgdb/files/patch-af
--- /usr/ports/devel/xxgdb/files/patch-af	Thu Jan  1 09:00:00 1970
+++ devel/xxgdb/files/patch-af	Fri Nov 17 21:39:47 2000
@@ -0,0 +1,11 @@
+--- regex.c.orig	Thu Apr 20 01:58:00 1995
++++ regex.c	Fri Nov 17 21:37:49 2000
+@@ -114,7 +114,7 @@
+  * Date :	 July 27, 1990
+  */
+ 
+-#ifndef NeXT
++#if !defined(NeXT) && !defined(__FreeBSD__)
+ #include <malloc.h>
+ #endif
+ #include <string.h>
diff -urN /usr/ports/devel/xxgdb/files/patch-ag devel/xxgdb/files/patch-ag
--- /usr/ports/devel/xxgdb/files/patch-ag	Thu Jan  1 09:00:00 1970
+++ devel/xxgdb/files/patch-ag	Fri Nov 17 21:39:34 2000
@@ -0,0 +1,11 @@
+--- source.c.orig	Sat Apr 22 01:16:02 1995
++++ source.c	Fri Nov 17 21:38:58 2000
+@@ -74,7 +74,7 @@
+  *    LoadFile():	Search for a file and open it for display.
+  */
+ 
+-#ifndef NeXT
++#if !defined(NeXT) && !defined(__FreeBSD__)
+ #include <malloc.h>
+ #endif
+ #include <stdlib.h>


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001120191000.383B737B479>