ports/152014: [PATCH] devel/msp430-gdb: update to 7.1, unbreak

Matthias Andree matthias.andree at gmx.de
Sun Nov 7 14:30:12 UTC 2010


>Number:         152014
>Category:       ports
>Synopsis:       [PATCH] devel/msp430-gdb: update to 7.1, unbreak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 07 14:30:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD apollo.emma.line.org 8.1-STABLE FreeBSD 8.1-STABLE #35: Wed Nov  3 21:09:55 CET
>Description:
Use http://sf.net/projects/mspgcc4 and update to GDB 7.1.

Pending:
- fix build with enabled NLS
- fix installing for instance info pages

I currently lack the time to do those above, but I hope this gets the
port mended at least to become usable again.

Port maintainer (lev at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- msp430-gdb-7.1.20101006.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/msp430-gdb/Makefile,v
retrieving revision 1.19
diff -u -u -r1.19 Makefile
--- Makefile	3 Sep 2009 10:17:09 -0000	1.19
+++ Makefile	7 Nov 2010 14:20:00 -0000
@@ -4,31 +4,29 @@
 #
 # $FreeBSD: ports/devel/msp430-gdb/Makefile,v 1.19 2009/09/03 10:17:09 erwin Exp $
 #
+
 PORTNAME=	gdb
 PORTVERSION=	${GDBVERSION}.${PATCHVERSION}
-PORTREVISION=	1
 CATEGORIES=	devel
-MASTER_SITES=	${MASTER_SITE_SOURCEWARE} \
-		http://lev.serebryakov.spb.ru/download/msp430/:patches
-MASTER_SITE_SUBDIR=	${PORTNAME}/old-releases
+MASTER_SITES=	${MASTER_SITE_GNU} \
+		${MASTER_SITE_SOURCEFORGE:S/%SUBDIR%/mspgcc4\/mspgcc4/}:patches
+MASTER_SITE_SUBDIR=	${PORTNAME}
 PKGNAMEPREFIX=	msp430-
 DISTFILES=	${PORTNAME}-${GDBVERSION}${EXTRACT_SUFX} \
-		${PKGNAMEPREFIX}${PORTNAME}-${GDBVERSION}.${PATCHVERSION}${EXTRACT_SUFX}:patches
+		mspgcc4-${PATCHVERSION}${EXTRACT_SUFX}:patches
 
 MAINTAINER=	lev at FreeBSD.org
-COMMENT=	FSF gdb-5.1.1 for TI's msp430 MCUs cross-development
-
-BROKEN=		does not support recent versions of FreeBSD
+COMMENT=	FSF GDB for TI's msp430 MCUs cross-development
 
-GDBVERSION=	5.1.1
-PATCHVERSION=	20030909
+GDBVERSION=	7.1
+PATCHVERSION=	20101006
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${GDBVERSION}
 
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--target=${PKGNAMEPREFIX:S/-$//}
+CONFIGURE_ARGS=	--target=${PKGNAMEPREFIX:S/-$//} --disable-werror --disable-nls
 MAKE_ENV=	PATH=${PREFIX}/bin:${PATH}
 MAN1=		${PKGNAMEPREFIX}gdb.1 ${PKGNAMEPREFIX}run.1
 
@@ -40,17 +38,11 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 700042
-BROKEN=		Does not compile with GCC 4.2
-.endif
-
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
-BROKEN=		Configure fails on amd64 and ia64
-.endif
-
-.if ${ARCH} == "sparc64"
-BROKEN=		Fails to link
-.endif
+pre-patch:
+	@${CP} -r ${WRKSRC}/../mspgcc4-${PATCHVERSION}/ports/gdb-6-and-7/* ${WRKSRC}
+
+post-patch:
+	@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} -p1 <${WRKSRC}/../mspgcc4-${PATCHVERSION}/gdb-7.1.patch
 
 do-install:
 	@${MKDIR} ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/devel/msp430-gdb/distinfo,v
retrieving revision 1.8
diff -u -u -r1.8 distinfo
--- distinfo	22 Jan 2006 08:28:34 -0000	1.8
+++ distinfo	7 Nov 2010 13:38:46 -0000
@@ -1,6 +1,4 @@
-MD5 (gdb-5.1.1.tar.bz2) = ad07a75320fd04fa4f80ac0f38cbd2eb
-SHA256 (gdb-5.1.1.tar.bz2) = ef36d3913f6d14d4adfd07bf8c7ceed05182227f3c7c1663a6fff1e089d34845
-SIZE (gdb-5.1.1.tar.bz2) = 10698836
-MD5 (msp430-gdb-5.1.1.20030909.tar.bz2) = a93e0c5fb79b3bbdd59164e54eefbec2
-SHA256 (msp430-gdb-5.1.1.20030909.tar.bz2) = 4561288c0ed109f6b17bb458185667a06efd05970a584899ab0a4fe055acc562
-SIZE (msp430-gdb-5.1.1.20030909.tar.bz2) = 265438
+SHA256 (gdb-7.1.tar.bz2) = 142c27d7970a4e652dc225d61d887777ae00cf22fdd75cd1e8e4e13bfbd85352
+SIZE (gdb-7.1.tar.bz2) = 17977195
+SHA256 (mspgcc4-20101006.tar.bz2) = 6745a30ba0ead6b7783a3352eb925eafe4795dc61a2186c6987afcdab634cb08
+SIZE (mspgcc4-20101006.tar.bz2) = 296576
--- msp430-gdb-7.1.20101006.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list