mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user