pkg icon indicating copy to clipboard operation
pkg copied to clipboard

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

Open RedcomOSS opened this issue 1 year ago • 0 comments

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.

RedcomOSS avatar May 13 '24 13:05 RedcomOSS