[02/16] nss: Rearrange and sort Makefile variables
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
fail
|
Patch failed to apply
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
fail
|
Patch failed to apply
|
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
fail
|
Patch failed to apply
|
Commit Message
Rearrange lists of routines, tests, etc. into one-per-line in
nss/Makefile and sort them using scripts/sort-makefile-lines.py.
---
nss/Makefile | 55 +++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 41 insertions(+), 14 deletions(-)
Comments
On 2023-10-02 08:55, Arjun Shankar wrote:
> Rearrange lists of routines, tests, etc. into one-per-line in
> nss/Makefile and sort them using scripts/sort-makefile-lines.py.
> ---
This is a trivial, independent cleanup, please push. Oh, and apologies
for putting the hv2-canonname test in the wrong place :)
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
> nss/Makefile | 55 +++++++++++++++++++++++++++++++++++++++-------------
> 1 file changed, 41 insertions(+), 14 deletions(-)
>
> diff --git a/nss/Makefile b/nss/Makefile
> index 668ba34b18..32764b74c0 100644
> --- a/nss/Makefile
> +++ b/nss/Makefile
> @@ -22,23 +22,50 @@ subdir := nss
>
> include ../Makeconfig
>
> -headers := nss.h
> +headers := \
> + nss.h \
> + # headers
>
> # This is the trivial part which goes into libc itself.
> -routines = nsswitch getnssent getnssent_r digits_dots \
> - valid_field valid_list_field rewrite_field \
> - $(addsuffix -lookup,$(databases)) \
> - compat-lookup nss_hash nss_files_fopen \
> - nss_readline nss_parse_line_result \
> - nss_fgetent_r nss_module nss_action \
> - nss_action_parse nss_database nss_files_data \
> - nss_files_functions
> +routines = \
> + $(addsuffix -lookup,$(databases)) \
> + compat-lookup \
> + digits_dots \
> + getnssent \
> + getnssent_r \
> + nss_action \
> + nss_action_parse \
> + nss_database \
> + nss_fgetent_r \
> + nss_files_data \
> + nss_files_fopen \
> + nss_files_functions \
> + nss_hash \
> + nss_module \
> + nss_parse_line_result \
> + nss_readline \
> + nsswitch \
> + rewrite_field \
> + valid_field \
> + valid_list_field \
> + # routines
>
> # These are the databases that go through nss dispatch.
> # Caution: if you add a database here, you must add its real name
> # in databases.def, too.
> -databases = proto service hosts network grp pwd ethers \
> - spwd netgrp alias sgrp
> +databases = \
> + alias \
> + ethers \
> + grp \
> + hosts \
> + netgrp \
> + network \
> + proto \
> + pwd \
> + service \
> + sgrp \
> + spwd \
> + # databases
>
> ifneq (,$(filter sunrpc,$(subdirs)))
> databases += key rpc
> @@ -68,7 +95,7 @@ tests := \
> tst-nss-test4 \
> tst-nss-test5 \
> tst-nss-test_errno \
> -# tests
> + # tests
>
> xtests = bug-erange
>
> @@ -79,11 +106,11 @@ tests-container := \
> tst-nss-files-hosts-long \
> tst-nss-files-hosts-v4mapped \
> tst-nss-gai-actions \
> + tst-nss-gai-hv2-canonname \
> tst-nss-test3 \
> tst-reload1 \
> tst-reload2 \
> - tst-nss-gai-hv2-canonname \
> -# tests-container
> + # tests-container
>
> # Tests which need libdl
> ifeq (yes,$(build-shared))
@@ -22,23 +22,50 @@ subdir := nss
include ../Makeconfig
-headers := nss.h
+headers := \
+ nss.h \
+ # headers
# This is the trivial part which goes into libc itself.
-routines = nsswitch getnssent getnssent_r digits_dots \
- valid_field valid_list_field rewrite_field \
- $(addsuffix -lookup,$(databases)) \
- compat-lookup nss_hash nss_files_fopen \
- nss_readline nss_parse_line_result \
- nss_fgetent_r nss_module nss_action \
- nss_action_parse nss_database nss_files_data \
- nss_files_functions
+routines = \
+ $(addsuffix -lookup,$(databases)) \
+ compat-lookup \
+ digits_dots \
+ getnssent \
+ getnssent_r \
+ nss_action \
+ nss_action_parse \
+ nss_database \
+ nss_fgetent_r \
+ nss_files_data \
+ nss_files_fopen \
+ nss_files_functions \
+ nss_hash \
+ nss_module \
+ nss_parse_line_result \
+ nss_readline \
+ nsswitch \
+ rewrite_field \
+ valid_field \
+ valid_list_field \
+ # routines
# These are the databases that go through nss dispatch.
# Caution: if you add a database here, you must add its real name
# in databases.def, too.
-databases = proto service hosts network grp pwd ethers \
- spwd netgrp alias sgrp
+databases = \
+ alias \
+ ethers \
+ grp \
+ hosts \
+ netgrp \
+ network \
+ proto \
+ pwd \
+ service \
+ sgrp \
+ spwd \
+ # databases
ifneq (,$(filter sunrpc,$(subdirs)))
databases += key rpc
@@ -68,7 +95,7 @@ tests := \
tst-nss-test4 \
tst-nss-test5 \
tst-nss-test_errno \
-# tests
+ # tests
xtests = bug-erange
@@ -79,11 +106,11 @@ tests-container := \
tst-nss-files-hosts-long \
tst-nss-files-hosts-v4mapped \
tst-nss-gai-actions \
+ tst-nss-gai-hv2-canonname \
tst-nss-test3 \
tst-reload1 \
tst-reload2 \
- tst-nss-gai-hv2-canonname \
-# tests-container
+ # tests-container
# Tests which need libdl
ifeq (yes,$(build-shared))