Skip site navigation (1)Skip section navigation (2)
Date:      22 Aug 2002 14:30:29 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        petef@FreeBSD.org
Subject:   ports/41897: [PATCH] Update devel/devtodo port to 0.1.14 and unbreak it
Message-ID:  <20020822143029.44247.qmail@outpost.globcon.net>

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

>Number:         41897
>Category:       ports
>Synopsis:       [PATCH] Update devel/devtodo port to 0.1.14 and unbreak it
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 22 07:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 02:44:26 MSD 2002 sgk@outpost.globcon.net:/data/FreeBSD/obj/data/FreeBSD/src/sys/OUTPOST i386
>Description:
The current version of devel/devtodo port (0.1.12) doesn't build (at least,
on 4.6-STABLE), failing with an error message complaining about redeclaration
of malloc and realloc functions (see below).

In addition to that:
- a new version is out: 0.1.14
- MASTER_SITE is unreachable

>How-To-Repeat:
% cd /usr/ports/devel/devtodo
% make
===>  Building for devtodo-0.1.12
make  all-recursive
Making all in util
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I..     -O -pipe -march=pentiumpro -c regex.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -O -pipe -march=pentiumpro -c regex.c -o regex.o
regex.c:151: conflicting types for `malloc'
/usr/include/stdlib.h:99: previous declaration of `malloc'
regex.c:152: conflicting types for `realloc'
/usr/include/stdlib.h:103: previous declaration of `realloc'
*** Error code 1

Stop in /data/ports/devtodo-0.1.12/devtodo-0.1.12/util.
*** Error code 1

Stop in /data/ports/devtodo-0.1.12/devtodo-0.1.12.
*** Error code 1

Stop in /data/ports/devtodo-0.1.12/devtodo-0.1.12.
*** Error code 1

Stop in /data/FreeBSD/ports/devel/devtodo.

>Fix:
Patch included below.

- update to 0.1.14
- use EXAMPLESDIR to simplify Makefile
- change MASTER_SITE
- unbreak the build

--- devtodo-0.1.14-patch begins here ---
diff -ruN /usr/ports/devel/devtodo/Makefile devtodo/Makefile
--- /usr/ports/devel/devtodo/Makefile	Sun Jun  9 04:08:45 2002
+++ devtodo/Makefile	Thu Aug 22 18:11:07 2002
@@ -6,16 +6,19 @@
 #
 
 PORTNAME=	devtodo
-PORTVERSION=	0.1.12
+PORTVERSION=	0.1.14
 CATEGORIES=	devel
-MASTER_SITES=	${MASTER_SITE_LOCAL} \
-		http://activelysecure.net/~athomas/development/devtodo/download.php?filename=${PORTVERSION}/
-MASTER_SITE_SUBDIR=	petef
+MASTER_SITES=	http://devtodo.sourceforge.net/?${PORTVERSION}/
 
 MAINTAINER=	petef@FreeBSD.org
 
 GNU_CONFIGURE=	yes
 
+# Note: without this define util/regex.c doesn't compile due to redeclaration
+# of malloc and realloc functions. Adding this define was the simplest
+# (although not elegant) solution.
+CFLAGS+= -DSTDC_HEADERS
+
 MAN1=	devtodo.1
 MLINKS=	devtodo.1 tda.1 devtodo.1 tdd.1 devtodo.1 tde.1 devtodo.1 tdr.1 \
 	devtodo.1 todo.1
@@ -24,9 +27,9 @@
 	@${PERL} -pi -e 's/^\ttest -f.*todorc.*\n//' ${WRKSRC}/doc/Makefile.in
 
 post-install:
-	@${MKDIR} ${PREFIX}/share/examples/devtodo
+	@${MKDIR} ${EXAMPLESDIR}
 .for file in scripts.sh scripts.tcsh todorc.example
-	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/examples/devtodo
+	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${EXAMPLESDIR}
 .endfor
 	${INSTALL_DATA} ${WRKSRC}/doc/todorc.example ${PREFIX}/etc/todorc.sample
 
diff -ruN /usr/ports/devel/devtodo/distinfo devtodo/distinfo
--- /usr/ports/devel/devtodo/distinfo	Wed Nov 21 04:09:23 2001
+++ devtodo/distinfo	Thu Aug 22 16:05:56 2002
@@ -1 +1 @@
-MD5 (devtodo-0.1.12.tar.gz) = 71d8168bc1ad68d2c97334b38018d2e9
+MD5 (devtodo-0.1.14.tar.gz) = e9c3960a67585cc14f00814058bad303
--- devtodo-0.1.14-patch ends here ---

>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?20020822143029.44247.qmail>