gentoo-ebuilds/www-nginx/ngx-vod/ngx-vod-1.33.ebuild
Zurab Kvachadze 3abcc25833
www-nginx/ngx-vod: fix unprototyped func declaration causing build errors on new gcc's
Before version 15, GCC had -std=gnu17 as the default. GCC 15 bumped the
default to -std=gnu23. One of the changes in C23 is the interpretation
of function declaration without parameters (unprototyped declaration).

In C17 and before, the unprototyped declaration specified no information
on the number and types of arguments. With GCC 15, the declaration of
the form
    int myfunc()
is treated the same as
    int myfunc(void)
i.e. the function takes no arguments.

This change broke compilation of the module which relied on older
interpretation. The broken function, having the unprototyped
declaration, actually takes one argument of type ngx_cycle_t *.

This commit corrects the function declaration and definition, explicitly
specifying the arguments.

Closes: https://bugs.gentoo.org/959586
Closes: https://bugs.gentoo.org/959690
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42954
Closes: https://github.com/gentoo/gentoo/pull/42954
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-10 23:39:43 +01:00

36 lines
778 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="nginx-vod-module"
NGINX_MOD_S="${WORKDIR}/${MY_PN}-${PV}"
inherit nginx-module
DESCRIPTION="NGINX-based MP4 Repackager"
HOMEPAGE="https://github.com/kaltura/nginx-vod-module"
SRC_URI="
https://github.com/kaltura/nginx-vod-module/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"
LICENSE="AGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
# Uses custom Python-based testing framework.
RESTRICT="test"
DEPEND="
dev-libs/openssl:=
dev-libs/libxml2
media-video/ffmpeg:=
sys-libs/zlib:=
virtual/libiconv
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-1.33-fix-clock-gettime-config-check.patch"
"${FILESDIR}/${PN}-1.33-use-prototyped-declaration.patch"
)