diff options
| author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-08-26 22:04:05 +0300 |
|---|---|---|
| committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-08-26 22:04:05 +0300 |
| commit | ae908254d22318b9e27acf6e5e28d1a4ab5e2195 (patch) | |
| tree | 0d057ad30ca7f77c7c299762d60929e34ff51ab5 /meta-openembedded/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch | |
| parent | 67327ddc580cb9a85219a534844832a1682780d4 (diff) | |
| parent | 66d661a7f7784d58c8a437f1cdeb0c0ab03f0364 (diff) | |
| download | openbmc-ae908254d22318b9e27acf6e5e28d1a4ab5e2195.tar.xz | |
Merge tag '0.70' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into update
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch')
| -rw-r--r-- | meta-openembedded/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch b/meta-openembedded/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch new file mode 100644 index 000000000..9d9b8449b --- /dev/null +++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-m2crypto/avoid-host-contamination.patch @@ -0,0 +1,23 @@ +Filter out '/usr/include' for swig to avoid host contamination issue. + +Upstream-Status: Upstream-Status: Inappropriate [cross compile specific] + +Signed-off-by: Kai Kang <kai.kang@windriver.com> +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 5a12981..389d49f 100644 +--- a/setup.py ++++ b/setup.py +@@ -153,7 +153,8 @@ class _M2CryptoBuildExt(build_ext.build_ext): + self.swig_opts.append('-py3') + + # swig seems to need the default header file directories +- self.swig_opts.extend(['-I%s' % i for i in _get_additional_includes()]) ++ self.swig_opts.extend(['-I%s' % i for i in _get_additional_includes() ++ if i != '/usr/include']) + + log.debug('self.include_dirs = %s', self.include_dirs) + log.debug('self.library_dirs = %s', self.library_dirs) |
