mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
sys-process/lsof: Sync with Gentoo
It's from Gentoo commit 4f3686c867b7c7220237cca087d4be88e54d872b.
This commit is contained in:
parent
df3961ad6a
commit
bb5d537d29
@ -0,0 +1,15 @@
|
||||
https://bugs.gentoo.org/919253
|
||||
https://github.com/lsof-org/lsof/issues/305
|
||||
|
||||
Ignore HIP or CUDA versions in clang, when checking for compiler version
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -410,7 +410,7 @@ AC_CONFIG_FILES([Makefile])
|
||||
|
||||
# Pass build configurations to version.h.in
|
||||
AC_SUBST(cc, $CC)
|
||||
-AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'))
|
||||
+AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p;q'))
|
||||
AC_SUBST(ccflags, $CFLAGS)
|
||||
AC_SUBST(ldflags, "$LDFLAGS$LIBS")
|
||||
# Reproducible build
|
||||
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
MY_P="${P/-/_}"
|
||||
DESCRIPTION="Lists open files for running Unix processes"
|
||||
@ -30,8 +30,16 @@ RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-common-include-strftime.patch
|
||||
"${FILESDIR}"/${PN}-4.98.0-fix-clang-version-parser.patch
|
||||
)
|
||||
|
||||
# TODO: drop this block, "inherit autotools" and clang-version-parser patch after 4.99.3
|
||||
# https://github.com/lsof-org/lsof/pull/306
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# TODO: drop after 4.98.0: https://github.com/lsof-org/lsof/commit/4fbe0b78f63ce115f25cf7a49756745e3bf47fea
|
||||
export ac_cv_header_selinux_selinux_h=$(usex selinux)
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
MY_P="${P/-/_}"
|
||||
DESCRIPTION="Lists open files for running Unix processes"
|
||||
HOMEPAGE="https://github.com/lsof-org/lsof"
|
||||
@ -26,6 +28,17 @@ BDEPEND="
|
||||
# Needs fixing first for sandbox
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.98.0-fix-clang-version-parser.patch
|
||||
)
|
||||
|
||||
# TODO: drop this block, "inherit autotools" and clang-version-parser patch after 4.99.3
|
||||
# https://github.com/lsof-org/lsof/pull/306
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with rpc libtirpc)
|
||||
@ -39,6 +52,11 @@ src_compile() {
|
||||
emake DEBUG="" all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
einfo "Note: to use lsof on Solaris you need read permissions on"
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
MY_P="${P/-/_}"
|
||||
DESCRIPTION="Lists open files for running Unix processes"
|
||||
HOMEPAGE="https://github.com/lsof-org/lsof"
|
||||
@ -26,6 +28,17 @@ BDEPEND="
|
||||
# Needs fixing first for sandbox
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.98.0-fix-clang-version-parser.patch
|
||||
)
|
||||
|
||||
# TODO: drop this block, "inherit autotools" and clang-version-parser patch after 4.99.3
|
||||
# https://github.com/lsof-org/lsof/pull/306
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with rpc libtirpc)
|
||||
@ -39,6 +52,11 @@ src_compile() {
|
||||
emake DEBUG="" all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
einfo "Note: to use lsof on Solaris you need read permissions on"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user