mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Baeuerle, Florian" <Florian.Baeuerle@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH] fontconfig: untangle from xorg-fonts
Date: Wed, 20 Feb 2019 15:07:53 +0000	[thread overview]
Message-ID: <20190220150738.31151-1-florian.baeuerle@allegion.com> (raw)

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

                 reply	other threads:[~2019-02-20 15:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190220150738.31151-1-florian.baeuerle@allegion.com \
    --to=florian.baeuerle@allegion.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox