Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea 1.21 failing to build on musl-based distributions as of musl 1.2.4. #30459

Closed
mc680x0 opened this issue Apr 13, 2024 · 0 comments
Closed
Labels
Milestone

Comments

@mc680x0
Copy link

mc680x0 commented Apr 13, 2024

Description

Attempting to build Gitea 1.21 on a machine running musl 1.2.4 or 1.2.5 results in a failure in the go-sqlite3 module, with pread64 and pwrite64 undeclared.

Per mattn/go-sqlite3#1164 this issue has been resolved upstream as of go-sqlite3 version 1.14.19.

I have verified that using go get and go mod vendor to update to go-sqlite3 version 1.14.21 manually has resulted in a rock-solid gitea instance; a simple version bump would appear to be in order for this issue.

Gitea Version

1.21.5, 1.21.8, 1.21.10

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.43.2

Operating System

Linux, x86_64

How are you running Gitea?

Building Gitea from emerge on Gentoo, running on bare metal; a SandyBridge Optiplex.
Interrupting emerge to play with the Go modules was how I was able to troubleshoot and fix this.
Gitea is launched from and managed by OpenRC.

Database

SQLite

@lunny lunny added this to the 1.21.11 milestone Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants