X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-pynacl%2F0001-Enable-cross-compile.patch;fp=meta-stx%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-pynacl%2F0001-Enable-cross-compile.patch;h=893d678848227521a370f5b08fbab44a4a2964b3;hb=57fdea704bd62af847872c40508f00aa1d7cac60;hp=0000000000000000000000000000000000000000;hpb=f23f21bccfb750b9e30141fd9676515215ffbc4e;p=pti%2Frtp.git diff --git a/meta-stx/recipes-devtools/python/files/python-pynacl/0001-Enable-cross-compile.patch b/meta-stx/recipes-devtools/python/files/python-pynacl/0001-Enable-cross-compile.patch new file mode 100644 index 0000000..893d678 --- /dev/null +++ b/meta-stx/recipes-devtools/python/files/python-pynacl/0001-Enable-cross-compile.patch @@ -0,0 +1,35 @@ +From 97c9b5fdbffda65a7cacb2d0d7beac59c34f902c Mon Sep 17 00:00:00 2001 +From: babak sarashki +Date: Thu, 10 Oct 2019 11:30:18 -0700 +Subject: [PATCH] Enable cross compile + +--- + setup.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 747dc62..1eeb7bf 100644 +--- a/setup.py ++++ b/setup.py +@@ -167,6 +167,9 @@ class build_clib(_build_clib): + configure, "--disable-shared", "--enable-static", + "--disable-debug", "--disable-dependency-tracking", + "--with-pic", "--prefix", os.path.abspath(self.build_clib), ++ os.environ.get('PYNACL_CROSS_TARGET'), ++ os.environ.get('PYNACL_CROSS_HOST'), ++ os.environ.get('PYNACL_CROSS_BUILD'), + ], + cwd=build_temp, + ) +@@ -176,7 +179,7 @@ class build_clib(_build_clib): + subprocess.check_call(["make"] + make_args, cwd=build_temp) + + # Check the build library +- subprocess.check_call(["make", "check"] + make_args, cwd=build_temp) ++ # subprocess.check_call(["make", "check"] + make_args, cwd=build_temp) + + # Install the built library + subprocess.check_call(["make", "install"] + make_args, cwd=build_temp) +-- +2.17.1 +