Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433764 - app-admin/setools-3.3.7-r3 qpol_wrap.c error
Summary: app-admin/setools-3.3.7-r3 qpol_wrap.c error
Status: RESOLVED DUPLICATE of bug 430262
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
Depends on:
Reported: 2012-09-03 10:28 UTC by Xiang Zhai
Modified: 2012-09-06 03:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info '=app-admin/setools-3.3.7-r3' (,4.70 KB, text/plain)
2012-09-03 10:28 UTC, Xiang Zhai
build log (build.log,173.95 KB, text/plain)
2012-09-03 10:29 UTC, Xiang Zhai
environment (environment,269.09 KB, text/plain)
2012-09-03 10:29 UTC, Xiang Zhai

Note You need to log in before you can comment on or make changes to this bug.
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; 
                if (qpol_module_get_path(self, &p)) { 
                        SWIG_exception(SWIG_ValueError,"Could not get module path"); 
                return p; 
                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]
Comment 4 Xiang Zhai 2012-09-05 15:08:00 UTC

+   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 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 ***