mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] fontconfig: untangle from xorg-fonts
@ 2019-02-20 15:07 Baeuerle, Florian
  0 siblings, 0 replies; only message in thread
From: Baeuerle, Florian @ 2019-02-20 15:07 UTC (permalink / raw)
  To: ptxdist

The rc-once fc-cache drop-in used to be installed via the xorg-fonts
package, which can be undesirable when using collections in combination
with image packages. Untangle the packages by installing the rc-once
drop-in via the fontconfig package.

Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
 rules/fontconfig.in                                | 4 +++-
 rules/fontconfig.make                              | 2 ++
 rules/{xorg-fonts.postinst => fontconfig.postinst} | 0
 rules/graphics_and_multimedia.in                   | 6 ------
 rules/xorg-fonts.make                              | 3 ---
 5 files changed, 5 insertions(+), 10 deletions(-)
 rename rules/{xorg-fonts.postinst => fontconfig.postinst} (100%)

diff --git a/rules/fontconfig.in b/rules/fontconfig.in
index ba5dee42e..b39a9b72a 100644
--- a/rules/fontconfig.in
+++ b/rules/fontconfig.in
@@ -23,7 +23,9 @@ menuconfig FONTCONFIG
 if FONTCONFIG
 
 config FONTCONFIG_UTILS
-	bool "install utilities for Fontconfig     "
+	bool
+	prompt "install utilities for Fontconfig     "
+	select RC_ONCE		if  RUNTIME
 	help
 	  The fontconfig utilities package contains fc-list,
 	  fc-match, and fc-cache.
diff --git a/rules/fontconfig.make b/rules/fontconfig.make
index 4fa04440b..3bc10dc45 100644
--- a/rules/fontconfig.make
+++ b/rules/fontconfig.make
@@ -80,6 +80,8 @@ ifdef PTXCONF_FONTCONFIG_UTILS
 
 	@$(call install_copy, fontconfig, 0, 0, 0755, -, \
 		/usr/bin/fc-match)
+
+	@$(call install_alternative, fontconfig, 0, 0, 0755, /etc/rc.once.d/fc-cache)
 endif
 
 	@$(call install_finish, fontconfig)
diff --git a/rules/xorg-fonts.postinst b/rules/fontconfig.postinst
similarity index 100%
rename from rules/xorg-fonts.postinst
rename to rules/fontconfig.postinst
diff --git a/rules/graphics_and_multimedia.in b/rules/graphics_and_multimedia.in
index 25fb44a79..d5de2f6d0 100644
--- a/rules/graphics_and_multimedia.in
+++ b/rules/graphics_and_multimedia.in
@@ -20,12 +20,6 @@ config XORG_FONTS
 	select HOST_XORG_APP_MKFONTSCALE
 	select HOST_XORG_APP_BDFTOPCF
 	select HOST_XORG_FONT_UTIL
-	select RC_ONCE			if XORG_FONTS_FC_CACHE && RUNTIME
-
-config XORG_FONTS_FC_CACHE
-	default FONTCONFIG
-	select FONTCONFIG_UTILS
-	tristate
 
 config XORG_FONTS_QT4_LINKS
 	depends on QT4_PLATFORM_EMBEDDED
diff --git a/rules/xorg-fonts.make b/rules/xorg-fonts.make
index 99d82a341..e0f06ee29 100644
--- a/rules/xorg-fonts.make
+++ b/rules/xorg-fonts.make
@@ -78,9 +78,6 @@ $(STATEDIR)/xorg-fonts.targetinstall.post:
 			$(XORG_FONTS_DIR_INSTALL)/$$file, \
 			$(XORG_FONTDIR)/$$file, n); \
 	done
-ifdef PTXCONF_XORG_FONTS_FC_CACHE
-	@$(call install_alternative, xorg-fonts, 0, 0, 0755, /etc/rc.once.d/fc-cache)
-endif
 ifdef PTXCONF_XORG_FONTS_QT4_LINKS
 	@cd $(XORG_FONTS_DIR_INSTALL) && \
 	find . -type f | while read file; do \
-- 
2.20.1

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-20 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-20 15:07 [ptxdist] [PATCH] fontconfig: untangle from xorg-fonts Baeuerle, Florian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox