Petr Gajdos
3b9f45d6fa
- turn off autohinter for Verdana again, which implies using BCI with hintstyle=3 [bnc#737215], [bnc#781631] - updated to 2.10.0: * /etc/fonts/conf.avail is deprecated and is packaged only for compatibility reasons; package should install its *.conf files in its data dir and link it into /etc/fonts/conf.d as usual * introduced warning -- <alias> should not contain more <family>s * introduced warning -- <test> should not contain more values * introduced warning -- reading configurations from ~/.fonts.conf is deprecated; move ~/.fonts.conf into $XDG_CONFIG_HOME/fontconfig/fonts.conf (the same for ~/.fonts.conf.d, see http://freedesktop.org/software/fontconfig/fontconfig-user.html) OBS-URL: https://build.opensuse.org/request/show/135611 OBS-URL: https://build.opensuse.org/package/show/M17N/fontconfig?expand=0&rev=90
67 lines
2.2 KiB
Diff
67 lines
2.2 KiB
Diff
Index: configure.ac
|
|
===================================================================
|
|
--- configure.ac.orig
|
|
+++ configure.ac
|
|
@@ -58,7 +58,9 @@ dnl ====================================
|
|
|
|
AC_CONFIG_HEADERS(config.h)
|
|
|
|
-AC_PROG_CC
|
|
+AC_PROG_CC_STDC
|
|
+AC_USE_SYSTEM_EXTENSIONS
|
|
+AC_SYS_LARGEFILE
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_LIBTOOL_WIN32_DLL
|
|
@@ -135,7 +137,7 @@ AC_TYPE_PID_T
|
|
# Checks for library functions.
|
|
AC_FUNC_VPRINTF
|
|
AC_FUNC_MMAP
|
|
-AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r regcomp regerror regexec regfree posix_fadvise fstatvfs fstatfs])
|
|
+AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp mkostemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r regcomp regerror regexec regfree posix_fadvise fstatvfs fstatfs])
|
|
|
|
#
|
|
if test "x$ac_cv_func_fstatvfs" = "xyes"; then
|
|
Index: src/fcatomic.c
|
|
===================================================================
|
|
--- src/fcatomic.c.orig
|
|
+++ src/fcatomic.c
|
|
@@ -109,10 +109,14 @@ FcAtomicLock (FcAtomic *atomic)
|
|
|
|
strcpy ((char *) atomic->tmp, (char *) atomic->file);
|
|
strcat ((char *) atomic->tmp, TMP_NAME);
|
|
+#ifdef HAVE_MKOSTEMP
|
|
+ fd = mkostemp ((char *) atomic->tmp, O_CLOEXEC);
|
|
+#else
|
|
fd = mkstemp ((char *) atomic->tmp);
|
|
+#endif
|
|
if (fd < 0)
|
|
return FcFalse;
|
|
- f = fdopen (fd, "w");
|
|
+ f = fdopen (fd, "we");
|
|
if (!f)
|
|
{
|
|
close (fd);
|
|
Index: src/fccache.c
|
|
===================================================================
|
|
--- src/fccache.c.orig
|
|
+++ src/fccache.c
|
|
@@ -150,7 +150,7 @@ FcDirCacheOpenFile (const FcChar8 *cache
|
|
if (FcStat (cache_file, file_stat) < 0)
|
|
return -1;
|
|
#endif
|
|
- fd = open((char *) cache_file, O_RDONLY | O_BINARY);
|
|
+ fd = open((char *) cache_file, O_RDONLY | O_BINARY | O_CLOEXEC);
|
|
if (fd < 0)
|
|
return fd;
|
|
#ifndef _WIN32
|
|
@@ -904,7 +904,7 @@ FcDirCacheWrite (FcCache *cache, FcConfi
|
|
if (!FcAtomicLock (atomic))
|
|
goto bail3;
|
|
|
|
- fd = open((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT | O_BINARY, 0666);
|
|
+ fd = open((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT | O_BINARY | O_CLOEXEC, 0666);
|
|
if (fd == -1)
|
|
goto bail4;
|
|
|