From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 12 03:32:42 2014 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8530A7A for ; Wed, 12 Nov 2014 03:32:42 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6F7CC70 for ; Wed, 12 Nov 2014 03:32:42 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAC3WgFh023795 for ; Wed, 12 Nov 2014 03:32:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 194957] New: x11-fonts/linux-{c6,f10}-fontconfig: linux- apps pollute user cache with system fonts on amd64 Date: Wed, 12 Nov 2014 03:32:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Infrastructure X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@vfemail.net X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2014 03:32:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194957 Bug ID: 194957 Summary: x11-fonts/linux-{c6,f10}-fontconfig: linux- apps pollute user cache with system fonts on amd64 Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Infrastructure Assignee: emulation@FreeBSD.org Reporter: jbeich@vfemail.net CC: x11@FreeBSD.org Created attachment 149304 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149304&action=edit incomplete fix According fonts-conf(5) fontconfig uses cache in the form of -.cache-. And fc-cache(1) explicitly notes that for every architecture a separate run is required. However, as x11-fonts/linux-*-fontconfig tries to use native fontconfig it completely ignores/predates architecture distinction in cache filenames. Steps to reproduce: 1. install www/linux-firefox (or any port using linux-*-fontconfig) 2. install x11-fonts/noto (or any port invoking fc-cache) 3. start linux-firefox then quit it 4. notice ~/.cache/fontconfig or ~/.fontconfig now has files with the same hash as /var/db/fontconfig but for different architecture Those directories may contain files: *-x86.cache-2 (linux-f10- i386) *-le32d4.cache-3 (linux-c6- i386) *-le64.cache-4 (native amd64) In some cases ~/.cache expansion may be broken and `fontconfig' directory would appear directly under $HOME. x11@ is CC'd in case multilib infra ever materializes and they (not gnome@) own Keywords/fc*ucl, so may help un-hardcode /compat/linux from the patch. -- You are receiving this mail because: You are the assignee for the bug.