pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libXft Update to libXft-2.1.13. Bump BUILDLINK_AB...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/11707dd785ad
branches:  trunk
changeset: 544356:11707dd785ad
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Sun Jul 13 23:41:02 2008 +0000

description:
Update to libXft-2.1.13.  Bump BUILDLINK_ABI_DEPENDS, as the library
version is now 2.1.13 (from 2.1.2).  ChangeLog:

commit 19240d3605b5f1e88ca5509afffd48acdb7e1c5f

    Revert "Drop Requires, use Requires.private instead."

    This reverts commit a1c78ce68c5f2106c38b6cb93a6b22420e1a80ab.

    Unfortunately this doesn't work on old pkg-config, which made
    Requires.private completely useless.  That's fixed in 0.22, but...

commit a1c78ce68c5f2106c38b6cb93a6b22420e1a80ab

    Drop Requires, use Requires.private instead.

    Users of libXft don't need to link with fontconfig, freetype and
    Xrender directly if they don't use them.

commit 541c6194d986e7849ee9541a9fd60b0724647a44

    Bug #14232: Fix XftDrawRect when Render not supported.

commit 8a7f3d450c1f339f429dbce55df523d026c92375

    Register objects used by libXft.

    libXft uses XFT_MAX_GLYPH_MEMORY without first registering with
    fontconfig.

commit 8ae5ea8c75a7850fa0aca0acc3962b6263f55094

    XftFontOpenInfo: Use of uninitialised value of size 8 (bug 11200)

    This is due to XftFontInfoFill using the binary representation of the
    XftFontInfo to generate fi->hash.

    With 64-bit pointers there is padding between .hash and .file in struct
    _XftFontInfo.  This padding is not initialized, and the hash uses these
    bytes.

    This will interfere with finding "a matching previously opened font" in
    XftFontOpenInfo, and XftFontInfoEqual, which uses memcmp, will have
    similar problems.

    This fix makes no assumptions about the sizes and alignment of
    members of struct _XftFontInfo by using memset.  (It also makes
    no assumptions about what FcPatternGet* does to its output parameter
    when it returns FcResultNoMatch.)

diffstat:

 x11/libXft/Makefile         |   5 ++---
 x11/libXft/buildlink3.mk    |   3 ++-
 x11/libXft/distinfo         |   8 ++++----
 x11/libXft/patches/patch-aa |  14 --------------
 x11/libXft/patches/patch-ab |  17 -----------------
 x11/libXft/patches/patch-ac |  30 ------------------------------
 x11/libXft/patches/patch-ad |  17 -----------------
 7 files changed, 8 insertions(+), 86 deletions(-)

diffs (140 lines):

diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/Makefile
--- a/x11/libXft/Makefile       Sun Jul 13 23:32:04 2008 +0000
+++ b/x11/libXft/Makefile       Sun Jul 13 23:41:02 2008 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2008/05/24 21:45:15 tnn Exp $
+# $NetBSD: Makefile,v 1.7 2008/07/13 23:41:02 bjs Exp $
 
