diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2006-01-17 20:51:46 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2006-01-17 20:51:46 +0000 |
commit | e90e08f397f143c01bd9df15aec99271fc02d5a2 (patch) | |
tree | 393b9485d5fc272858fa1c447874200ae9990b34 /misc | |
parent | 8cef18cbe45fa9decd1d228f826546c5583d961e (diff) | |
download | xine-lib-e90e08f397f143c01bd9df15aec99271fc02d5a2.tar.gz xine-lib-e90e08f397f143c01bd9df15aec99271fc02d5a2.tar.bz2 |
**BUGFIX**
Avoid the "cannot restore segment prot after reloc: Permission denied" error
message for quite a few plugins by setting the texrel_shlib_t context on all
the plugins at installation time
CVS patchset: 7836
CVS date: 2006/01/17 20:51:46
Diffstat (limited to 'misc')
-rw-r--r-- | misc/Makefile.common | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/misc/Makefile.common b/misc/Makefile.common index 703ea412a..0e503b2b4 100644 --- a/misc/Makefile.common +++ b/misc/Makefile.common @@ -8,7 +8,17 @@ install-data-hook: @if test $$MAKELEVEL -le 4 ; then \ if test -x "$(top_srcdir)/post-install.sh" ; then \ $(top_srcdir)/post-install.sh ; \ - fi \ + fi; \ + fi; \ + if test -x /usr/bin/chcon ; then \ + list='$(lib_LTLIBRARIES)'; \ + if test -n "$$list" ; then \ + for p in $$list; do \ + p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ + echo " chcon -t texrel_shlib_t $(DESTDIR)$(libdir)/$$p"; \ + chcon -t texrel_shlib_t $(DESTDIR)$(libdir)/$$p; \ + done; \ + fi; \ fi pass1: |