Bug 57869 - update port multimedia/xawtv: workaround to enable overlay
Summary: update port multimedia/xawtv: workaround to enable overlay
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Oliver Lehmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-11 20:30 UTC by matthias.andree
Modified: 2003-10-13 17:16 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (988 bytes, patch)
2003-10-11 20:30 UTC, matthias.andree
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description matthias.andree 2003-10-11 20:30:18 UTC
On my FreeBSD machine, xawtv misdetects the X11 display as "remote" and
hence disables the "overlay" mode which is an important performance feature.

This PR includes a workaround for the problem. Please apply until there is an
upstream fix in the next xawtv release.

Technical:

x11/xt.c seems to be unable to retrieve the socket name, but IMHO an
address type of AF_UNIX is sufficient to conclude "local display".

NOTE: there is another bug in xt.c, it does NOT detect that getnameinfo fails
with EAI_FAMILY and still tries to use the results.  ltrace: (5 is EAI_FAMILY)

This bug needs to be fixed upstream, and I also suggest the patch below for the upstream.

getsockname(6, 0xbfbff7b0, 0xbfbff72c, 95, 1)     = 0
getnameinfo(0xbfbff7b0, 16, 0xbfbff780, 46, 0xbfbff730) = 5
getpeername(6, 0xbfbff7b0, 0xbfbff72c, 46, 0xbfbff730) = 0
getnameinfo(0xbfbff7b0, 19, 0xbfbff750, 46, 0xbfbff730) = 5
strcmp("", ")\001\003 \326!\b\b.\035\b\b\324R\b\b@\242\b\b\b") = -41

Fix: Gerd, for upstream application, you need to run patch twice on this section,
the first time with -p4, which should create files-x11::xt.c, then run patch
again with this new file as input to modify x11/xt.c.
Comment 1 Oliver Lehmann freebsd_committer freebsd_triage 2003-10-11 20:31:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->oliver

Over the maintainer!
Comment 2 Oliver Lehmann freebsd_committer freebsd_triage 2003-10-13 17:16:32 UTC
State Changed
From-To: open->closed

Committed, Thanks!