From owner-cvs-all@FreeBSD.ORG Fri Jul 15 18:56:41 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D325616A41F for ; Fri, 15 Jul 2005 18:56:41 +0000 (GMT) (envelope-from chinsan.tw@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D04943D62 for ; Fri, 15 Jul 2005 18:56:35 +0000 (GMT) (envelope-from chinsan.tw@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so669250wri for ; Fri, 15 Jul 2005 11:56:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kLMsqMWb5rrqkQ4QA9vO35+YYn63zss2YVht0nYK3bNSyc0vVdFqFA1vGRD5N2TOAPzw3dSjBmR9BLjDrvZG5Hq/EEo91xKb1CQaaiAl7zWa7ZB2MVAtT2H6ZoShBvRXBD8lVjbpJnAOwt++NdwILDhwv8/w6edsE76ZmKQnArk= Received: by 10.54.34.67 with SMTP id h67mr504970wrh; Fri, 15 Jul 2005 11:55:35 -0700 (PDT) Received: by 10.54.130.5 with HTTP; Fri, 15 Jul 2005 11:55:35 -0700 (PDT) Message-ID: <1f27304c05071511552174dd27@mail.gmail.com> Date: Sat, 16 Jul 2005 02:55:35 +0800 From: chinsan To: MANTANI Nobutaka In-Reply-To: <861x5zor24.wl%nobutaka@nobutaka.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200507141313.j6EDDrox078811@repoman.freebsd.org> <86vf3cce58.wl%nobutaka@nobutaka.org> <20050715154253.GA2568@tongi.org> <861x5zor24.wl%nobutaka@nobutaka.org> Cc: Clive Lin , Pav Lucistnik , cvs-ports@freebsd.org, cvs-all@freebsd.org, ports-committers@freebsd.org Subject: Re: cvs commit: ports/x11-fonts/libXft Makefile distinfo X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chinsan List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 18:56:42 -0000 2005/7/16, MANTANI Nobutaka : > At Fri, 15 Jul 2005 23:42:53 +0800, > Clive Lin wrote: > > > > Uhm, stay tuned. It's not yet proven right. Ya ... :( (sorry,cjk-patch-libXft-20050715.diff.gz was made by me) >=20 > I have found a null pointer dereference bug in the CJK patch. > It causes segmentation fault in the startup of firefox (aagh!). > The following patch fixes it. Yes! It works well for me. Thank to nobutaka for your new patch :) Could this patch be included in such as cjk-patch-libXft-20050716.diff.gz(changed filename)? >=20 >=20 > Index: Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/pcvs/ports/x11-fonts/libXft/Makefile,v > retrieving revision 1.32 > diff -u -r1.32 Makefile > --- Makefile 15 Jul 2005 15:40:37 -0000 1.32 > +++ Makefile 15 Jul 2005 18:25:27 -0000 > @@ -30,6 +30,7 @@ > PATCH_SITES=3D ftp://local-distfiles.freebsd.org.cn/pub/china-ports/ha= migua/ \ > http://bsdchat.com/dist/firefly-cjk-patchset/ > PATCHFILES+=3D cjk-patch-libXft-20050715.diff.gz > +EXTRA_PATCHES=3D ${PATCHDIR}/extra-patch-xftglyphs.c > .endif >=20 > .include > Index: files/extra-patch-xftglyphs.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: files/extra-patch-xftglyphs.c > diff -N files/extra-patch-xftglyphs.c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ files/extra-patch-xftglyphs.c 15 Jul 2005 18:25:27 -0000 > @@ -0,0 +1,26 @@ > +--- xftglyphs.c.orig Sat Jul 16 02:57:30 2005 > ++++ xftglyphs.c Sat Jul 16 02:57:44 2005 > +@@ -127,6 +127,11 @@ > + if (!info) > + return; > + > ++ face =3D XftLockFace (&font->public); > ++ > ++ if (!face) > ++ return; > ++ > + /*------------------------------------------------------- > + * Add by Firefly (firefly@firefly.idv.tw) > + * Initialize gamma table > +@@ -141,11 +146,6 @@ > + if (font->info.weight >=3D FC_WEIGHT_BOLD && > + !(face->style_flags & FT_STYLE_FLAG_BOLD)) > + bold_advance_width =3D 64; > +- > +- face =3D XftLockFace (&font->public); > +- > +- if (!face) > +- return; > + > + matrix.xx =3D matrix.yy =3D 0x10000L; > + matrix.xy =3D matrix.yx =3D 0; >=20 >=20 >=20 > -- > MANTANI Nobutaka > nobutaka@nobutaka.org, nobutaka@FreeBSD.org >