Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2004 13:30:23 +0100 (CET)
From:      Ulrich Spoerlein <q@uni.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dbader@eece.unm.edu
Subject:   ports/75148: [PATCH] math/concorde: update to 20031219
Message-ID:  <200412161230.iBGCUNX9093138@roadrunner.q.local>
Resent-Message-ID: <200412161240.iBGCeNWl020963@freefall.freebsd.org>

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

>Number:         75148
>Category:       ports
>Synopsis:       [PATCH] math/concorde: update to 20031219
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 16 12:40:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD roadrunner 5.3-STABLE FreeBSD 5.3-STABLE #8: Tue Dec 14 19:33:14 CET 2004
>Description:
This supersedes ports/75144, my path setting shadowed the build error
on my system.

- Update to 20031219
- Build all binaries (they are very useful!)
- Install them to ${PREFIX}/bin/concorde/ to avoid name collision
- Update pkg-descr to reflect Homepage

Added file(s):
- files/patch-bigguy-Makefile.in
- files/patch-killgrun.c

Removed file(s):
- files/patch-UTIL_urandom.c

Port maintainer (dbader@eece.unm.edu) is cc'd.

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

--- concorde-20031219.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/concorde/Makefile,v
retrieving revision 1.6
diff -u -u -r1.6 Makefile
--- Makefile	24 Apr 2003 01:56:27 -0000	1.6
+++ Makefile	16 Dec 2004 12:25:35 -0000
@@ -6,12 +6,11 @@
 #
 
 PORTNAME=	concorde
-PORTVERSION=	1.0
-PORTREVISION=	1
+PORTVERSION=	20031219
 CATEGORIES=	math parallel
-MASTER_SITES=	http://www.math.princeton.edu/tsp/concorde/ \
-		ftp://ftp.caam.rice.edu/pub/software/keck/
-DISTNAME=	co991215
+MASTER_SITES=	http://www.tsp.gatech.edu/concorde/ \
+		http://www.math.princeton.edu/tsp/concorde/
+DISTNAME=	co031219
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	dbader@eece.unm.edu
@@ -19,14 +18,24 @@
 
 WRKSRC=		${WRKDIR}/concorde
 
-GNU_CONFIGURE=  yes
+GNU_CONFIGURE=	yes
+ALL_TARGET=	everything
 
 INCFILES=	bigguy.h combs.h config.h consec1.h cut.h cuttree.h \
 		delaunay.h edgegen.h fmatch.h heldkarp.h kdtree.h \
 		linkern.h localcut.h lp.h machdefs.h macrorus.h mlinkern.h \
-		necklace.h pq.h pqsets.h profdata.h profrus.h tinytsp.h \
+		necklace.h pq.h pqsets.h tinytsp.h \
 		tsp.h util.h verify.h
 
+BINFILES=	BIGGUY/bg_test COMBS/combtest CUT/lin_all CUT/mincut \
+		EDGEGEN/edgegen FMATCH/fmatch HELDKARP/heldkarp KDTREE/kdtree \
+		LINKERN/linkern LOCALCUT/checker LOCALCUT/first \
+		LOCALCUT/localcut LOCALCUT/peeler LOCALCUT/peeler2 PQ/pqtest \
+		TINY/tinytsp TOOLS/edg2len TOOLS/edgunion TOOLS/fconvert \
+		TOOLS/killgrun TOOLS/prob2tsp TOOLS/showres TOOLS/tourchk \
+		TOOLS/tourlen TSP/bosstell TSP/concorde TSP/cutserv \
+		TSP/poolcat TSP/probserv TSP/test_tsp VERIFY/verify
+
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/concorde.a ${PREFIX}/lib/libconcorde.a
 	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 ${PREFIX}/include/concorde
@@ -34,5 +43,10 @@
 .for f in ${INCFILES}
 	${INSTALL_DATA} ${WRKSRC}/INCLUDE/${f} ${PREFIX}/include/concorde
 .endfor
+	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 ${PREFIX}/bin/concorde
+.for f in ${BINFILES}
+	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/concorde
+.endfor
+	${INSTALL_SCRIPT} ${WRKSRC}/TINY/randtsp.awk ${PREFIX}/bin/concorde
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/math/concorde/distinfo,v
retrieving revision 1.2
diff -u -u -r1.2 distinfo
--- distinfo	31 Mar 2004 03:09:27 -0000	1.2
+++ distinfo	16 Dec 2004 12:25:35 -0000
@@ -1,2 +1,2 @@
-MD5 (co991215.tgz) = 30c7dcccbde91a03d66e3e715f656650
-SIZE (co991215.tgz) = 732109
+MD5 (co031219.tgz) = 3476e01ae89b591bf7b329b2f5aa0353
+SIZE (co031219.tgz) = 698592
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/math/concorde/pkg-descr,v
retrieving revision 1.2
diff -u -u -r1.2 pkg-descr
--- pkg-descr	24 Apr 2003 01:56:27 -0000	1.2
+++ pkg-descr	16 Dec 2004 12:25:35 -0000
@@ -1,20 +1,16 @@
-Concorde (99.12.15 release) This is the initial full release of Concorde.
-More data about Concorde is available from the Concorde page at
-http://www.math.princeton.edu/tsp/concorde.html.
-
 Concorde is a computer code for the traveling salesman problem (TSP)
 and some related network optimization problems.  The code is written
 in the ANSI C programming language and it is available for academic
-research use; for other uses, contact concorde@caam.rice.edu for
+research use; for other uses, contact bico@isye.gatech.edu for
 licensing options.
 
 Concorde's TSP solver has been used to obtain the optimal solutions to
-all TSPLIB instances having up to 13,509 cities.
+106 of the 110 TSPLIB instances; the largest having 15,112 cities.
 
 The Concorde callable library includes over 700 functions permitting
 users to create specialized codes for TSP-like problems.  All Concorde
