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

net-irc/soju: pass -D_LARGEFILE64_SOURCE for musl-1.2.4 #33863

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 9 additions & 6 deletions net-irc/soju/soju-0.6.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,22 @@ RDEPEND="
DEPEND="${RDEPEND}"

src_compile() {
# musl removed legacy LFS64 interfaces in version 1.2.4
# temporarily reenabled using _LARGEFILE64_SOURCE until
# this is resolved upstream
# https://github.com/mattn/go-sqlite3/issues/1164
append-cflags "-D_LARGEFILE64_SOURCE"

# musl removed legacy LFS64 interfaces in version 1.2.4 temporarily
# reenabled using _LARGEFILE64_SOURCE until this is resolved
# upstream https://github.com/mattn/go-sqlite3/issues/1164
CGO_CFLAGS="${CGO_CFLAGS}"
if use sqlite; then
GOFLAGS+=" -tags=libsqlite3"
CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
elif use moderncsqlite; then
GOFLAGS+=" -tags=moderncsqlite"
CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
else
GOFLAGS+=" -tags=nosqlite"
fi
# Only way to pass CFLAGS to CGO at the
# moment. https://github.com/gentoo/gentoo/pull/33539/
export CGO_CFLAGS
use pam && GOFLAGS+=" -tags=pam"

ego build ${GOFLAGS} ./cmd/soju
Expand Down