rpms/xorg-x11-xtrans-devel/F-7 xtrans-1.0.3-avoid-gethostname.patch, NONE, 1.1 xorg-x11-xtrans-devel.spec, 1.19, 1.20
Adam Jackson (ajax)
fedora-extras-commits at redhat.com
Tue Oct 2 13:38:28 UTC 2007
Author: ajax
Update of /cvs/pkgs/rpms/xorg-x11-xtrans-devel/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19500/F-7
Modified Files:
xorg-x11-xtrans-devel.spec
Added Files:
xtrans-1.0.3-avoid-gethostname.patch
Log Message:
* Tue Oct 02 2007 Adam Jackson <ajax at redhat.com> 1.0.3-2.1
- xtrans-1.0.3-avoid-gethostname.patch: Don't trust gethostname() output
when building networkIds for AF_UNIX sockets. Fixes application launch
delays and failures when dhclient changes your hostname from under you.
xtrans-1.0.3-avoid-gethostname.patch:
--- NEW FILE xtrans-1.0.3-avoid-gethostname.patch ---
diff -up xtrans-1.0.3/Xtransutil.c.jx xtrans-1.0.3/Xtransutil.c
--- xtrans-1.0.3/Xtransutil.c.jx 2006-12-06 11:08:53.000000000 -0500
+++ xtrans-1.0.3/Xtransutil.c 2007-10-01 14:53:43.000000000 -0400
@@ -271,6 +271,7 @@ TRANS(GetMyNetworkId) (XtransConnInfo ci
case AF_UNIX:
{
struct sockaddr_un *saddr = (struct sockaddr_un *) addr;
+ strcpy(hostnamebuf, "unix");
networkId = (char *) xalloc (3 + strlen (transName) +
strlen (hostnamebuf) + strlen (saddr->sun_path));
sprintf (networkId, "%s/%s:%s", transName,
Index: xorg-x11-xtrans-devel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-xtrans-devel/F-7/xorg-x11-xtrans-devel.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- xorg-x11-xtrans-devel.spec 22 Apr 2007 01:37:47 -0000 1.19
+++ xorg-x11-xtrans-devel.spec 2 Oct 2007 13:37:53 -0000 1.20
@@ -6,7 +6,7 @@
Summary: X.Org X11 developmental X transport library
Name: xorg-x11-xtrans-devel
Version: 1.0.3
-Release: 2%{?dist}
+Release: 2.1%{?dist}
License: MIT/X11
Group: System Environment/Libraries
URL: http://www.x.org
@@ -14,6 +14,8 @@
Source0: ftp://ftp.x.org/pub/individual/lib/xtrans-%{version}.tar.bz2
+Patch0: xtrans-1.0.3-avoid-gethostname.patch
+
BuildRequires: pkgconfig
BuildRequires: xorg-x11-util-macros
@@ -24,6 +26,7 @@
%prep
%setup -q -n xtrans-%{version}
+%patch0 -p1 -b .my-name-is-unix
%build
@@ -57,6 +60,11 @@
%{_datadir}/aclocal/xtrans.m4
%changelog
+* Tue Oct 02 2007 Adam Jackson <ajax at redhat.com> 1.0.3-2.1
+- xtrans-1.0.3-avoid-gethostname.patch: Don't trust gethostname() output
+ when building networkIds for AF_UNIX sockets. Fixes application launch
+ delays and failures when dhclient changes your hostname from under you.
+
* Sat Apr 21 2007 Matthias Clasen <mclasen at redhat.com> 1.0.3-2
- Don't install INSTALL
More information about the fedora-extras-commits
mailing list