Artix Linux Forum

Artix Linux => Package management => Topic started by: sbub on 21 January 2024, 17:21:02

Title: Codium PKGBUILD for 1.85.2.24019 needs 2 changes in order to build
Post by: sbub on 21 January 2024, 17:21:02
Building the current PKGBUILD for codium (https://gitea.artixlinux.org/packages/vscodium/src/branch/master/PKGBUILD)  (1.85.2.24019) fails for two reasons:


Regarding 1: according to AUR vscodium (https://aur.archlinux.org/packages/vscodium) the checksums should be:

Code: [Select]
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:

Code: [Select]
sudo sh -c "ulimit -H -n 8192 && su $LOGNAME"

and then changing the soft limit for the current shell:

Code: [Select]
ulimit -n 8192

works well.

This line inside the PKGBUILD needs to be commented though:

Code: [Select]
build() {

    #ulimit -n 4094
...
}

before running
Code: [Select]
makepkg -s
, otherwise it would not accept the increased values.
Possibly a different shell process that does not respect the current hard limits.

Regards