Bug 258372 - x11-fonts/fontconfig: cannot install as user (into non-default prefix)
Summary: x11-fonts/fontconfig: cannot install as user (into non-default prefix)
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-08 15:53 UTC by Gerald Pfeifer
Modified: 2021-09-08 15:53 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (desktop)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer freebsd_committer 2021-09-08 15:53:11 UTC
x11-fonts/fontconfig/pkg-plist has the following entry

  @dir /var/db/fontconfig

This breaks installing into a non-default prefix as a regular user:

Installing fontconfig-2.13.94_1,1...
pkg: Fail to create /var/db/fontconfig:Permission denied
ldconfig: mkstemp(/var/run/ld-elf.so.hints.zLG4s8): Permission denied
ldconfig: mkstemp(/var/run/ld-elf32.so.hints.dOlnQp): Permission denied
Running fc-cache to build fontconfig cache...
/bin/sh: fc-cache: not found
*** Error code 1

When I remove that line things appear fine for my purposes (testing of
ports), though I am not saying this is the general fix.