Build fails with segmentation fault at package() stage
Error:
cp -a "$_path_src"/{icons,lang,themes} "$pkgdir/usr/share/$_pkgname/"
Segmentation fault (core dumped)
Root cause:
Bug in fakeroot + cp -a (preserving attributes). The same command works fine outside fakeroot.
Workaround:
In PKGBUILD, replace cp -a with cp -r (line ~154 in package() section).
Change this:
cp -a "$_path_src"/{icons,lang,themes} "$pkgdir/usr/share/$_pkgname/"
To this:
cp -r "$_path_src"/{icons,lang,themes} "$pkgdir/usr/share/$_pkgname/"
After this change, the package builds successfully.
Tested on:
* Manjaro Linux (fully updated as of 2026-05-21)
* fakeroot 1.38-1
* coreutils 9.11
Consider reporting this issue to fakeroot (GitLab) with the steps above.
Pinned Comments
xiota commented on 2024-06-01 17:45 (UTC) (edited on 2024-10-26 16:46 (UTC) by xiota)
This is not a split package to avoid taking 3x as long to build. Change the
_widgetsvariable to use a different widgets set.Viable options are
gtk2,qt5, andqt6. At this time, gtk3 does not work.