From 889645708cbaba0e1367fce658048488fc4f87cc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 25 Sep 2006 10:05:59 +0000 Subject: [PATCH] =?UTF-8?q?-=20ghost=20package.conf.old=20(G=C3=A9rard=20M?= =?UTF-8?q?ilmeister)=20-=20set=20unconfined=5Fexecmem=5Fexec=5Ft=20contex?= =?UTF-8?q?t=20on=20executables=20with=20ghc=20rts=20=20=20=20=20(#195821)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghc.spec | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ghc.spec b/ghc.spec index d86b275..c5e12b9 100644 --- a/ghc.spec +++ b/ghc.spec @@ -6,7 +6,7 @@ Name: ghc Version: 6.4.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Glasgow Haskell Compilation system License: BSD style Group: Development/Languages @@ -117,9 +117,14 @@ cat rpm-dir.files rpm-lib.files > rpm-base-filelist cat rpm-dir.files rpm-prof.files > rpm-prof-filelist %endif +# create package.conf.old +touch $RPM_BUILD_ROOT%{_libdir}/ghc-%{version}/package.conf.old + + %clean rm -rf $RPM_BUILD_ROOT + %post ## tweak prefix in drivers scripts if relocating if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then @@ -127,6 +132,9 @@ if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then sed -i "s|%{_prefix}|${RPM_INSTALL_PREFIX}|" ${BINDIR}/{ghcprof,hsc2hs} fi +/usr/bin/chcon -t unconfined_execmem_exec_t %{_bindir}/{hasktags,runghc,runhaskell} >/dev/null 2>&1 || : + + %post -n %{ghcver} ## tweak prefix in drivers scripts if relocating if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then @@ -135,29 +143,41 @@ if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then sed -i "s|%{_prefix}|${RPM_INSTALL_PREFIX}|" ${BINDIR}/ghc*-%{version} ${LIBDIR}/ghc-%{version}/package.conf fi +/usr/bin/chcon -t unconfined_execmem_exec_t %{_libdir}/ghc-%{version}/{ghc-%{version},ghc-pkg.bin,hsc2hs-bin} >/dev/null 2>&1 || : + + %files %defattr(-,root,root,-) %{_bindir}/* %exclude %{_bindir}/ghc*%{version} + %files -n %{ghcver} -f rpm-base-filelist %defattr(-,root,root,-) %doc ghc/ANNOUNCE ghc/LICENSE ghc/README %{_bindir}/ghc*%{version} %config(noreplace) %{_libdir}/ghc-%{version}/package.conf +%ghost %{_libdir}/ghc-%{version}/package.conf.old + %if %{build_prof} %files -n %{ghcver}-prof -f rpm-prof-filelist %defattr(-,root,root,-) %endif + %if %{build_doc} %files doc %defattr(-,root,root,-) %{_docdir}/%{name}-%{version} %endif + %changelog +* Mon Sep 25 2006 Jens Petersen - 6.4.2-3.fc6 +- ghost package.conf.old (GĂ©rard Milmeister) +- set unconfined_execmem_exec_t context on executables with ghc rts (#195821) + * Sat Apr 29 2006 Jens Petersen - 6.4.2-2.fc6 - buildrequire libXt-devel so that the X11 package and deps get built (Garrett Mitchener, #190201)