[gitea][armv7h] recent package version

Problems with packages? Post here, using [tags] of the package name.

[gitea][armv7h] recent package version

Postby tequa » Fri Aug 02, 2019 7:28 pm

Hello,

the gitea package seems to be a little behind the official archlinux version (armv7h: 1.7.6, archlinux.org: 1.8.3).
So I tried to just download the archlinux.org PKGBUILD etc. and build it locally and at some point it came down to this error:
$this->bbcode_second_pass_code('', '
code.gitea.io/gitea/modules/public
# code.gitea.io/gitea/modules/public
runtime: out of memory: cannot allocate 2260992-byte block (2889646080 in use)
fatal error: out of memory
')
followed by some stack trace and I was now wondering if this is the reason for armv7h (and others?) being stuck at 1.7.6?

If so: I tried around a little and came at least to some workaround: It seems the go compiler is quite memory hungry and changing it's garbage-collector settings let me build the package. To be sure I also adapted it to only running one process at a time - but not sure if necessary. This led to this build-section in the PKGBUILD:
$this->bbcode_second_pass_code('', '
build() {
export GOPATH="${srcdir}"/gopath
# only 1 process running
export GOFLAGS="-p=1"
# garbage-collector-tuning
export GOGC=50
cd gopath/src/code.gitea.io/gitea
make generate
EXTRA_GOFLAGS="-gcflags all=-trimpath=${GOPATH} -asmflags all=-trimpath=${GOPATH}" \
make GOFLAGS="-v" TAGS="bindata sqlite pam" build
}
')
(I added the GOFLAGS and GOGC lines).

I'm not used to go, so I'm not sure if this is the actual way to solve it or if there are better ways, but after some searching this was the best workaround I could come up with and maybe this helps somehow.

Does anybody know if this out-of-memory error is the reason for the repository package not being updated? And if so, what is the best way to solve this best? A modified PKGBUILD for archlinuxarm with this (or a similar) fix (via pull-request?)? Or if similar problems exist with other go based packages maybe some general environment settings or default settings in the go package?
tequa
 
Posts: 1
Joined: Fri Aug 02, 2019 5:39 pm

Return to Packages

Who is online

Users browsing this forum: No registered users and 15 guests