From nobody Wed Nov 02 14:34:32 2022 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 4N2TtK331Qz4hJDM for ; Wed, 2 Nov 2022 14:34:33 +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 4N2TtK0DJPz3QVH for ; Wed, 2 Nov 2022 14:34:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4N2TtJ6L2qz10X2 for ; Wed, 2 Nov 2022 14:34:32 +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 2A2EYWKn073799 for ; Wed, 2 Nov 2022 14:34:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A2EYWCJ073798 for desktop@FreeBSD.org; Wed, 2 Nov 2022 14:34:32 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: Wed, 02 Nov 2022 14:34:32 +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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667399673; 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=mCkMjsCCwdddeXqYdA5seRQI2+Ltq0NsW4IMxI4LPpk=; b=WxHzmBr1HuIUniDDn3mZm+tMn6HTYIDM5BxA/g+r84BmbjS+zUnBRBKPyVvVfeNdaEQ3yI 4KE1eL62MHs25sHl6mjFXcRlb/HP8JzZ/27YWUN8aTGZD0f4sW+YbHNsKA0i/xlqVl7mhl nPYa+7AS4ZJV2ZYPg2owWNtWS8yR2uOHapu0gMm5xzKa47w5xzDVkjgCZImCGkx9mitBbi k+l7uum6D+fsdyAaQFsuUx3b1f9hS6e1a57gR7rpx6ToVsD68Yjzf5C3V7ComFnBbj9rvD Igon9+nK/X5RF4BTlmRr0zox24Mi7FCRx+ppvhOkTTuyelqebNM8mZ5CpMg1tg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667399673; a=rsa-sha256; cv=none; b=k9k7sObIb9X3yVemeig90QjE62mYol1QT9296LMMDfj7O5ObYcpMmGzsx9xnFkOR5sAaa/ cqdVYbS2lxmORRw3+P7Mw1likjGsyDFB8jzoaz34addmU8urBwUg6muoTjfF0NgIjsT8Cj NCpJ7HRCWcmBI1trCHduUAwQ3tCxPWSi+zchUE18GbZlp6ZRyoKk8f5gOCqR72hpvQYJZk p+b4NeWGlhTTkfGebsmw8Uu52vDL8T84KIajXiZTEExpkEZAQV3Wzos5gqP6PtRmhNfl05 UmFlNt0JZH2+am5YknpoubarY/8tHU2fjW7Myb2KWas2HodiNNKtly9nV0rv/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258372 --- Comment #2 from John Hein --- I just tried 'make -C x11-fonts/fontconfig INSTALL_AS_USER=3D1 LOCALBASE=3D/usr/local.user PKG_DBDIR=3D/usr/local.user/var/db/pkg PORT_DBDIR=3D/usr/local.user/var/db/ports install' as a non-root user. Thi= s is with pkg-1.18.4. I did not get 'Fail to create /var/db/fontconfig:Permissi= on denied'. 'deinstall' does produce 'pkg-static: unlinkat(var/db/fontconfig): Permissi= on denied', but that is not fatal - it does remove the installed package and d= oes return a exit code of 0 (indicating alleged success). That might be consid= ered a bug in pkg. It seems pkg_delete.c does not treat EPERM as an error. But= in that case (not treating a failed directory removal as an error) could be reported as a separate bug for pkg perhaps. If 'pkg delete' DID fail when doing deinstall with INSTALL_AS_USER=3D1 (especially if it failed to fully = remove the package), then this current bug could become 'cannot deinstall as user'= .=20 That is a different bug than this one, however. I did notice that src/fccfg.c still points into a hard-coded /usr/local eve= n if you define LOCALBASE (and/or PREFIX) to something that is not /usr/local. = But that is a separate bug - it should replace /usr/local with %%LOCALBASE%%, a= nd for that matter, files/fontconfig.ucl.in should use %%LOCALBASE%% instead of %%PREFIX%% for the 'path' that looks in share/fonts and etc/fonts/conf.d. So, it seems to me that the original problem reported here is not a problem now, or at least I could not reproduce the failure. I don't know what chan= ged between now and when this problem was reported. In Sep 2021 (the latest pkg was 1.17.1 then), I think pkg did not treat @dir entries any differently th= an it does now - i.e., @dir is only used when the package is deleted, per pkg-create(8). Gerald, can you confirm whether or not your failure can be reproduced now? --=20 You are receiving this mail because: You are the assignee for the bug.=