Skip to content

Package extraction error: chmod failing due to full file path being cut off #2279

Open
@RedcomOSS

Description

@RedcomOSS

Since upgrading to FreeBSD 13.3 (from 13.2) we have been encountering what appears to be a race condition. We have seen this mostly in poudriere builds but have also seen it in basic package installs. Every now and then, the extraction of a large dependency package fails to chmod part of the extraction due to part of the path to a file being cut off. The more CPUs configured to a system the more often this issue occurs. Using only a single CPU seems to eliminate the issue entirely.

Example:

[pkg.abcd.com] |   `-- Extracting texlive-texmf-20210325: .......
pkg-static: Fail to chmod /vf/public/fira/FiraSans-ThinItalic-tosf-sc-ly1.vf:Bad file descriptor
[pkg.abcd.com] |   `-- Extracting texlive-texmf-20210325... done

Failed to install the following 1 package(s): /packages/All/doxygen-1.9.5,2.pkg

In this case /vf/public/fira/FiraSans-ThinItalic-tosf-sc-ly1.vf should actually be /usr/local/share/texmf-dist/fonts/vf/public/fira/FiraSans-ThinItalic-tosf-sc-ly1.vf.

This issue is generally resolved by rerunning the build/install and as mentioned above is entirely prevented by reconfiguring the system down to just using a single CPU.

Upgrading the pkg version in use to 1.20.9 (from 1.19.2) did not help fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions