Created attachment 322816 [details] emerge --info '=app-admin/setools-3.3.7-r3' qpol_wrap.c was automatically generated by SWIG, but the python wrapper throw such error attached as build.log I read about setools-3.3.7/libqpol/swig/qpol.i, it might be different from setools-3.3.7/libqpol/include/qpol/module.h, so it might be the qpol swig template error. for example, LINE-245 in qpol.i const char *get_path() { const char *p; BEGIN_EXCEPTION if (qpol_module_get_path(self, &p)) { SWIG_exception(SWIG_ValueError,"Could not get module path"); } return p; END_EXCEPTION fail: return NULL; }; But in module.h, extern int qpol_module_get_path(const qpol_module_t *, const char **);
Created attachment 322818 [details] build log
Created attachment 322820 [details] environment
Thank swift`s patch http://dev.gentoo.org/~swift/patches/0008-fix_swig_build_failures_bug_430262.patch
add + EPATCH_MULTI_MSG="Applying various (Gentoo-dev) setool fixes... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="/home/xzhai/gentoo-dev-patches" \ + EPATCH_FORCE="yes" \ + epatch then wget http://dev.gentoo.org/~swift/patches/0008-fix_swig_build_failures_bug_430262.patch under /home/xzhai/gentoo-dev-patches/ sudo mv Manifest Manifest.bak sudo ebuild /usr/portage/app-admin/setools/setools-3.3.7-r3.ebuild manifest
*** This bug has been marked as a duplicate of bug 430262 ***