Date: Mon, 4 Dec 2000 19:43:27 +0100 (CET) From: sam@inf.enst.fr To: FreeBSD-gnats-submit@freebsd.org Subject: ports/23280: New port: devel/gvd Message-ID: <20001204184327.4ED44450@trillian.enst.fr> Resent-Message-ID: <200012041850.eB4Io1D64429@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 23280 >Category: ports >Synopsis: New port: devel/gvd >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 04 10:50:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Samuel Tardieu >Release: FreeBSD 4.2-STABLE i386 >Organization: TELECOM Paris >Environment: GVD stands for "GNU Visual Debugger", it is the future GNOME debugger. >Description: >How-To-Repeat: >Fix: Important: this port needs GtkAda. Please install PR ports/23138 first. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gvd/Makefile # gvd/distinfo # gvd/files/patch-aa # gvd/files/freebsd.h # gvd/pkg-comment # gvd/pkg-descr # gvd/pkg-plist # echo x - gvd/Makefile sed 's/^X//' >gvd/Makefile << 'END-of-gvd/Makefile' X# New ports collection makefile for: gvd X# Date created: 4 Dec 2000 X# Whom: Samuel Tardieu <sam@inf.enst.fr> X# X# $FreeBSD$ X# X XPORTNAME= gvd XPORTVERSION= 1.0.1 XCATEGORIES= devel XMASTER_SITES= http://libre.act-europe.fr/gvd/ X XMAINTAINER= sam@inf.enst.fr X XBUILD_DEPENDS= adagcc:${PORTSDIR}/lang/gnat XLIB_DEPENDS= gtkada-1.2.10:${PORTSDIR}/x11-toolkits/gtkada X XGNU_CONFIGURE= yes XCONFIGURE_ENV= CC=adagcc XMAKE_ENV= CC=adagcc XUSE_X_PREFIX= yes XUSE_GMAKE= yes X Xpost-extract: X ${CP} ${FILESDIR}/freebsd.h ${WRKSRC}/gnat/system/ X X.include <bsd.port.mk> END-of-gvd/Makefile echo x - gvd/distinfo sed 's/^X//' >gvd/distinfo << 'END-of-gvd/distinfo' XMD5 (gvd-1.0.1.tar.gz) = a7c4c43da0c06818c1ccf1d9231c1f3a END-of-gvd/distinfo echo x - gvd/files/patch-aa sed 's/^X//' >gvd/files/patch-aa << 'END-of-gvd/files/patch-aa' X--- gnat/Makefile.in.orig Mon Dec 4 18:56:39 2000 X+++ gnat/Makefile.in Mon Dec 4 18:57:03 2000 X@@ -4,19 +4,19 @@ X all: g-expect.o gexpect.o g-regpat.o gexpect_tty.o g-exptty.o X X g-expect.o: g-expect.adb g-expect.ads X- gcc -c -gnatg $(CFLAGS) $< X+ $(CC) -c -gnatg $(CFLAGS) $< X X gexpect.o: gexpect.c Makefile X- gcc -c $(ALL_CFLAGS) $< X+ $(CC) -c $(ALL_CFLAGS) $< X X g-regpat.o: g-regpat.adb g-regpat.ads X- gcc -c -gnatg $(CFLAGS) $< X+ $(CC) -c -gnatg $(CFLAGS) $< X X g-exptty.o: g-exptty.adb g-exptty.ads g-expect.ads X- gcc -c -gnatg $(CFLAGS) g-exptty.adb X+ $(CC) -c -gnatg $(CFLAGS) g-exptty.adb X X gexpect_tty.o: gexpect_tty.c Makefile X- gcc -c $(ALL_CFLAGS) $< X+ $(CC) -c $(ALL_CFLAGS) $< X X clean: X rm -f *.o *.ali *~ b~* END-of-gvd/files/patch-aa echo x - gvd/files/freebsd.h sed 's/^X//' >gvd/files/freebsd.h << 'END-of-gvd/files/freebsd.h' X/* s/ file for freebsd system. */ X X/* Get the correct __FreeBSD_version, even if this is before that was X defined. */ X#ifndef __FreeBSD__ X#define __FreeBSD_version 199401 X#elif __FreeBSD__ == 1 X#define __FreeBSD_version 199405 X#else X#include <osreldate.h> X#endif X X/* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up. X Earlier versions do not have shared libraries, so inhibit them. X You can inhibit them on newer systems if you wish X by defining NO_SHARED_LIBS. */ X#ifndef __FreeBSD__ X#define NO_SHARED_LIBS X#endif X X X#if 0 /* This much, alone, seemed sufficient as of 19.23. X But it seems better to be independent of netbsd.h. */ X#include "netbsd.h" X X#undef LIB_GCC X#define LIB_GCC -lgcc X#undef NEED_ERRNO X#endif /* 0 */ X X X/* Get most of the stuff from bsd4.3 */ X#include "bsd4-3.h" X X/* For mem-limits.h. */ X#define BSD4_2 X X/* These aren't needed, since we have getloadavg. */ X#undef KERNEL_FILE X#undef LDAV_SYMBOL X X#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) X X/* Use XPG4 Library for FreeBSD */ X#define LIBS_XPG X#if (__FreeBSD_version >= 220000 && __FreeBSD_version < 400020) \ X || (__FreeBSD_version >= 500000 && __FreeBSD_version < 500005) X#ifdef USE_XPG X#undef LIBS_XPG X#define LIBS_XPG -lxpg4 X#endif X#endif X X#define LIBS_DEBUG X#define LIBS_SYSTEM -lutil LIBS_XPG X#if __FreeBSD_version < 400000 X#define LIBS_TERMCAP -ltermcap X#endif X X#define SYSV_SYSTEM_DIR X X/* freebsd has POSIX-style pgrp behavior. */ X#undef BSD_PGRPS X#define GETPGRP_NO_ARG X X#ifdef __ELF__ X X#define LD_SWITCH_SYSTEM X X#ifdef __alpha__ X#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crtbegin.o X#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o X#else X#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o X#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o X#endif X X#define UNEXEC unexelf.o X#undef LIB_GCC X#define LIB_GCC X X#else /* not __ELF__ */ X X#ifndef NO_SHARED_LIBS X#define LD_SWITCH_SYSTEM -e start -dc X#define HAVE_TEXT_START /* No need to define `start_of_text'. */ X#if __FreeBSD_version >= 300002 X#define START_FILES pre-crt0.o /usr/lib/aout/crt0.o X#else /* __FreeBSD_version < 300002 */ X#define START_FILES pre-crt0.o /usr/lib/crt0.o X#endif /* __FreeBSD_version < 300002 */ X#define UNEXEC unexsunos4.o X#define RUN_TIME_REMAP X#define LIB_GCC -lgcc X X#ifndef N_TRELOFF X#define N_PAGSIZ(x) __LDPGSZ X#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) X#define N_TRELOFF(x) N_RELOFF(x) X#endif X#else /* NO_SHARED_LIBS */ X#ifdef __FreeBSD__ /* shared libs are available, but the user prefers X not to use them. */ X#define LD_SWITCH_SYSTEM -Bstatic X#define A_TEXT_OFFSET(x) (sizeof (struct exec)) X#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) X#endif /* __FreeBSD__ */ X#endif /* NO_SHARED_LIBS */ X X#endif /* not __ELF__ */ X X#define HAVE_WAIT_HEADER X#define HAVE_GETLOADAVG X/*#define HAVE_GETPAGESIZE /* configure now puts this in config.h */ X#define HAVE_TERMIOS X#define NO_TERMIO X#define DECLARE_GETPWUID_WITH_UID_T X X/* freebsd uses OXTABS instead of the expected TAB3. */ X#define TABDLY OXTABS X#define TAB3 OXTABS X X/* this silences a few compilation warnings */ X#undef BSD_SYSTEM X#if __FreeBSD__ == 1 X#define BSD_SYSTEM 199103 X#elif __FreeBSD__ == 2 X#define BSD_SYSTEM 199306 X#elif __FreeBSD__ >= 3 X#define BSD_SYSTEM 199506 X#endif X X#define WAITTYPE int X/* get this since it won't be included if WAITTYPE is defined */ X#ifdef emacs X#include <sys/wait.h> X#endif X#define WRETCODE(w) (_W_INT(w) >> 8) X X/* Needed to avoid hanging when child process writes an error message X and exits -- enami tsugutomo <enami@ba2.so-net.or.jp>. */ X#define vfork fork X X/* Don't close pty in process.c to make it as controlling terminal. X It is already a controlling terminal of subprocess, because we did X ioctl TIOCSCTTY. */ X#define DONT_REOPEN_PTY X X/* CLASH_DETECTION is defined in bsd4-3.h. X In FreeBSD 2.1.5 (and other 2.1.x), this results useless symbolic links X remaining in /tmp or other directories with +t bit. X To avoid this problem, you could #undef it to use no file lock. */ X/* #undef CLASH_DETECTION */ X X/* Circumvent a bug in FreeBSD. In the following sequence of X writes/reads on a PTY, read(2) returns bogus data: X X write(2) 1022 bytes X write(2) 954 bytes, get EAGAIN X read(2) 1024 bytes in process_read_output X read(2) 11 bytes in process_read_output X X That is, read(2) returns more bytes than have ever been written X successfully. The 1033 bytes read are the 1022 bytes written X successfully after processing (for example with CRs added if the X terminal is set up that way which it is here). The same bytes will X be seen again in a later read(2), without the CRs. */ X X#define BROKEN_PTY_READ_AFTER_EAGAIN 1 END-of-gvd/files/freebsd.h echo x - gvd/pkg-comment sed 's/^X//' >gvd/pkg-comment << 'END-of-gvd/pkg-comment' XGNU Visual Debugger, a graphical front-end to gdb and jdb END-of-gvd/pkg-comment echo x - gvd/pkg-descr sed 's/^X//' >gvd/pkg-descr << 'END-of-gvd/pkg-descr' XGVD stands for "GNU Visual Debugger" X XIt is an extensible graphical debugger licensed under the GNU General Public XLicense and written in Ada using GNAT and the GtkAda graphical toolkit. X XWWW: http://libre.act-europe.fr/gvd/ END-of-gvd/pkg-descr echo x - gvd/pkg-plist sed 's/^X//' >gvd/pkg-plist << 'END-of-gvd/pkg-plist' Xbin/gvd Xshare/locale/fr/LC_MESSAGES/gvd.mo END-of-gvd/pkg-plist exit >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?20001204184327.4ED44450>