Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 433764

Summary: app-admin/setools-3.3.7-r3 qpol_wrap.c error
Product: Gentoo Linux Reporter: Xiang Zhai <xiangzhai83>
Component: SELinuxAssignee: SE Linux Bugs <selinux>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xiangzhai83
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=app-admin/setools-3.3.7-r3'
build log
environment

Description Xiang Zhai 2012-09-03 10:28:02 UTC
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 **);
Comment 1 Xiang Zhai 2012-09-03 10:29:10 UTC
Created attachment 322818 [details]
build log
Comment 2 Xiang Zhai 2012-09-03 10:29:52 UTC
Created attachment 322820 [details]
environment
Comment 4 Xiang Zhai 2012-09-05 15:08:00 UTC
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
Comment 5 Xiang Zhai 2012-09-06 03:14:57 UTC

*** This bug has been marked as a duplicate of bug 430262 ***