From 1b6242fc583a6b871304fb995af6dc211b58f69b Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:48:23 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- recipes-core/numactl/numactl-2.0.9/Makefile.patch | 63 +++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 recipes-core/numactl/numactl-2.0.9/Makefile.patch (limited to 'recipes-core/numactl/numactl-2.0.9/Makefile.patch') diff --git a/recipes-core/numactl/numactl-2.0.9/Makefile.patch b/recipes-core/numactl/numactl-2.0.9/Makefile.patch new file mode 100644 index 0000000..3c6d3e2 --- /dev/null +++ b/recipes-core/numactl/numactl-2.0.9/Makefile.patch @@ -0,0 +1,63 @@ +Add 'test-install' rule. +Do not use getlibdir for 'prefix' variable. +Echo 'SKIP' result for ptest when run on sigle node machine. + +Signed-off-by: Radu Patriu +Upstream-Status: Pending + +Index: numactl-2.0.9-orig/Makefile +=================================================================== +--- numactl-2.0.9-orig.orig/Makefile 2013-10-09 00:34:57.000000000 +0300 ++++ numactl-2.0.9-orig/Makefile 2014-02-07 20:27:21.951902184 +0200 +@@ -42,7 +42,7 @@ + else + prefix := $(PREFIX) + endif +-libdir := ${prefix}/$(shell ./getlibdir) ++libdir := ${prefix}/lib + docdir := ${prefix}/share/doc + + all: numactl migratepages migspeed libnuma.so numademo numamon memhog \ +@@ -197,9 +197,9 @@ + .depend: + ${CC} -MM -DDEPS_RUN -I. ${SOURCES} > .depend.X && mv .depend.X .depend + +-include .depend ++# include .depend + +-Makefile: .depend ++# Makefile: .depend + + .PHONY: test regress1 regress2 + +@@ -215,3 +215,18 @@ + + # test: all regress1 regress2 test_numademo regress3 + test: all regress1 regress2 test_numademo ++ ++TEST_DESTDIR ?= ${prefix}/lib/numactl/ptest ++TEST_FILES = bind_range distance migrate_pages nodemap prefered README regress2 shmtest \ ++ checkaffinity ftok move_pages node-parse printcpu realloc_test regress-io tbitmap \ ++ checktopology mbind_mig_pages mynode pagesize randmap regress runltp tshared ++TEST_FRAME = Makefile getlibdir numactl numademo ++ ++test-install: ++ install -d ${TEST_DESTDIR}/test ++ for file in ${TEST_FILES}; do \ ++ install test/$${file} ${TEST_DESTDIR}/test; \ ++ done ++ for file in ${TEST_FRAME}; do \ ++ install $${file} ${TEST_DESTDIR}; \ ++ done +Index: numactl-2.0.9-orig/test/regress +=================================================================== +--- numactl-2.0.9-orig.orig/test/regress 2013-10-09 00:34:58.000000000 +0300 ++++ numactl-2.0.9-orig/test/regress 2014-02-07 20:27:01.151901373 +0200 +@@ -73,6 +73,7 @@ + if [ $numnodes -lt 2 ] ; then + echo "need at least two nodes with at least $NEEDPAGES each of" + echo "free memory for mempolicy regression tests" ++ echo '========SKIP' + exit 1 + fi + } -- cgit v1.2.3-54-g00ecf