mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 22:45:55 +03:00
[GH-ISSUE #947] internal/database/database.go:59:10: undefined: OpenSQLiteDatabase #421
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#421
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lifepillar on GitHub (Jun 29, 2024).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/947
Data
Describe the bug / actual behavior
Trying to build Shiori from source results in:
Expected behavior
The build should succeed.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/go-shiori/shiori.gitgit checkout v1.7.0go buildNotes
Likely not a bug; rather, I'm missing something in the build process.
@lifepillar commented on GitHub (Jun 29, 2024):
The culprit is
02247b215b. I've got around the error by reinstatingOpenSQLiteDatabase()ininternal/database/sqlite.go. This seems a FreeBSD-specific problem.@fmartingr commented on GitHub (Jun 29, 2024):
OpenBSD builds were broken so we removed the unimportant CGO dependencies and isolated the SQLite library into it's own build under
internal/database/sqlite_openbsd.go. Unsure what's the problem could be with freebsd, maybe just adding the build flag to the same file to use it under freebsd is enough?https://github.com/go-shiori/shiori/blob/master/internal/database/sqlite_openbsd.go#L1-L2
If FreeBSD works with nonCGO we can add it into the noncgo build flags:
https://github.com/go-shiori/shiori/blob/master/internal/database/sqlite_noncgo.go#L1-L2
@lifepillar commented on GitHub (Jun 30, 2024):
I can confirm that this way Shiori builds.
@fmartingr commented on GitHub (Jun 30, 2024):
Would you be open to submit a PR with those changes?