From owner-freebsd-x11@FreeBSD.ORG Sat Jan 16 14:42:10 2010 Return-Path: Delivered-To: x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 994DD106566B for ; Sat, 16 Jan 2010 14:42:10 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 29C848FC17 for ; Sat, 16 Jan 2010 14:42:09 +0000 (UTC) Received: from p578b68b8.dip0.t-ipconnect.de ([87.139.104.184] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NW9Fs-0005wJ-AS; Sat, 16 Jan 2010 15:03:56 +0100 Message-ID: <4B51C74B.3060507@gwdg.de> Date: Sat, 16 Jan 2010 15:03:55 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.1.5) Gecko/20100112 Thunderbird/3.0 MIME-Version: 1.0 To: Ed Schouten References: <4B5179B5.9020902@gwdg.de> <20100116115928.GF64905@hoeg.nl> In-Reply-To: <20100116115928.GF64905@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: ports@FreeBSD.org, x11@FreeBSD.org Subject: Re: HEADS UP: gone. All welcome . X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2010 14:42:10 -0000 On 16.01.2010 12:59 (UTC+1), Ed Schouten wrote: > Hello Rainer, > > * Rainer Hurling wrote: >> After updating my system i tried to rebuild Xorg ports. All went >> fine until it has to compile x11/sessreg. >> >> It seems that the configure script does not find struct >> 'utmpx.ut_syslen' and so the build process falls back to utmp? >> >> Could you please take a look if this is an issue of the new interface. > > I just looked at this problem and sent a patch to the Xorg folks. I > can't find my email in the xorg-devel archives yet, so I've attached a > patch to this email. Hopefully the respective port maintainer can turn > it into something useful. Ed, many thanks for this patch. There was a small problem with patching sessreg.c: patch < sessreg.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/configure.ac b/configure.ac |index 6e2f470..be1b4b4 100644 |--- a/configure.ac |+++ b/configure.ac -------------------------- Patching file configure.ac using Plan A... Hunk #1 succeeded at 36 with fuzz 2 (offset -3 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/sessreg.c b/sessreg.c |index c674450..992a213 100644 |--- a/sessreg.c |+++ b/sessreg.c -------------------------- Patching file sessreg.c using Plan A... Hunk #1 succeeded at 80 (offset 5 lines). Hunk #2 succeeded at 88 (offset 5 lines). Hunk #3 succeeded at 101 with fuzz 2 (offset 5 lines). Hunk #4 failed at 115. Hunk #5 succeeded at 189 (offset 5 lines). Hunk #6 succeeded at 197 (offset 5 lines). Hunk #7 succeeded at 234 (offset 5 lines). Hunk #8 succeeded at 262 (offset 5 lines). Hunk #9 succeeded at 280 (offset 5 lines). Hunk #10 succeeded at 299 (offset 5 lines). Hunk #11 succeeded at 342 (offset 5 lines). Hunk #12 succeeded at 394 (offset 5 lines). Hunk #13 succeeded at 441 (offset 5 lines). Hunk #14 succeeded at 449 (offset 5 lines). Hunk #15 succeeded at 462 (offset 5 lines). Hunk #16 succeeded at 481 (offset 5 lines). Hunk #17 succeeded at 549 (offset 5 lines). 1 out of 17 hunks failed--saving rejects to sessreg.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/sessreg.h b/sessreg.h |index 6583d57..6b3edc2 100644 |--- a/sessreg.h |+++ b/sessreg.h -------------------------- Patching file sessreg.h using Plan A... Hunk #1 succeeded at 57 (offset 6 lines). done cat sessreg.c.rej *************** *** 108,114 **** */ static int hflag, sflag, xflag, tflag; static char *host_name = NULL; static int slot_number; static char *xservers_file, *ttys_file; static char *user_name; static int aflag, dflag; --- 115,123 ---- */ static int hflag, sflag, xflag, tflag; static char *host_name = NULL; + #ifdef USE_UTMP static int slot_number; + #endif static char *xservers_file, *ttys_file; static char *user_name; static int aflag, dflag; Doing this patch manually works. After patching the port compiles again :-) Rainer