Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 09:48:01 +0000
From:      Russell Franci <rf358197@ohio.edu>
To:        Pav Lucistnik <pav@FreeBSD.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/69246: New port: devel/libgutenfetch Library forapplication developers to interface with Project Gutenberg etext servers.
Message-ID:  <40FCEA51.30604@ohio.edu>
In-Reply-To: <200407191829.i6JIT74l095426@freefall.freebsd.org>
References:  <200407191829.i6JIT74l095426@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090304040902070006040305
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Pav Lucistnik wrote:
> Synopsis: New port: devel/libgutenfetch Library for application developers to interface with Project Gutenberg etext servers.
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: pav
> State-Changed-When: Mon Jul 19 18:28:06 GMT 2004
> State-Changed-Why: 
> Does not compile with latest gcc:
> 
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -D_THREAD_SAFE -pthread -DLOCALEDIR=\"\" -DDATADIR=\"/usr/local/share/libgutenfetch\" -I/usr/local/include -O -pipe -g -c libgutenfetch_utility.c -MT libgutenfetch_utility.lo -MD -MP -MF .deps/libgutenfetch_utility.TPlo  -fPIC -DPIC -o .libs/libgutenfetch_utility.lo
> libgutenfetch_utility.c: In function `gutenfetch_util_read_binary_file_to_buffer':
> libgutenfetch_utility.c:1552: error: incompatible types in return
> 
> Looks like new gcc don't permit NULL as a return value
> of function returning enum. Can you check with author
> and provide a patch to fix this?
> 
> 
> Responsible-Changed-From-To: freebsd-ports-bugs->pav
> Responsible-Changed-By: pav
> Responsible-Changed-When: Mon Jul 19 18:28:06 GMT 2004
> Responsible-Changed-Why: 
> Handle.
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=69246

Yes,

This is correct,  I have provided an updated shell archive to reflect 
the fix.

Thanks,
Russ

--------------090304040902070006040305
Content-Type: text/plain;
 name="port.libgutenfetch.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="port.libgutenfetch.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libgutenfetch
#	libgutenfetch/Makefile
#	libgutenfetch/distinfo
#	libgutenfetch/pkg-descr
#
echo c - libgutenfetch
mkdir -p libgutenfetch > /dev/null 2>&1
echo x - libgutenfetch/Makefile
sed 's/^X//' >libgutenfetch/Makefile << 'END-of-libgutenfetch/Makefile'
X# New ports collection makefile for:	libgutenfetch
X# Date created:		17 July 2004
X# Whom:		Russell Francis <johntabularasa@users.sf.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libgutenfetch
XPORTVERSION=	1.2
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	libgutenfetch
X
XMAINTAINER=	johntabularasa@users.sf.net
XCOMMENT=	A library that allows application developers to connect to PG
X
XLIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl:install
X
XGNU_CONFIGURE=	yes
XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LIBS="-L${LOCALBASE}/lib"
XUSE_GMAKE=	yes
XUSE_BZIP2=	yes
X
XMAN3	=	libgutenfetch.3 \
X		gutenfetch_version.3 \
X		gutenfetch_shutdown.3 \
X		gutenfetch_set_active_server_full.3 \
X		gutenfetch_set_active_server.3 \
X		gutenfetch_new_server.3 \
X		gutenfetch_list_servers.3 \
X		gutenfetch_is_threadsafe.3 \
X		gutenfetch_init.3 \
X		gutenfetch_get_aussie_server.3 \
X		gutenfetch_get_active_server.3 \
X		gutenfetch_free_server.3 \
X		gutenfetch_free_servers.3 \
X		gutenfetch_duplicate_server.3
X
XPLIST_FILES=	lib/libgutenfetch.a \
X		lib/libgutenfetch.la \
X		lib/libgutenfetch.so \
X		lib/libgutenfetch.so.0 \
X		share/libgutenfetch/servers.txt
X
XPLIST_DIRS=	share/libgutenfetch
X
X.include <bsd.port.mk>
END-of-libgutenfetch/Makefile
echo x - libgutenfetch/distinfo
sed 's/^X//' >libgutenfetch/distinfo << 'END-of-libgutenfetch/distinfo'
XMD5 (libgutenfetch-1.2.tar.bz2) = 70d6ec0f682fde0f4f3b15f28aa354d7
XSIZE (libgutenfetch-1.2.tar.bz2) = 208312
END-of-libgutenfetch/distinfo
echo x - libgutenfetch/pkg-descr
sed 's/^X//' >libgutenfetch/pkg-descr << 'END-of-libgutenfetch/pkg-descr'
XThis is a port of libgutenfetch, which provides a clean and consistent
Xinterface for application developers to write clients which list and
Xfetch free electronic texts from any number of Project Gutenberg servers
Xthroughout the world.
X
XWWW: http://sourceforge.net/projects/libgutenfetch/
X
X- Russell Francis
Xjohntabularasa@users.sf.net
END-of-libgutenfetch/pkg-descr
exit


--------------090304040902070006040305--



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