Skip to contentSkip to conversation

lib: Move ltp_priv.h to include/old/ltp_priv.h

PATCH New Cyril Hrubis 1 participant 4 messages Mar 29, 2017 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 lib: Move ltp_priv.h to include/old/ltp_priv.h

Fixes out-of-tree build since ltp_priv.h is included from include/old/test.h and the lib/ directory is not in the compiler search path nor it's a file in the same directory in case of out-of-tree build.

---
 {lib => include/old}/ltp_priv.h | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {lib => include/old}/ltp_priv.h (100%)
include/old/ltp_priv.h renamed from lib/ltp_priv.h +0 -0
similarity index 100%
rename from lib/ltp_priv.h
rename to include/old/ltp_priv.h
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/4 rpc-tirpc: Fix out-of-tree build

* Make use of $(abs_srcdir) when including Makefile.inc

* Fix typo in Makefile.inc

---
 testcases/network/rpc/rpc-tirpc/tests_pack/Makefile              | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/Makefile.inc          | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/Makefile    | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_2/Makefile    | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_1/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_11/Makefile | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_2/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_3/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_4/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_5/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/Makefile  | 2 +-
 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/Makefile  | 2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
testcases/network/rpc/rpc-tirpc/tests_pack/Makefile +1 -1
index d16e1ca..42d111f 100644
@@ -35,5 +35,5 @@ trunk-clean:: | lib-clean
 lib-clean:: $(LIBDIR)
 	$(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean
 
-include ./Makefile.inc
+include $(abs_srcdir)/Makefile.inc
 include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/Makefile.inc +1 -1
index ff6b2e0..c709335 100644
@@ -21,7 +21,7 @@ LIBDIR		:= $(abs_top_builddir)/$(LIBRELDIR)
 LIBSRCDIR	:= $(abs_top_srcdir)/$(LIBRELDIR)
 LIBRPC-TIRPC	:= $(LIBDIR)/librpc-tirpc.a
 
-$(LIBDDIR):
+$(LIBDIR):
 	mkdir -p "$@"
 
 $(LIBRPC-TIRPC): $(LIBDIR)
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_2/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_1/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_11/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_2/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_3/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_4/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_5/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/Makefile +1 -1
index 771888c..b5d08aa 100644
@@ -19,5 +19,5 @@
 top_srcdir		?= ../../../../../..
 
 include	$(top_srcdir)/include/mk/env_pre.mk
-include ../Makefile.inc
+include $(abs_srcdir)/../Makefile.inc
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
Signature · 1 line
2.10.2
#2 lore raw

PATCH 3/4 commands: Fix out-of-tree datafiles installation

In reply to Cyril Hrubis

The INSTALL_TARGETS are prefixed with $(abs_srcdir) in the test library hence we cannot do the wildcard expansion in the Makefile in case of out-of-tree build and we have to leave that to the build system instead.

---
 testcases/commands/ar/datafiles/Makefile   | 2 +-
 testcases/commands/file/datafiles/Makefile | 2 +-
 testcases/commands/ld/datafiles/Makefile   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
testcases/commands/ar/datafiles/Makefile +1 -1
index 09dc029..ef99bca 100644
@@ -15,5 +15,5 @@ top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
 INSTALL_DIR		:= testcases/data/ar01
-INSTALL_TARGETS		:= $(wildcard file*)
+INSTALL_TARGETS		:= file*
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/commands/file/datafiles/Makefile +1 -1
index 6769fc6..d3cb847 100644
@@ -15,5 +15,5 @@ top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
 INSTALL_DIR		:= testcases/data/file01
-INSTALL_TARGETS		:= $(wildcard in*)
+INSTALL_TARGETS		:= in*
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/commands/ld/datafiles/Makefile +1 -1
index 7b19207..4eb64ad 100644
@@ -17,6 +17,6 @@ include $(top_srcdir)/include/mk/env_pre.mk
 
 INSTALL_DIR		:= testcases/data/ld01
 MAKE_TARGETS		:=
-INSTALL_TARGETS		:= $(wildcard *.c)
+INSTALL_TARGETS		:= *.c
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
Signature · 1 line
2.10.2
#3 lore raw

PATCH 4/4 lib/tst_safe_posix_ipc.c: Add licence.

In reply to Cyril Hrubis
---
 lib/tst_safe_posix_ipc.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
lib/tst_safe_posix_ipc.c +17 -0
index d9fbf77..7142a25 100644
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 2017 Petr Vorel <[email protected]>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
 #include <mqueue.h>
 #include <stdarg.h>
 
Signature · 1 line
2.10.2