[Fontconfig-bugs] [Bug 30077] fontconfig fails to write cache on Haiku

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 9 07:01:08 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=30077

Akira TAGOH <akira at tagoh.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #17 from Akira TAGOH <akira at tagoh.org> 2012-07-09 07:01:08 PDT ---
All of _necessary fixes_ is in git master now. incompatibility of link() isn't
OURBUG. so I'm afraid I don't have any plans to add a fix for that in
fontconfig. for your workaround until it get fixed in Haiku, this patch would
works:

diff --git a/src/fcatomic.c b/src/fcatomic.c
index 350744a..8f4641e 100644
--- a/src/fcatomic.c
+++ b/src/fcatomic.c
@@ -132,7 +132,7 @@ FcAtomicLock (FcAtomic *atomic)
        return FcFalse;
     }
     ret = link ((char *) atomic->tmp, (char *) atomic->lck);
-    if (ret < 0 && errno == EPERM)
+    if (ret < 0 && (errno == EPERM || errno == B_UNSUPPORTED))
     {
        /* the filesystem where atomic->lck points to may not supports
         * the hard link. so better try to fallback

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Fontconfig-bugs mailing list