All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] Makefile: Remove IDcheck.sh
@ 2019-04-08 15:21 Cyril Hrubis
  2019-04-08 16:06 ` Enji Cooper
  2019-04-12 13:58 ` Petr Vorel
  0 siblings, 2 replies; 4+ messages in thread
From: Cyril Hrubis @ 2019-04-08 15:21 UTC (permalink / raw)
  To: ltp

There is no point in running the IDcheck on 'make install' as it's
completely pointless to print ignored errors on installation which is
only confusing users.

Also the same script is even executed as a part of runltp script which
is more appropriate place for it.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 Makefile | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/Makefile b/Makefile
index 170c2da20..c46d050ce 100644
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,6 @@
 # Ngie Cooper, July 2009
 #
 
-# Force IDcheck.sh to fix any issues found with $(DESTDIR)/etc/group and
-# $(DESTDIR)/etc/passwd automatically when after running the top-level
-# install target.
-CREATE_ENTRIES		?= 0
-
 top_srcdir		?= $(CURDIR)
 
 include $(top_srcdir)/include/mk/env_pre.mk
@@ -42,9 +37,6 @@ vpath %.in		$(top_srcdir)/include
 vpath %.m4		$(top_srcdir)/m4
 vpath %.mk		$(top_srcdir)/mk:$(top_srcdir)/mk/include
 
-# Skip running IDcheck.sh at the end of install?
-SKIP_IDCHECK		?= 0
-
 # User wants uclinux binaries?
 UCLINUX			?= 0
 export UCLINUX
@@ -202,17 +194,6 @@ $(INSTALL_TARGETS): $(INSTALL_DIR) $(DESTDIR)/$(bindir)
 
 ## Install
 install: $(INSTALL_TARGETS)
-ifeq ($(SKIP_IDCHECK),0)
-	-@CREATE_ENTRIES=$(CREATE_ENTRIES) \
-	 DESTDIR="$(DESTDIR)" \
-	 "$(top_srcdir)/IDcheck.sh"
-else
-	@echo "*******************************************************"
-	@echo "** Will not run IDcheck.sh (SKIP_IDCHECK set to 1).  **"
-	@echo "*******************************************************"
-endif
-
-## Misc targets.
 
 ## Help
 .PHONY: help
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Makefile: Remove IDcheck.sh
  2019-04-08 15:21 [LTP] [PATCH] Makefile: Remove IDcheck.sh Cyril Hrubis
@ 2019-04-08 16:06 ` Enji Cooper
  2019-04-09 12:38   ` Cyril Hrubis
  2019-04-12 13:58 ` Petr Vorel
  1 sibling, 1 reply; 4+ messages in thread
From: Enji Cooper @ 2019-04-08 16:06 UTC (permalink / raw)
  To: ltp


> On Apr 8, 2019, at 08:21, Cyril Hrubis <chrubis@suse.cz> wrote:
> 
> There is no point in running the IDcheck on 'make install' as it's
> completely pointless to print ignored errors on installation which is
> only confusing users.
> 
> Also the same script is even executed as a part of runltp script which
> is more appropriate place for it.

LGTM!

Reviewed-by: Enji Cooper <yaneurabeya@gmail.com>

> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> ---
> Makefile | 19 -------------------
> 1 file changed, 19 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 170c2da20..c46d050ce 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -21,11 +21,6 @@
> # Ngie Cooper, July 2009
> #
> 
> -# Force IDcheck.sh to fix any issues found with $(DESTDIR)/etc/group and
> -# $(DESTDIR)/etc/passwd automatically when after running the top-level
> -# install target.
> -CREATE_ENTRIES        ?= 0
> -
> top_srcdir        ?= $(CURDIR)
> 
> include $(top_srcdir)/include/mk/env_pre.mk
> @@ -42,9 +37,6 @@ vpath %.in        $(top_srcdir)/include
> vpath %.m4        $(top_srcdir)/m4
> vpath %.mk        $(top_srcdir)/mk:$(top_srcdir)/mk/include
> 
> -# Skip running IDcheck.sh at the end of install?
> -SKIP_IDCHECK        ?= 0
> -
> # User wants uclinux binaries?
> UCLINUX            ?= 0
> export UCLINUX
> @@ -202,17 +194,6 @@ $(INSTALL_TARGETS): $(INSTALL_DIR) $(DESTDIR)/$(bindir)
> 
> ## Install
> install: $(INSTALL_TARGETS)
> -ifeq ($(SKIP_IDCHECK),0)
> -    -@CREATE_ENTRIES=$(CREATE_ENTRIES) \
> -     DESTDIR="$(DESTDIR)" \
> -     "$(top_srcdir)/IDcheck.sh"
> -else
> -    @echo "*******************************************************"
> -    @echo "** Will not run IDcheck.sh (SKIP_IDCHECK set to 1).  **"
> -    @echo "*******************************************************"
> -endif
> -
> -## Misc targets.
> 
> ## Help
> .PHONY: help
> -- 
> 2.19.2
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Makefile: Remove IDcheck.sh
  2019-04-08 16:06 ` Enji Cooper
@ 2019-04-09 12:38   ` Cyril Hrubis
  0 siblings, 0 replies; 4+ messages in thread
From: Cyril Hrubis @ 2019-04-09 12:38 UTC (permalink / raw)
  To: ltp

Hi!
Pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] [PATCH] Makefile: Remove IDcheck.sh
  2019-04-08 15:21 [LTP] [PATCH] Makefile: Remove IDcheck.sh Cyril Hrubis
  2019-04-08 16:06 ` Enji Cooper
@ 2019-04-12 13:58 ` Petr Vorel
  1 sibling, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2019-04-12 13:58 UTC (permalink / raw)
  To: ltp

Hi Cyril,

> There is no point in running the IDcheck on 'make install' as it's
> completely pointless to print ignored errors on installation which is
> only confusing users.
+1

> Also the same script is even executed as a part of runltp script which
> is more appropriate place for it.

+1

I hope to implement one day tst_user() and tst_group() [1].
Than IDcheck.sh could be removed :).

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp/issues/468

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-12 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 15:21 [LTP] [PATCH] Makefile: Remove IDcheck.sh Cyril Hrubis
2019-04-08 16:06 ` Enji Cooper
2019-04-09 12:38   ` Cyril Hrubis
2019-04-12 13:58 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.