From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 26 03:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E937E1065692 for ; Mon, 26 Oct 2009 03:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BC9168FC1D for ; Mon, 26 Oct 2009 03:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9Q3e2gG021460 for ; Mon, 26 Oct 2009 03:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9Q3e2OE021459; Mon, 26 Oct 2009 03:40:02 GMT (envelope-from gnats) Date: Mon, 26 Oct 2009 03:40:02 GMT Message-Id: <200910260340.n9Q3e2OE021459@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Cc: Subject: Re: ports/138830: net/linux-nx-client TCP_NODELAY problem X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2009 03:40:03 -0000 The following reply was made to PR ports/138830; it has been noted by GNATS. From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= To: bug-followup@FreeBSD.org, meta@club.kyutech.ac.jp Cc: Subject: Re: ports/138830: net/linux-nx-client TCP_NODELAY problem Date: Sun, 25 Oct 2009 20:13:49 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --738249620-1503806993-1256526829=:1213 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed This patch to the port makes nxclient work for me (on 7.2): --- Makefile.orig 2009-10-24 17:57:53.000000000 -0700 +++ Makefile 2009-10-24 17:59:15.000000000 -0700 @@ -27,6 +27,10 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} +post-patch: + ${PERL5} -pi.orig -e 's/\x83\x3f\x5f\x75\x02/\x83\x3f\x16\x75\x02/' \ + ${NXSRC}/lib/libXcomp.so.${PORTVERSION} + do-install: ${MKDIR} ${NXDST}/bin ${INSTALL_PROGRAM} ${NXSRC}/bin/* ${NXDST}/bin Nxclient is blindly setting TCP_NODELAY on a number of sockets, including the X11 unix domain socket and then ignores certain errors as benign. Linux returns a different error code (EOPNOTSUPP) than freebsd and nxclient treats the unexpected error (EINVAL) code as fatal. The patch massages the binary to be happy with the freebsd error code. Btw, using display localhost:0 instead of :0 also makes nxclient work, with some performance loss. Cheers, /Mikko --738249620-1503806993-1256526829=:1213 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=Makefile.diff Content-Transfer-Encoding: BASE64 Content-ID: <20091025201349.F1213@antec.home> Content-Description: Content-Disposition: attachment; filename=Makefile.diff LS0tIE1ha2VmaWxlLm9yaWcJMjAwOS0xMC0yNCAxNzo1Nzo1My4wMDAwMDAw MDAgLTA3MDANCisrKyBNYWtlZmlsZQkyMDA5LTEwLTI0IDE3OjU5OjE1LjAw MDAwMDAwMCAtMDcwMA0KQEAgLTI3LDYgKzI3LDEwIEBADQogDQogUExJU1Rf U1VCKz0JCVBPUlRWRVJTSU9OPSR7UE9SVFZFUlNJT059DQogDQorcG9zdC1w YXRjaDoNCisJJHtQRVJMNX0gLXBpLm9yaWcgLWUgJ3MvXHg4M1x4M2ZceDVm XHg3NVx4MDIvXHg4M1x4M2ZceDE2XHg3NVx4MDIvJyBcDQorCQkke05YU1JD fS9saWIvbGliWGNvbXAuc28uJHtQT1JUVkVSU0lPTn0NCisNCiBkby1pbnN0 YWxsOg0KIAkke01LRElSfSAke05YRFNUfS9iaW4NCiAJJHtJTlNUQUxMX1BS T0dSQU19ICR7TlhTUkN9L2Jpbi8qICR7TlhEU1R9L2Jpbg0K --738249620-1503806993-1256526829=:1213--