-functions are thread-safe for prgramming in shared-memory parallel
+functions are thread-safe for programming in shared-memory parallel
 environments; the main TSP solver includes code for running over
 networks of unix workstations.
 
-WWW: http://www.math.princeton.edu/tsp/concorde.html
+WWW: http://www.tsp.gatech.edu/concorde.html
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/math/concorde/pkg-plist,v
retrieving revision 1.2
diff -u -u -r1.2 pkg-plist
--- pkg-plist	1 Jul 2001 02:25:37 -0000	1.2
+++ pkg-plist	16 Dec 2004 12:25:35 -0000
@@ -1,3 +1,35 @@
+bin/concorde/bg_test
+bin/concorde/bosstell
+bin/concorde/checker
+bin/concorde/combtest
+bin/concorde/concorde
+bin/concorde/cutserv
+bin/concorde/edg2len
+bin/concorde/edgegen
+bin/concorde/edgunion
+bin/concorde/fconvert
+bin/concorde/first
+bin/concorde/fmatch
+bin/concorde/heldkarp
+bin/concorde/kdtree
+bin/concorde/killgrun
+bin/concorde/lin_all
+bin/concorde/linkern
+bin/concorde/localcut
+bin/concorde/mincut
+bin/concorde/peeler
+bin/concorde/peeler2
+bin/concorde/poolcat
+bin/concorde/pqtest
+bin/concorde/prob2tsp
+bin/concorde/probserv
+bin/concorde/randtsp.awk
+bin/concorde/showres
+bin/concorde/test_tsp
+bin/concorde/tinytsp
+bin/concorde/tourchk
+bin/concorde/tourlen
+bin/concorde/verify
 lib/libconcorde.a
 include/concorde/bigguy.h
 include/concorde/combs.h
@@ -20,10 +52,9 @@
 include/concorde/necklace.h
 include/concorde/pq.h
 include/concorde/pqsets.h
-include/concorde/profdata.h
-include/concorde/profrus.h
 include/concorde/tinytsp.h
 include/concorde/tsp.h
 include/concorde/util.h
 include/concorde/verify.h
+@dirrm bin/concorde
 @dirrm include/concorde
Index: files/patch-UTIL_urandom.c
===================================================================
RCS file: files/patch-UTIL_urandom.c
diff -N files/patch-UTIL_urandom.c
--- files/patch-UTIL_urandom.c	12 Nov 2002 16:19:08 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,24 +0,0 @@
-
-$FreeBSD: ports/math/concorde/files/patch-UTIL_urandom.c,v 1.1 2002/11/12 16:19:08 naddy Exp $
-
---- UTIL/urandom.c.orig	Thu Dec 16 19:39:06 1999
-+++ UTIL/urandom.c	Tue Nov 12 17:10:02 2002
-@@ -22,7 +22,7 @@
- /*                                                                          */
- /*  Written by:  DIMACS  (modified for TSP)                                 */
- /*  Date: February 7, 1995  (cofeb16)                                       */
--/*                                                                          */
-+/*        September 18, 2001  (billenium fix)                               */
- /*                                                                          */
- /*    EXPORTED FUNCTIONS:                                                   */
- /*                                                                          */
-@@ -66,6 +66,9 @@
-     int i, ii;
-     int last, next;
-     int *arr = r->arr;
-+
-+    seed %= CC_PRANDMAX;
-+    if (seed < 0) seed += CC_PRANDMAX;
- 
-     arr[0] = last = seed;
-     next = 1;
Index: files/patch-bigguy-Makefile.in
===================================================================
RCS file: files/patch-bigguy-Makefile.in
diff -N files/patch-bigguy-Makefile.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-bigguy-Makefile.in	16 Dec 2004 12:25:35 -0000
@@ -0,0 +1,18 @@
+--- BIGGUY/Makefile.in.orig	Thu Dec 16 20:22:41 1999
++++ BIGGUY/Makefile.in	Thu Dec 16 13:06:35 2004
+@@ -37,13 +37,13 @@
+ 
+ all: $(THISLIB)
+ 
+-everything: all bg_test test
++everything: all bg_test
+ 
+ bg_test: bg_test.$o $(THISLIB) $(LIBS)
+ 	$(CC) $(LDFLAGS) -o $@ bg_test.$o $(THISLIB) $(LIBS) $(LIBFLAGS)
+ 
+ test: bg_test
+-	time bg_test < $(srcdir)/bigguy.tst > bigguy.ts2
++	time ./bg_test < $(srcdir)/bigguy.tst > bigguy.ts2
+ 	cmp $(srcdir)/bigguy.tst bigguy.ts2
+ 
+ clean:
Index: files/patch-killgrun.c
===================================================================
RCS file: files/patch-killgrun.c
diff -N files/patch-killgrun.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-killgrun.c	16 Dec 2004 12:25:35 -0000
@@ -0,0 +1,18 @@
+--- TOOLS/killgrun.c.orig	Thu Dec 16 11:26:57 2004
++++ TOOLS/killgrun.c	Thu Dec 16 11:27:06 2004
+@@ -75,13 +75,13 @@
+         if (rval) {
+             perror ("kill");
+             fprintf (stderr, "Unable to kill process %d\n", process);
+-/*
++#if 0
+             if (errno == ESRCH) {   /* Does not work on Red Hat 8 */
+                 fprintf (stderr, "Process does not exist, telling boss anyway\n");
+             } else {
+                 goto CLEANUP;
+             }
+-*/
++#endif
+             fprintf (stderr, "Process does not exist, telling boss anyway\n");
+         }
+     }
--- concorde-20031219.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412161230.iBGCUNX9093138>