<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Adding a --sysroot like option to fc-cache"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59456">59456</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>fontconfig-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Adding a --sysroot like option to fc-cache
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>freedesktop@behdad.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lpalcu@yahoo.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>fc-cache
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>fontconfig
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Where working on activating read-only rootfs support in our project (Yocto
Project to be exact) and we aim to have all postinstall scriptlets run on host,
instead of target. However, packages that provide fonts need to run fc-cache in
the postinstall stage. And, even we can get around the architecture-dependent
"problem" by running fc-cache inside qemu user emulator, and change the
fonts.conf file to contain paths pointing to the target rootfs on host, the
cache would contain the entire host path. This is not acceptable when deploying
the image on target...

So, in this case, a --sysroot like option to fc-cache would be of great help.
We could feed it to fc-cache and this path would be prefixed to all paths in
fonts.conf so that the fonts scan can take place but have the final cache
generated without this prefix.

If we implement this feature, would it be accepted?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>