ports/181801: [MAINTAINER] Upgrade gdb to 7.6.1
Luca Pizzamiglio
luca.pizzamiglio at gmail.com
Wed Sep 4 10:20:00 UTC 2013
>Number: 181801
>Category: ports
>Synopsis: [MAINTAINER] Upgrade gdb to 7.6.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 04 10:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Luca Pizzamiglio
>Release: FreeBSD 8.3-STABLE
>Organization:
>Environment:
FreeBSD pizzamig.xxx.xx 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Jan 8 12:50:34 CET 2013 root at pizzamig.xxx.xx:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Updating gdb to 7.6.1
Other relevant changes:
* fixed python related plist
* more USES in Makefile
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -Nru devel/gdb.orig/Makefile devel/gdb/Makefile
--- devel/gdb.orig/Makefile 2013-09-02 00:31:44.000000000 +0200
+++ devel/gdb/Makefile 2013-09-03 17:05:30.000000000 +0200
@@ -2,7 +2,7 @@
# $FreeBSD: devel/gdb/Makefile 325922 2013-09-01 22:31:44Z rakuco $
PORTNAME= gdb
-PORTVERSION= 7.6
+PORTVERSION= 7.6.1
#PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= GNU
@@ -14,8 +14,8 @@
USE_BZIP2= yes
USE_CSTD= gnu89
-USE_GMAKE= yes
-USES= iconv
+#USE_GMAKE= yes
+USES= iconv gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc
CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \
@@ -128,6 +128,7 @@
.if ${PORT_OPTIONS:MPYTHON}
${CHMOD} u+w ${PREFIX}/share/gdb${VER}/python/gdb/*.py*
${CHMOD} u+w ${PREFIX}/share/gdb${VER}/python/gdb/command/*.py*
+ ${CHMOD} u+w ${PREFIX}/share/gdb${VER}/python/gdb/function/*.py*
.endif
.include <bsd.port.post.mk>
diff -Nru devel/gdb.orig/distinfo devel/gdb/distinfo
--- devel/gdb.orig/distinfo 2013-05-16 19:07:13.000000000 +0200
+++ devel/gdb/distinfo 2013-09-03 17:06:28.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (gdb-7.6.tar.bz2) = a410e8f35ee70cce83dbbf1da9e2a8373f271ac0e4b71db4336ae293fc7bdf1b
-SIZE (gdb-7.6.tar.bz2) = 24333590
+SHA256 (gdb-7.6.1.tar.bz2) = e3dfa38a14a5457f9b8b26f7b5080ba5491bd10ae4d69bfe357cea87b7d162e4
+SIZE (gdb-7.6.1.tar.bz2) = 24338919
diff -Nru devel/gdb.orig/files/extrapatch-gdb-Makefile.in devel/gdb/files/extrapatch-gdb-Makefile.in
--- devel/gdb.orig/files/extrapatch-gdb-Makefile.in 2013-09-02 00:31:44.000000000 +0200
+++ devel/gdb/files/extrapatch-gdb-Makefile.in 2013-05-21 12:58:42.000000000 +0200
@@ -19,7 +19,7 @@
nbsd-tdep.o obsd-tdep.o \
sol2-tdep.o \
solib-frv.o solib-irix.o solib-svr4.o \
-@@ -1164,7 +1164,7 @@
+@@ -1173,7 +1174,7 @@
# Removing the old gdb first works better if it is running, at least on SunOS.
gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
rm -f gdb$(EXEEXT)
@@ -28,7 +28,7 @@
-o gdb$(EXEEXT) gdb.o $(LIBGDB_OBS) \
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
-@@ -1429,7 +1429,7 @@
+@@ -1442,7 +1443,7 @@
armnbsd-nat.c armbsd-tdep.c armnbsd-tdep.c armobsd-tdep.c \
avr-tdep.c \
bfin-linux-tdep.c bfin-tdep.c \
diff -Nru devel/gdb.orig/files/extrapatch-gdb-configure.tgt devel/gdb/files/extrapatch-gdb-configure.tgt
--- devel/gdb.orig/files/extrapatch-gdb-configure.tgt 2013-09-02 00:31:44.000000000 +0200
+++ devel/gdb/files/extrapatch-gdb-configure.tgt 2013-05-21 12:58:42.000000000 +0200
@@ -25,5 +25,5 @@
- bsd-uthread.o solib-svr4.o"
+ fbsd-threads.o solib-svr4.o"
;;
- x86_64-*-mingw*)
+ x86_64-*-mingw* | x86_64-*-cygwin*)
# Target: MingW/amd64
diff -Nru devel/gdb.orig/files/fbsd-threads.c devel/gdb/files/fbsd-threads.c
--- devel/gdb.orig/files/fbsd-threads.c 2013-05-16 19:07:13.000000000 +0200
+++ devel/gdb/files/fbsd-threads.c 2013-04-29 15:26:18.000000000 +0200
@@ -1,4 +1,4 @@
-/* $FreeBSD: devel/gdb/files/fbsd-threads.c 318323 2013-05-16 17:07:13Z rakuco $ */
+/* $FreeBSD$ */
/* FreeBSD libthread_db assisted debugging support.
Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
diff -Nru devel/gdb.orig/files/patch-include-cgen-basic-ops.h devel/gdb/files/patch-include-cgen-basic-ops.h
--- devel/gdb.orig/files/patch-include-cgen-basic-ops.h 1970-01-01 01:00:00.000000000 +0100
+++ devel/gdb/files/patch-include-cgen-basic-ops.h 2013-03-07 17:32:59.000000000 +0100
@@ -0,0 +1,43 @@
+--- include/cgen/basic-ops.h.orig 2013-03-07 17:31:21.000000000 +0100
++++ include/cgen/basic-ops.h 2013-03-07 17:31:28.000000000 +0100
+@@ -24,11 +24,16 @@
+
+ #include <assert.h>
+
+-#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE)
++#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) && ! defined (__clang__)
+ #define SEMOPS_DEFINE_INLINE
+ #define SEMOPS_INLINE extern inline
+ #else
+-#define SEMOPS_INLINE
++# if defined (__clang__) && ! defined (SEMOPS_DEFINE_INLINE)
++# define SEMOPS_DEFINE_INLINE
++# define SEMOPS_INLINE static inline
++# else
++# define SEMOPS_INLINE
++# endif
+ #endif
+
+ /* These don't really have a mode. */
+@@ -295,11 +300,16 @@
+ significant and word number 0 is the most significant word.
+ ??? May also wish an endian-dependent version. Later. */
+
+-QI SUBWORDSIQI (SI, int);
+-HI SUBWORDSIHI (SI, int);
+-QI SUBWORDDIQI (DI, int);
+-HI SUBWORDDIHI (DI, int);
+-SI SUBWORDDISI (DI, int);
++#if defined (__clang__) && defined (SEMOPS_DEFINE_INLINE)
++#define SEMOPS_STATIC static
++#else
++#define SEMOPS_STATIC
++#endif
++SEMOPS_STATIC QI SUBWORDSIQI (SI, int);
++SEMOPS_STATIC HI SUBWORDSIHI (SI, int);
++SEMOPS_STATIC QI SUBWORDDIQI (DI, int);
++SEMOPS_STATIC HI SUBWORDDIHI (DI, int);
++SEMOPS_STATIC SI SUBWORDDISI (DI, int);
+
+ #ifdef SEMOPS_DEFINE_INLINE
+
diff -Nru devel/gdb.orig/pkg-plist devel/gdb/pkg-plist
--- devel/gdb.orig/pkg-plist 2013-03-13 17:15:49.000000000 +0100
+++ devel/gdb/pkg-plist 2013-09-03 17:06:17.000000000 +0200
@@ -9,6 +9,10 @@
%%PYTHON%%share/gdb%%VER%%/python/gdb/command/pretty_printers.py
%%PYTHON%%share/gdb%%VER%%/python/gdb/command/prompt.py
%%PYTHON%%share/gdb%%VER%%/python/gdb/command/explore.py
+%%PYTHON%%share/gdb%%VER%%/python/gdb/command/type_printers.py
+%%PYTHON%%share/gdb%%VER%%/python/gdb/function/__init__.py
+%%PYTHON%%share/gdb%%VER%%/python/gdb/function/strfns.py
+%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb/function
%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb/command
%%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb
%%PYTHON%%@dirrm share/gdb%%VER%%/python
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list