-DISTNAME=      libXft-2.1.12
-PKGREVISION=   1
+DISTNAME=      libXft-2.1.13
 CATEGORIES=    fonts x11
 MASTER_SITES=  ${MASTER_SITE_XORG:=lib/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/buildlink3.mk
--- a/x11/libXft/buildlink3.mk  Sun Jul 13 23:32:04 2008 +0000
+++ b/x11/libXft/buildlink3.mk  Sun Jul 13 23:41:02 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2006/11/05 16:55:28 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2008/07/13 23:41:02 bjs Exp $
 
 .include "../../mk/bsd.fast.prefs.mk"
 
@@ -19,6 +19,7 @@
 
 .if ${LIBXFT_BUILDLINK3_MK} == "+"
 BUILDLINK_API_DEPENDS.libXft+= libXft>=2.1.10
+BUILDLiNK_ABI_DEPENDS.libXft+= libXft>=2.1.13
 BUILDLINK_PKGSRCDIR.libXft?=   ../../x11/libXft
 .endif # LIBXFT_BUILDLINK3_MK
 
diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/distinfo
--- a/x11/libXft/distinfo       Sun Jul 13 23:32:04 2008 +0000
+++ b/x11/libXft/distinfo       Sun Jul 13 23:41:02 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2008/01/29 04:18:44 bjs Exp $
+$NetBSD: distinfo,v 1.4 2008/07/13 23:41:02 bjs Exp $
 
-SHA1 (libXft-2.1.12.tar.bz2) = c55fb1b79e6e8459a343e4986f0607a438eff340
-RMD160 (libXft-2.1.12.tar.bz2) = 98ee482a0bdb9d41bbea667ea84d00421e51424b
-Size (libXft-2.1.12.tar.bz2) = 260437 bytes
+SHA1 (libXft-2.1.13.tar.bz2) = 7ce291fe4306de8e73e545ab9af2285cc1c26dce
+RMD160 (libXft-2.1.13.tar.bz2) = f9cbfd6710a9999a12f49e2bb23b8061eee01e9e
+Size (libXft-2.1.13.tar.bz2) = 268153 bytes
 SHA1 (patch-aa) = aa6f081596084e97e3767ce2b1d4648cf7917a6c
 SHA1 (patch-ab) = e275990e6469819724d76b393d8a451cca778f9a
 SHA1 (patch-ac) = d00925dcc3ad35933036c6708626d9b745712119
diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/patches/patch-aa
--- a/x11/libXft/patches/patch-aa       Sun Jul 13 23:32:04 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2007/01/23 15:20:08 joerg Exp $
-
---- include/X11/Xft/Xft.h.orig 2006-12-07 11:20:30.000000000 +0100
-+++ include/X11/Xft/Xft.h
-@@ -447,6 +447,9 @@ XftListFonts (Display      *dpy,
- FcPattern 
- *XftNameParse (_Xconst char *name);
- 
-+FcBool
-+XftNameUnparse (FcPattern *pat, char *dest, int len);
-+
- /* xftrender.c */
- void
- XftGlyphRender (Display               *dpy,
diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/patches/patch-ab
--- a/x11/libXft/patches/patch-ab       Sun Jul 13 23:32:04 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2007/01/23 15:20:08 joerg Exp $
-
---- configure.orig     2007-01-23 16:04:17.000000000 +0100
-+++ configure
-@@ -2269,10 +2269,10 @@ AMSHOWCMDSAT=''
- AMDEPSHOWCMDSAT=''
- AMPRETTYECHO=true
- AMCMDECHO=echo
--if test "x$enable_pretty_cmds" == xyes;
-+if test "x$enable_pretty_cmds" = xyes;
- then
-   AMSHOWCMDSAT='@'
--  test x$enable_dependency_tracking == xno && AMDEPSHOWCMDSAT='@'
-+  test x$enable_dependency_tracking = xno && AMDEPSHOWCMDSAT='@'
-   AMPRETTYECHO=echo
-   AMCMDECHO=true
-   LT_QUIET='--quiet'
diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/patches/patch-ac
--- a/x11/libXft/patches/patch-ac       Sun Jul 13 23:32:04 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2008/01/29 04:18:44 bjs Exp $
-
-XftFontOpenInfo: Use of uninitialised value of size 8 (bug 11200)
-(from freedesktop.org GIT)
-
---- src/xftfreetype.c.orig     2006-12-07 05:17:19.000000000 -0500
-+++ src/xftfreetype.c
-@@ -392,6 +392,13 @@ XftFontInfoFill (Display *dpy, _Xconst F
-       return FcFalse;
- 
-     /*
-+     * Initialize the whole XftFontInfo so that padding doesn't interfere with
-+     * hash or XftFontInfoEqual().
-+     */
-+ 
-+    memset (fi, '\0', sizeof(*fi));
-+
-+    /*
-      * Find the associated file
-      */
-     switch (FcPatternGetString (pattern, FC_FILE, 0, &filename)) {
-@@ -419,8 +426,6 @@ XftFontInfoFill (Display *dpy, _Xconst F
-     else if (FcPatternGetFTFace (pattern, FC_FT_FACE, 0, &face) == FcResultMatch
-            && face)
-       fi->file = _XftGetFaceFile (face);
--    else
--      fi->file = 0;
-     if (!fi->file)
-         goto bail0;
- 
diff -r 5069f0b80f6d -r 11707dd785ad x11/libXft/patches/patch-ad
--- a/x11/libXft/patches/patch-ad       Sun Jul 13 23:32:04 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2008/01/29 04:18:45 bjs Exp $
-
-Register objects used by libXft. (patch from freedesktop.org GIT)
- 
-libXft was using XFT_MAX_GLYPH_MEMORY without first registering
-with fontconfig.
-
---- src/xftname.c.orig 2006-12-07 05:17:45.000000000 -0500
-+++ src/xftname.c
-@@ -28,6 +28,7 @@ static const FcObjectType    _XftObjectType
-     { XFT_CORE,               FcTypeBool, },
-     { XFT_XLFD,               FcTypeString, },
-     { XFT_RENDER,     FcTypeBool, },
-+    { XFT_MAX_GLYPH_MEMORY, FcTypeInteger, },
- };
- 
- #define NUM_OBJECT_TYPES    (sizeof _XftObjectTypes / sizeof _XftObjectTypes[0])



Home | Main Index | Thread Index | Old Index