summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Persson Forsberg <cat@catcream.org>2023-11-17 06:48:28 +0100
committerSam James <sam@gentoo.org>2023-11-17 12:06:13 +0000
commit5f0751d20026400268c4126f49634d28798df203 (patch)
tree3785b714e3f38ad82c3dc90d044d99ac6ee964e3 /net-irc
parentdev-libs/libxml2: add 2.11.6 (diff)
downloadgentoo-5f0751d20026400268c4126f49634d28798df203.tar.gz
gentoo-5f0751d20026400268c4126f49634d28798df203.tar.bz2
gentoo-5f0751d20026400268c4126f49634d28798df203.zip
net-irc/soju: pass -D_LARGEFILE64_SOURCE for musl-1.2.4
[sam: The macro is not ideal at all but patching Go isn't exactly ideal itself. Besides, this was arleady in the ebuild, but ignored b/c Go doesn't yet in Gentoo respect CFLAGS et. al, although should soon.] See-also: https://github.com/mattn/go-sqlite3/issues/1164 Closes: https://bugs.gentoo.org/912311 Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Closes: https://github.com/gentoo/gentoo/pull/33863 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/soju/soju-0.6.2.ebuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/net-irc/soju/soju-0.6.2.ebuild b/net-irc/soju/soju-0.6.2.ebuild
index c46ca0fef568..2768e43d3193 100644
--- a/net-irc/soju/soju-0.6.2.ebuild
+++ b/net-irc/soju/soju-0.6.2.ebuild
@@ -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