Re: selinux X libxklavier recompilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx

-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]