Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2013 14:39:18 GMT
From:      Javier Martín Rueda <jmrueda@diatel.upm.es>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175510: Update of net/spread4 port to version 4.2.0
Message-ID:  <201301221439.r0MEdIOg001143@red.freebsd.org>
Resent-Message-ID: <201301221440.r0MEe2RE080634@freefall.freebsd.org>

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

>Number:         175510
>Category:       ports
>Synopsis:       Update of net/spread4 port to version 4.2.0
>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:   Tue Jan 22 14:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Javier Martín Rueda
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
Universidad Politécnica de Madrid
>Environment:
>Description:
This is an update of the net/spread4 port to version 4.2.0.

New changes with respect to original source code:

* Remove the use of -ldl in a couple of Makefiles, as this library does not exist in FreeBSD, and its functions are included in libc.
* Include <sys/stdint.h> in daemon.c as it uses UINT16_MAX, which in Linux must be defined in some of the other header files, but not in FreeBSD.

The rest of the patches are the obvious things (download size and sha256, update in the pkg-plist with new shared library versions...)

NOTE: in order to download Spread from http://www.spread.org/download/spread-src-4.2.0.tar.gz, you are asked to fill a form. In the current port, the source code is downloaded from LOCAL/wen, and somebody should upload spread-4.2.0.tar.gz there to make it available.
>How-To-Repeat:
Not applicable.
>Fix:
See attached patch file.

Patch attached with submission follows:

diff -ruN spread4.orig/Makefile spread4/Makefile
--- spread4.orig/Makefile	2012-07-20 22:32:20.000000000 +0200
+++ spread4/Makefile	2013-01-22 11:48:52.000000000 +0100
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	spread4
-PORTVERSION=	4.1.0
+PORTVERSION=	4.2.0
 PORTREVISION=	1
 CATEGORIES=	net perl5
 MASTER_SITES=	LOCAL/wen
diff -ruN spread4.orig/distinfo spread4/distinfo
--- spread4.orig/distinfo	2011-03-20 13:53:01.000000000 +0100
+++ spread4/distinfo	2013-01-22 11:40:11.000000000 +0100
@@ -1,2 +1,2 @@
-SHA256 (spread-src-4.1.0.tar.gz) = 764d84ecf06877802c805efc1e84bbb362f14c791829e88d62fcba9951a68cdd
-SIZE (spread-src-4.1.0.tar.gz) = 641060
+SHA256 (spread-src-4.2.0.tar.gz) = 0f234c211eadc26002e31343bdd1e343f4956f5665edd4db92751ef1d595bb5c
+SIZE (spread-src-4.1.0.tar.gz) = 736189
diff -ruN spread4.orig/files/patch-daemon__Makefile.in spread4/files/patch-daemon__Makefile.in
--- spread4.orig/files/patch-daemon__Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ spread4/files/patch-daemon__Makefile.in	2013-01-22 12:12:34.000000000 +0100
@@ -0,0 +1,11 @@
+--- daemon/Makefile.in.orig	2012-03-21 00:26:01.000000000 +0100
++++ daemon/Makefile.in	2013-01-22 12:02:35.000000000 +0100
+@@ -30,7 +30,7 @@
+ LIBSPREADUTIL_DIR=../libspread-util
+ LIBSPREADUTIL_PATHS=-I$(LIBSPREADUTIL_DIR)/include -I$(top_srcdir)/libspread-util/include
+ LIBSPREADUTIL_LDFLAGS=-rdynamic
+-LIBSPREADUTIL_LIBS=-ldl
++LIBSPREADUTIL_LIBS=
+ 
+ CC=@CC@
+ LD=@LD@
diff -ruN spread4.orig/files/patch-daemon__monitor.c spread4/files/patch-daemon__monitor.c
--- spread4.orig/files/patch-daemon__monitor.c	1970-01-01 01:00:00.000000000 +0100
+++ spread4/files/patch-daemon__monitor.c	2013-01-22 12:21:53.000000000 +0100
@@ -0,0 +1,10 @@
+--- daemon/monitor.c.orig	2012-03-21 04:17:52.000000000 +0100
++++ daemon/monitor.c	2013-01-22 12:21:25.000000000 +0100
+@@ -39,6 +39,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <errno.h>
++#include <sys/stdint.h>
+ 
+ #include "arch.h"
+ #include "mutex.h"
diff -ruN spread4.orig/files/patch-examples__Makefile.in spread4/files/patch-examples__Makefile.in
--- spread4.orig/files/patch-examples__Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ spread4/files/patch-examples__Makefile.in	2013-01-22 12:12:52.000000000 +0100
@@ -0,0 +1,11 @@
+--- examples/Makefile.in.orig	2012-03-21 00:26:01.000000000 +0100
++++ examples/Makefile.in	2013-01-22 12:02:41.000000000 +0100
+@@ -30,7 +30,7 @@
+ LIBSPREADUTIL_DIR=../libspread-util
+ LIBSPREADUTIL_PATHS=-I$(LIBSPREADUTIL_DIR)/include -I$(top_srcdir)/libspread-util/include
+ LIBSPREADUTIL_LDFLAGS=-rdynamic
+-LIBSPREADUTIL_LIBS=-ldl
++LIBSPREADUTIL_LIBS=
+ 
+ CC=@CC@
+ LD=@LD@
diff -ruN spread4.orig/pkg-plist spread4/pkg-plist
--- spread4.orig/pkg-plist	2012-07-20 22:32:20.000000000 +0200
+++ spread4/pkg-plist	2013-01-22 12:31:17.000000000 +0100
@@ -17,14 +17,14 @@
 lib/libspread-core.a
 lib/libtspread-core.a
 lib/libspread.so
-lib/libspread.so.2
-lib/libspread.so.2.0.1
+lib/libspread.so.3
+lib/libspread.so.3.0.0
 lib/libspread-core.so
-lib/libspread-core.so.2
-lib/libspread-core.so.2.0.1
+lib/libspread-core.so.3
+lib/libspread-core.so.3.0.0
 lib/libtspread-core.so
-lib/libtspread-core.so.2
-lib/libtspread-core.so.2.0.1
+lib/libtspread-core.so.3
+lib/libtspread-core.so.3.0.0
 sbin/spread
 %%PORTDOCS%%%%DOCSDIR%%/DynamicConfiguration.txt
 %%PORTDOCS%%%%DOCSDIR%%/Flush_or_SpreadAPI.txt


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



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