Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RedcomOSS opened this issue May 13, 2024 · 0 comments

Comments

@RedcomOSS
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant