mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-containers/crun: fix building on musl
The reason is the same as in commit a4aa03f192,
which had been fixed upstream in https://github.com/containers/crun/pull/1887.
However, since we cannot provide a single patch for all the thress versions
in the tree, this is fixed by using sed to remove error.h from AC_CHECK_HEADERS
and append a new line with AC_CHECK_FUNC included.
Closes: https://bugs.gentoo.org/956287
Closes: https://bugs.gentoo.org/963641
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44377
Closes: https://github.com/gentoo/gentoo/pull/44377
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit libtool python-any-r1
|
||||
inherit autotools libtool python-any-r1
|
||||
|
||||
DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
|
||||
HOMEPAGE="https://github.com/containers/crun"
|
||||
@@ -40,6 +40,15 @@ BDEPEND="
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
|
||||
# https://github.com/containers/crun/pull/1887
|
||||
sed -i -E '/AC_CHECK_HEADERS\(\[error.h/{
|
||||
s/error\.h[[:space:]]*//g
|
||||
a\
|
||||
AC_CHECK_HEADER([error.h], [AC_CHECK_FUNC([error], AC_DEFINE([HAVE_ERROR_H], [1], [Define if error.h is usable]))])
|
||||
}' configure.ac || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit libtool python-any-r1
|
||||
inherit autotools libtool python-any-r1
|
||||
|
||||
DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
|
||||
HOMEPAGE="https://github.com/containers/crun"
|
||||
@@ -40,6 +40,15 @@ BDEPEND="
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
|
||||
# https://github.com/containers/crun/pull/1887
|
||||
sed -i -E '/AC_CHECK_HEADERS\(\[error.h/{
|
||||
s/error\.h[[:space:]]*//g
|
||||
a\
|
||||
AC_CHECK_HEADER([error.h], [AC_CHECK_FUNC([error], AC_DEFINE([HAVE_ERROR_H], [1], [Define if error.h is usable]))])
|
||||
}' configure.ac || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit libtool python-any-r1
|
||||
inherit autotools libtool python-any-r1
|
||||
|
||||
DESCRIPTION="Fast and low-memory footprint OCI Container Runtime fully written in C"
|
||||
HOMEPAGE="https://github.com/containers/crun"
|
||||
@@ -42,6 +42,15 @@ BDEPEND="
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
|
||||
# https://github.com/containers/crun/pull/1887
|
||||
sed -i -E '/AC_CHECK_HEADERS\(\[error.h/{
|
||||
s/error\.h[[:space:]]*//g
|
||||
a\
|
||||
AC_CHECK_HEADER([error.h], [AC_CHECK_FUNC([error], AC_DEFINE([HAVE_ERROR_H], [1], [Define if error.h is usable]))])
|
||||
}' configure.ac || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
Reference in New Issue
Block a user