ports/167448: [MAINTAINER] Update gdb to 7.4.1
Luca Pizzamiglio
luca.pizzamiglio at gmail.com
Mon Apr 30 09:00:23 UTC 2012
>Number: 167448
>Category: ports
>Synopsis: [MAINTAINER] Update gdb to 7.4.1
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 30 09:00:21 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Luca Pizzamiglio
>Release: FreeBSD 8.2-STABLE
>Organization:
>Environment:
>Description:
This patch update the devel/gdb port to 4.7.1
Added a fix to build the port with clang.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -Nru devel/gdb.orig/Makefile devel/gdb/Makefile
--- devel/gdb.orig/Makefile 2012-04-19 21:05:03.000000000 +0200
+++ devel/gdb/Makefile 2012-04-30 10:49:16.000000000 +0200
@@ -7,8 +7,7 @@
#
PORTNAME= gdb
-PORTVERSION= 7.4
-PORTREVISION= 4
+PORTVERSION= 7.4.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:S,$,:gdb,}
MASTER_SITE_SUBDIR=gdb/:gdb
@@ -35,7 +34,7 @@
CFLAGS+= -DRL_NO_COMPAT
EXCLUDE= dejagnu expect readline sim texinfo intl
EXTRACT_AFTER_ARGS=| ${TAR} -xf - ${EXCLUDE:S/^/--exclude /}
-VER= ${PORTVERSION:S/.//}
+VER= ${PORTVERSION:S/.//g}
PLIST_SUB= VER=${VER}
MAN1= gdb${VER}.1
diff -Nru devel/gdb.orig/distinfo devel/gdb/distinfo
--- devel/gdb.orig/distinfo 2012-01-27 10:38:15.000000000 +0100
+++ devel/gdb/distinfo 2012-04-30 10:48:04.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (gdb-7.4.tar.bz2) = de7e2db7f0475eca7f9ffa9251abaddd3d37e0eed0b3759f71abfd810a3fd20f
-SIZE (gdb-7.4.tar.bz2) = 20614020
+SHA256 (gdb-7.4.1.tar.bz2) = a081343c017732ab4dd30a4730da83667aa01b0b37d1ad3700c3f05a5da0f9f6
+SIZE (gdb-7.4.1.tar.bz2) = 20619200
diff -Nru devel/gdb.orig/files/patch-opcodes-configure devel/gdb/files/patch-opcodes-configure
--- devel/gdb.orig/files/patch-opcodes-configure 1970-01-01 01:00:00.000000000 +0100
+++ devel/gdb/files/patch-opcodes-configure 2012-04-30 10:48:19.000000000 +0200
@@ -0,0 +1,17 @@
+--- opcodes/configure.orig 2012-04-27 10:20:25.000000000 +0200
++++ opcodes/configure 2012-04-27 10:24:01.000000000 +0200
+@@ -11525,7 +11525,13 @@
+
+ # Enable -Werror by default when using gcc
+ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
+- ERROR_ON_WARNING=yes
++ if test "${CC}" = clang ; then
++ echo "clang compiler - disabling -Werror"
++ ERROR_ON_WARNING=no
++ else
++ echo "gcc compiler - enabling -Werror"
++ ERROR_ON_WARNING=yes
++ fi
+ fi
+
+ NO_WERROR=
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list