From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eDGiLG9PwV4YWgAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 14:51:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QC1bKG9PwV64CwAAbx9fmQ (envelope-from ) for ; Sun, 17 May 2020 14:51:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 81C7D940429 for ; Sun, 17 May 2020 14:51:26 +0000 (UTC) Received: from localhost ([::1]:39058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaKdR-0006DC-8L for larch@yhetil.org; Sun, 17 May 2020 10:51:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKcO-0005bE-7B for guix-devel@gnu.org; Sun, 17 May 2020 10:50:20 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:43259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKcM-0006n2-BU for guix-devel@gnu.org; Sun, 17 May 2020 10:50:19 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 821A75BB5 for ; Sun, 17 May 2020 10:50:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 17 May 2020 10:50:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=Z8V3PPOPpisRez63HhR91elGWl zn1BFYSRwrcr2Znsw=; b=wc8yS48wYWI3ryWfa/k4Z/kXrJ8hPeCDcgFslBOl1N UPNFsMF3M/FI0iJz3kF4hOvqHMiljdALJ5ioY+xQ45XalV/tKcrOFn4YzXddfVMJ SGWdCI76HSU2Bbyp+2ez9K0tGC2MvwAer9AeJbkzOEyf0m1FvmuQUz6zx0MoYdZY 5UpLa+AGuV2esQGcK+/uL7Q4Hl3BESo3b2X8nP78877V6JW1hubgJQ2OOkuklZIb HUgOch2ALZm9pfdsI6/hV4zKR2rFgbXqH+OTsyh0yijKh/oVPTs78y0qGtBe4dit yntJ3NRbhuIUV9kYYIqfrx9BCNJsibMvml0c4bPnoDog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Z8V3PPOPpisRez63H hR91elGWlzn1BFYSRwrcr2Znsw=; b=sGkgaNt9fLD93b9F9QjYfcDZFXLVljAJ1 118r1YiE2CyK7NYP/6lZUr9BbSDWRm1K6MALmQHYmsuQ5eP97S9qP1Cev5stXKbG Z9NfFDRDzP264Gqx4JvtrGKnFi/yoD9bTkGNV8dnBcMOs30cz3sIZcVDjVW7x8xi MCzrLGqMGZLcZ1Ve/KhEGrBIxsXGJbtkoMuzfiTS2w1Ij1LAu5KPyxOj18KK731o GH1Unc23IuTKnZThB3FuygpAIcy9s24V8faur6+wDFFXS1UgirspXwk9VOfiMe3H CHfHWcYVAM3bbjAeEYU3LkIzFyYDyWLrLgA6HuI1EOAb/DdrnNzKA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtfedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhm rghilhdrtghomheqnecuggftrfgrthhtvghrnhepvdduleduveefteduuefgledtleejhe fhleegtdekhfegtdeuudefheeffffhhedtnecuffhomhgrihhnpehgnhhurdhorhhgpdhf rhgvvgguvghskhhtohhprdhorhhgnecukfhppeekgedrvddtvddrieekrdejheenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvges fhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F75830663D2 for ; Sun, 17 May 2020 10:50:14 -0400 (EDT) From: Marius Bakke To: guix-devel@gnu.org Subject: [PATCH] gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts. Date: Sun, 17 May 2020 16:50:12 +0200 Message-Id: <20200517145012.21532-1-mbakke@fastmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.24; envelope-from=mbakke@fastmail.com; helo=wout1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 09:17:56 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm2 header.b=wc8yS48w; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=sGkgaNt9; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 3.29 X-TUID: KUAZgUU2gUjY This fixes and . Reported by Pierre Neidhardt, W Knight, and others. * gnu/packages/fontutils.scm (fontconfig)[replacement]: New field. (fontconfig/font-dejavu): New variable. --- Guix, This is a hack to make (some) fonts working when users don't have fonts specified in their system configuration, and (crucially) places where the fontconfig cache may be unavailable such as 'guix pack's. I'm not sure whether font-dejavu is a good replacement here. Another approach could be to convert gs-fonts to TrueType or OpenType format. Thoughts? I don't know much about fonts and would appreciate feedback. --- gnu/packages/fontutils.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index e552ece50b..27c84d5814 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages autotools) + #:use-module (gnu packages fonts) #:use-module (gnu packages gettext) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) @@ -292,6 +293,12 @@ fonts to/from the WOFF2 format.") (define-public fontconfig (package (name "fontconfig") + + ;; This replacement is not security-related, but works around the fact + ;; that gs-fonts are not recognized by Pango, causing many applications + ;; to fail to find fonts otherwise. + (replacement fontconfig/font-dejavu) + (version "2.13.1") (source (origin (method url-fetch) @@ -348,6 +355,13 @@ high quality, anti-aliased and subpixel rendered text on a display.") "See COPYING in the distribution.")) (home-page "https://www.freedesktop.org/wiki/Software/fontconfig"))) +(define fontconfig/font-dejavu + (package + (inherit fontconfig) + (inputs + ;; XXX: Reuse the name to avoid having to override the configure flags. + `(("gs-fonts" ,font-dejavu))))) + (define-public t1lib (package (name "t1lib") -- 2.26.2