Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 727154
Collapse All | Expand All

(-)a/common/Make.rules (-2 / +2 lines)
Lines 81-87 pod_clean: Link Here
81
# =====================
81
# =====================
82
82
83
# emits defined capabilities in a simple list, e.g. "CAP_NAME CAP_NAME2"
83
# emits defined capabilities in a simple list, e.g. "CAP_NAME CAP_NAME2"
84
CAPABILITIES=$(shell echo "\#include <linux/capability.h>" | cpp -dM | LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | LC_ALL=C sort)
84
CAPABILITIES=$(shell echo "#include <linux/capability.h>" | cpp -dM | LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | LC_ALL=C sort)
85
85
86
.PHONY: list_capabilities
86
.PHONY: list_capabilities
87
list_capabilities: /usr/include/linux/capability.h
87
list_capabilities: /usr/include/linux/capability.h
Lines 102-108 FILTER_FAMILIES=PF_UNIX Link Here
102
__FILTER=$(shell echo $(strip $(FILTER_FAMILIES)) | sed -e 's/ /\\\|/g')
102
__FILTER=$(shell echo $(strip $(FILTER_FAMILIES)) | sed -e 's/ /\\\|/g')
103
103
104
# emits the AF names in a "AF_NAME NUMBER," pattern
104
# emits the AF names in a "AF_NAME NUMBER," pattern
105
AF_NAMES=$(shell echo "\#include <sys/socket.h>" | cpp -dM | LC_ALL=C sed -n -e '/$(__FILTER)/d' -e 's/PF_LOCAL/PF_UNIX/' -e 's/^\#define[ \t]\+PF_\([A-Z0-9_]\+\)[ \t]\+\([0-9]\+\).*$$/AF_\1 \2,/p' | sort -n -k2)
105
AF_NAMES=$(shell echo "#include <sys/socket.h>" | cpp -dM | LC_ALL=C sed -n -e '/$(__FILTER)/d' -e 's/PF_LOCAL/PF_UNIX/' -e 's/^#define[ \t]\+PF_\([A-Z0-9_]\+\)[ \t]\+\([0-9]\+\).*$$/AF_\1 \2,/p' | sort -n -k2)
106
106
107
.PHONY: list_af_names
107
.PHONY: list_af_names
108
list_af_names:
108
list_af_names:

Return to bug 727154