www-apps/cgit: build w/ -std=gnu17

These can be dropped w/ newer git but not going to test that right now.

Closes: https://bugs.gentoo.org/951555
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-03 05:57:35 +01:00
parent 8638417cb3
commit b3e6f910ef
4 changed files with 21 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{10..12} )
WEBAPP_MANUAL_SLOT="yes"
inherit lua-single python-single-r1 tmpfiles toolchain-funcs webapp
inherit flag-o-matic lua-single python-single-r1 tmpfiles toolchain-funcs webapp
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
@@ -61,6 +61,9 @@ src_configure() {
mv "${WORKDIR}"/git-"${GIT_V}" git || die
fi
# bug #951555
append-cflags -std=gnu17
echo "prefix = ${EPREFIX}/usr" >> cgit.conf || die "echo prefix failed"
echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf || die "echo libdir failed"
echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf || die "echo CGIT_SCRIPT_PATH failed"

View File

@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{10..13} )
WEBAPP_MANUAL_SLOT="yes"
inherit lua-single python-single-r1 tmpfiles toolchain-funcs webapp
inherit flag-o-matic lua-single python-single-r1 tmpfiles toolchain-funcs webapp
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
@@ -66,6 +66,9 @@ src_configure() {
mv "${WORKDIR}"/git-"${GIT_V}" git || die
fi
# bug #951555
append-cflags -std=gnu17
echo "prefix = ${EPREFIX}/usr" >> cgit.conf || die "echo prefix failed"
echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf || die "echo libdir failed"
echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf || die "echo CGIT_SCRIPT_PATH failed"

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{10..12} )
WEBAPP_MANUAL_SLOT="yes"
inherit lua-single python-single-r1 tmpfiles toolchain-funcs webapp git-r3
inherit flag-o-matic lua-single python-single-r1 tmpfiles toolchain-funcs webapp git-r3
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
@@ -68,6 +68,10 @@ src_configure() {
rmdir git || die
mv "${WORKDIR}"/git-"${GIT_V}" git || die
fi
# bug #951555
append-cflags -std=gnu17
echo "prefix = ${EPREFIX}/usr" >> cgit.conf || die "echo prefix failed"
echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf || die "echo libdir failed"
echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf || die "echo CGIT_SCRIPT_PATH failed"

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{10..12} )
WEBAPP_MANUAL_SLOT="yes"
inherit lua-single python-single-r1 tmpfiles toolchain-funcs webapp git-r3
inherit flag-o-matic lua-single python-single-r1 tmpfiles toolchain-funcs webapp git-r3
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
@@ -65,6 +65,10 @@ src_configure() {
rmdir git || die
mv "${WORKDIR}"/git-"${GIT_V}" git || die
fi
# bug #951555
append-cflags -std=gnu17
echo "prefix = ${EPREFIX}/usr" >> cgit.conf || die "echo prefix failed"
echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf || die "echo libdir failed"
echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf || die "echo CGIT_SCRIPT_PATH failed"