Codium PKGBUILD for 1.85.2.24019 needs 2 changes in order to build
Building the current PKGBUILD for codium (1.85.2.24019) fails for two reasons:
- wrong checksum
- "too many open files error"
Regarding 1: according to AUR vscodium the checksums should be:
sha256sums=('63eccd0977b9dc783a11ff401940f48bbabd0d098b9563b7ef26402495dc9b88'
'34da81ee4fd8b663237bfc946b4c95b8368b9c45e3b1404c3c3f86fbc3565e1c'
'2cc43e5d6feb3fe198403df4aec9dc94168bf769bfe06c330134b891adc39cb9')
Regarding 2: the file limit 4096 is not sufficient.
Building the package locally using the next size 8192 by increasing the hard limit first:
sudo sh -c "ulimit -H -n 8192 && su $LOGNAME"
and then changing the soft limit for the current shell:
ulimit -n 8192
works well.
This line inside the PKGBUILD needs to be commented though:
build() {
#ulimit -n 4094
...
}
before running makepkg -s
, otherwise it would not accept the increased values.
Possibly a different shell process that does not respect the current hard limits.
Regards