From nobody Sun Jan 29 04:35:10 2023 X-Original-To: desktop@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P4JQ66h6Vz3cGxv for ; Sun, 29 Jan 2023 04:35:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P4JQ65G7Pz47MJ for ; Sun, 29 Jan 2023 04:35:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674966910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HrDNJo5C/LGSQn2DNlNi9oHEffShRy+be2KSvC3aKwA=; b=wfqxoCN7zUbHv+hPfUxzgbm8znO7FAoY+dAIf23AU09lRpk8rhA+Wqqli8VOBA98sWqEGD G7UlB/S9BziuJj9OShwPcW4pCP7W8qsdWsnTV+ZHGmWdautLPyDFwDJ9EXbe24drWdabVr cv0U85s0kC9eTRrtRBvZeH4IioBkyvewh2h05JZFDvextCmy962rV1OCyg3XXt8jixsODV qpUvFfhQKp59dnMVnLpYeJ1VsTp+EcMKQBwbCR0T5fSPPUBvh3G06jdZe2MrTHWH+qrQ65 UKd3kuwZgVWI8aaZwzeNaSleGgL0V/PTgp8rJ2rSAazsJGz04URjcrykWAho3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674966910; a=rsa-sha256; cv=none; b=ajQZ9s8U1nmOxAU3HG++OgwJcTANbN4XssPrsi2YWP4cxh2txIiJYVNISHBuMZQ7B4ztDt lLTLbMwAfGO4MA6iR6UrjBPRQximCu2fjVxA1lGCKUwF6kvSIXufxXerFfbGzMpiDfdG3f XBhCdrvJEsOkFkYwG9Q2ZAxUo78ggRtfJkeIXbHcl7XRhnCVMTBxMFnMlqeNBu3LtlLagE 6ZByuCafI9NKEYGVrUUdofSQq7VNMO811bqtc1gxIavGBfCJhIOijVd0e7DeSctTt8yMvN MP+KcOH7XKSG8SC1hDds3BEcvXU6ZrVTycG6LSFyn5rWat813/w5iQ61oiEhEw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P4JQ64CpYzGS3 for ; Sun, 29 Jan 2023 04:35:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30T4ZAX7069012 for ; Sun, 29 Jan 2023 04:35:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30T4ZAQK069011 for desktop@FreeBSD.org; Sun, 29 Jan 2023 04:35:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: [Bug 258372] x11-fonts/fontconfig: cannot install as user (into non-default prefix) Date: Sun, 29 Jan 2023 04:35:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258372 --- Comment #9 from John Hein --- (In reply to Tatsuki Makino from comment #8) > mv /var/db/fontconfig{,.orig} > fc-cache --force --system-only --verbose > . > . > It seems that /var/db/fontconfig is not hard-coded > . > . > Let's see, that means we don't need to create /var/db/fontconfig when we = install > fontconfig, do we? :) Tatsuki, this bug is all about how installing fontconfig without being root= can fail. If you do your 'mv /var/db/fontconfig{,.orig}' without your 'fc-cach= e', then do 'make INSTALL_AS_USER=3D1 LOCALBASE=3D... install', then you get th= e error. And INSTALL_AS_USER is all about doing builds without having to be root. /var/db/fontconfig is definitely hard-coded as the '@dir /var/db/fontconfig' line in pkg-plist. Yes, you could create /var/db/fontconfig ahead of time (either with mkdir o= r by running fc-cache). But if you don't, then the install will try to create it (due to the @dir entry). Assuming /var/db is owned by root (as it is by default), then you get the Permission denied failure as shown in comment 0. There are various options to work around that error. One of them is the op= tion you are talking about - namely to create /var/db/fontconfig ahead of time.= =20 That is not a fix for this particular INSTALL_AS_USER problem. It's a hack= .=20 You won't know about that failure until you try to do the install with INSTALL_AS_USER and hit the error. 'make install INSTALL_AS_USER=3D1 ...' = should work without having to do something else like creating /var/db/fontconfig beforehand. --=20 You are receiving this mail because: You are the assignee for the bug.=