Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2013 23:00:07 +0200
From:      sascha <ssaschaa@icloud.com>
To:        ports@FreeBSD.org
Subject:   FreeBSD Port: devel/libinotify
Message-ID:  <55A76A0D-6700-4F7B-8D80-4F04F7D20C8D@icloud.com>

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

--Apple-Mail=_5BBC3C6D-C0F6-429B-AB64-4B565AEFA641
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Dear Maintainers,

i had some trouble with samba and tracked it down to a libnotify issue. =
Attached you'll find an updated Makefile for the current port and a =
patch to take timed-out kevents into account. Please update this to =
mainline and hopefully let people have a nice weekend instead of my =
last=85

All the best,
Sascha


--Apple-Mail=_5BBC3C6D-C0F6-429B-AB64-4B565AEFA641
Content-Disposition: attachment;
	filename=Makefile
Content-Type: application/octet-stream;
	name="Makefile"
Content-Transfer-Encoding: 7bit

# New ports collection makefile for:		libinotify
# Date created:					2011-08-29
# Whom:						stas
#
# $FreeBSD: devel/libinotify/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	libinotify
PORTVERSION=	20110829
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.SpringDaemons.com/soft/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Kevent based inotify compatible library

LICENSE=	MIT

GNU_CONFIGURE=	yes
USE_BZIP2=	yes
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	DEBUG
DEBUG_DESC=	Include perror output

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
DEBUG=		yes
CONFIGURE_ARGS=	--enable-perrors
.endif


#
# Get rid of .la and static library files
#
post-configure:
	@${REINPLACE_CMD} -E -e \
	'/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>

--Apple-Mail=_5BBC3C6D-C0F6-429B-AB64-4B565AEFA641
Content-Disposition: attachment;
	filename=patch-worker-thread.c
Content-Type: application/octet-stream;
	name="patch-worker-thread.c"
Content-Transfer-Encoding: 7bit

--- ./worker-thread.c.orig	2011-08-30 07:19:39.000000000 +0200
+++ ./worker-thread.c	2013-05-17 12:38:26.000000000 +0200
@@ -604,7 +604,9 @@
                           &received,
                           1,
                           NULL);
-        if (ret == -1) {
+        if (ret == 0) {
+            perror_msg ("kevent timed out");
+        } else if (ret < 0) {
             perror_msg ("kevent failed");
             continue;
         }

--Apple-Mail=_5BBC3C6D-C0F6-429B-AB64-4B565AEFA641--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55A76A0D-6700-4F7B-8D80-4F04F7D20C8D>