[gnome-sdk-images] Fix fontconfig caches
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sdk-images] Fix fontconfig caches
- Date: Mon, 1 Jun 2015 14:26:47 +0000 (UTC)
commit b09899c49acbe95cb057115b41fb8d9cdf14eab3
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jun 1 15:58:59 2015 +0200
Fix fontconfig caches
After everything is installed we reset the mtime of the fontconfig dirs
to 0 and regenerate the caches. This is needed to make sure they are
used at runtime (when the mtime of an app checkout is always 0).
Makefile | 4 ++++
post.sh | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/Makefile b/Makefile
index 95bcebe..17c516a 100644
--- a/Makefile
+++ b/Makefile
@@ -161,6 +161,7 @@ rpm-dependencies.P: $(ALL_SPECS) makedeps.sh $(SDK_BASE_IMAGE)
gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz: $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(SDK_BASE_IMAGE)
./build.sh smart install -y $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
+ ./build.sh ./post.sh
rm -rf gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
tar --transform 's,^build/root/usr,files,S' -czf gnome-sdk.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf gnome-sdk-rpmdb.tar.gz build/var/lib/rpm --owner=root
@@ -177,6 +178,7 @@ gnome-debug.tar.gz gnome-debug-src.tar.gz: $(NOARCH)/gnome-debug-0.1-1.sdk.noarc
freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz: $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(SDK_BASE_IMAGE)
./build.sh smart install -y $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
+ ./build.sh ./post.sh
rm -rf freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
tar --transform 's,^build/root/usr,files,S' -czf freedesktop-sdk.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf freedesktop-sdk-rpmdb.tar.gz build/var/lib/rpm
--owner=root
@@ -213,6 +215,7 @@ freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz: freedesktop-platf
-echo building freedesktop-platform
./setup_root.sh $(PLATFORM_BASE_IMAGE)
./build.sh rpm -Uvh `cat freedesktop-platform-packages`
+ ./build.sh ./post.sh
tar --transform 's,^build/root/usr,files,S' -czf freedesktop-platform.tar.gz build/root/usr
--owner=root
tar --transform 's,^build/var,files,S' -czf freedesktop-platform-rpmdb.tar.gz build/var/lib/rpm
--owner=root
./clear_root.sh
@@ -227,6 +230,7 @@ gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz: gnome-platform-packages $(NOA
-echo building gnome-platform
./setup_root.sh $(PLATFORM_BASE_IMAGE)
./build.sh rpm -Uvh `cat gnome-platform-packages`
+ ./build.sh ./post.sh
tar --transform 's,^build/root/usr,files,S' -czf gnome-platform.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf gnome-platform-rpmdb.tar.gz build/var/lib/rpm --owner=root
./clear_root.sh
diff --git a/post.sh b/post.sh
new file mode 100755
index 0000000..891390d
--- /dev/null
+++ b/post.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+touch -d @0 /usr/share/fonts
+touch -d @0 /usr/share/fonts/*
+fc-cache -fs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]