From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 10 10:00:28 2011 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F4E6106566B for ; Thu, 10 Mar 2011 10:00:28 +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 D80278FC0C for ; Thu, 10 Mar 2011 10:00:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2AA0RBZ054139 for ; Thu, 10 Mar 2011 10:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2AA0Rx8054101; Thu, 10 Mar 2011 10:00:27 GMT (envelope-from gnats) Date: Thu, 10 Mar 2011 10:00:27 GMT Message-Id: <201103101000.p2AA0Rx8054101@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/149168: [linux] [patch] Linux sendmsg / recvmsg / etc fixes for pulseaudio X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 10:00:28 -0000 The following reply was made to PR kern/149168; it has been noted by GNATS. From: Andriy Gapon To: John Wehle Cc: rdivacky@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/149168: [linux] [patch] Linux sendmsg / recvmsg / etc fixes for pulseaudio Date: Thu, 10 Mar 2011 11:54:31 +0200 on 08/03/2011 09:32 John Wehle said the following: > Enclosed is yet another slightly tweaked and lightly tested version. > > I made a bootable amd64 drive which mirrors my existing i386 system > so I was able to test these changes on both amd64 and i386. > > Changes from previous: > > 1) Include changes to amd64/linux32/linux32_dummy.c. > > 2) Use PTRIN in LINUX_CMSG_FIRSTHDR and LINUX_CMSG_NXTHDR so > linux_socket.c compiles without complaints on amd64. > > 3) Invoke LINUX_CMSG_NXTHDR with the correct variable (basically > I missed a place in my last round of changes). Thanks a lot! This patch works as expected for me. Unless anybody objects or wants to hold this patch for further reviewing I will try to commit it this coming weekend. > Notes: > > 1) This has been tested on both i386 and amd64 with Fedora 10 paplay > (client) talking to FreeBSD 8.2 pulseaudio (server) over both TCP > and UNIX domain sockets. > > 2) PulseAudio generates the socket name slightly differently between > FreeBSD and Linux. When using UNIX domain sockets please set > PULSE_SERVER prior to invoking the client application. E.g.: > > setenv PULSE_SERVER unix:/tmp/pulse-J1eO0ABCS0DM/native > > where /tmp/pulse-J1eO0ABCS0DM/native is the name of the FreeBSD > PulseAudio socket. Someone knowledgeable may be able to muck > > /usr/compat/linux/etc/pulse/client.conf > > so this is not necessary. Looks like the pulseaudio developers changed their mind about the separator somewhere between versions 0.9.14 and 0.9.21. If we could find a more recent package for f10 that would help. Not sure if a package from later fedora versions would work. -- Andriy Gapon