selinux X libxklavier recompilation

Jiri Cerny jiri.cerny at epfl.ch
Fri Feb 3 07:42:11 UTC 2006


Thank you for the explanation. I understand now more the problem.

> chcon -t texrel_shlib_t /usr/lib/libxklavier.so.10.0.0
> resolves the problem? 

This command really resolves the problem. 

> If yes, that means that this patch may be broken 
> (causes text relocations). 

I tried to recompile the src.rpm without the patch I have added, that is I
recompiled the original rawhide src.rpm. The problem remained even without
the patch.

After some searching, I found that configure does not find -fPIC option of
gcc when run by rpmbuild. It finds this option if it is run directly from
the command line. The problem is actually that rpmbuild set environment
variable RPM_OPT_FLAGS. Value of this variable contains -mcpu switch, that
is deprecated by gcc, and warnings due to this option make the libxklavier
configure check for -fPIC fail. I changed -mcpu to -mtune on line 18 of
/usr/lib/rpmrc and everything works fine.

Should I fill a bug? Against libxklavier or against rpmbuild? 

Regards,

	Jiri


-- 
Jiří Černý
École Polytechnique Féderale de Lausanne (EPFL)
Chair of Stochastic modeling (CMOS)
INR 031 - Station 14
CH-1015 Lausanne
 
phone:      ++41-21-693 7534
fax:        ++41-21-693 7545
e-mail:     jiri.cerny at epfl.ch




More information about the fedora-test-list mailing list