sys-kernel/linux-headers: avoid ${D} in src_test()

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2021-04-02 11:04:33 +01:00
parent 897b8aed01
commit 40ca60304a
5 changed files with 5 additions and 40 deletions
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -48,8 +48,5 @@ src_test() {
-e '\<([us](8|16|32|64))\>' \
.
einfo "Missing linux/types.h include"
egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
emake ARCH=$(tc-arch-kernel) headers_check
}
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -39,19 +39,11 @@ src_install() {
}
src_test() {
# Make sure no uapi/ include paths are used by accident.
egrep -r \
-e '# *include.*["<]uapi/' \
"${D}" && die "#include uapi/xxx detected"
einfo "Possible unescaped attribute/type usage"
egrep -r \
-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
-e '\<([us](8|16|32|64))\>' \
.
einfo "Missing linux/types.h include"
egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
emake ARCH=$(tc-arch-kernel) headers_check
}
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
@@ -42,19 +42,11 @@ src_install() {
}
src_test() {
# Make sure no uapi/ include paths are used by accident.
egrep -r \
-e '# *include.*["<]uapi/' \
"${D}" && die "#include uapi/xxx detected"
einfo "Possible unescaped attribute/type usage"
egrep -r \
-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
-e '\<([us](8|16|32|64))\>' \
.
einfo "Missing linux/types.h include"
egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
emake ARCH=$(tc-arch-kernel) headers_check
}
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -39,19 +39,11 @@ src_install() {
}
src_test() {
# Make sure no uapi/ include paths are used by accident.
egrep -r \
-e '# *include.*["<]uapi/' \
"${D}" && die "#include uapi/xxx detected"
einfo "Possible unescaped attribute/type usage"
egrep -r \
-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
-e '\<([us](8|16|32|64))\>' \
.
einfo "Missing linux/types.h include"
egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
emake ARCH=$(tc-arch-kernel) headers_check
}
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -39,19 +39,11 @@ src_install() {
}
src_test() {
# Make sure no uapi/ include paths are used by accident.
egrep -r \
-e '# *include.*["<]uapi/' \
"${D}" && die "#include uapi/xxx detected"
einfo "Possible unescaped attribute/type usage"
egrep -r \
-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
-e '\<([us](8|16|32|64))\>' \
.
einfo "Missing linux/types.h include"
egrep -l -r -e '__[us](8|16|32|64)' "${ED}" | xargs grep -L linux/types.h
emake ARCH=$(tc-arch-kernel) headers_check
}