Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc for openSUSE:Factory checked in 
at 2023-06-04 00:12:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc (Old)
 and      /work/SRC/openSUSE:Factory/.ghc.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc"

Sun Jun  4 00:12:28 2023 rev:102 rq:1088861 version:9.4.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc/ghc.changes  2023-05-04 17:10:09.044216078 
+0200
+++ /work/SRC/openSUSE:Factory/.ghc.new.15902/ghc.changes       2023-06-04 
00:12:29.193492408 +0200
@@ -1,0 +2,6 @@
+Wed May 24 14:10:46 UTC 2023 - Ondřej Súkup <mimi...@gmail.com>
+
+- add patch for Sphinx 7 release - sphinx7.patch
+- cleanup spec
+
+-------------------------------------------------------------------

New:
----
  sphinx7.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc.spec ++++++
--- /var/tmp/diff_new_pack.4Glipx/_old  2023-06-04 00:12:30.213498506 +0200
+++ /var/tmp/diff_new_pack.4Glipx/_new  2023-06-04 00:12:30.217498530 +0200
@@ -25,11 +25,7 @@
 %define with_libnuma 0
 %endif
 # Keep in sync with ghc-bootstrap.spec
-%if 0%{?suse_version} > 1550
 %global llvm_major 14
-%else
-%global llvm_major 9
-%endif
 
 # conditionals
 
@@ -67,13 +63,6 @@
 %bcond_without perf_build
 %endif
 
-%if %{without hadrian}
-# locked together since disabling haddock causes no manuals built
-# and disabling haddock still created index.html
-# https://gitlab.haskell.org/ghc/ghc/-/issues/15190
-%{?with_haddock:%bcond_without manual}
-%endif
-
 %global ghc_llvm_archs s390x riscv64
 %global ghc_unregisterized_arches noarch
 
@@ -108,6 +97,7 @@
 # PATCH-FIX-UPSTREAM ghc-pie.patch - set linux as default PIE platform
 Patch35:        ghc-pie.patch
 Patch200:       ghc-hadrian-s390x-rts--qg.patch
+Patch300:       sphinx7.patch
 BuildRequires:  binutils-devel
 BuildRequires:  gcc-PIE
 BuildRequires:  gcc-c++
@@ -314,6 +304,7 @@
 %ifarch ppc64 ppc64le s390x riscv64
 %patch200 -p1
 %endif
+%patch300 -p1
 
 rm libffi-tarballs/libffi-*.tar.gz
 
@@ -416,25 +407,10 @@
 %ghc_merge_filelist integer-gmp base
 %ghc_merge_filelist rts base
 
-# add rts libs
-%if %{with hadrian}
 for i in %{buildroot}%{ghclibplatform}/libHSrts*ghc%{ghc_version}.so; do
-echo $i >> %{name}-base.files
+  echo $i >> %{name}-base.files
 done
 echo "%{_sysconfdir}/ld.so.conf.d/%{name}.conf" >> %{name}-base.files
-%else
-%if %{defined _ghcdynlibdir}
-echo "%{ghclibdir}/rts" >> %{name}-base-devel.files
-%else
-echo "%%dir %{ghclibdir}/rts" >> %{name}-base.files
-ls -d %{buildroot}%{ghclibdir}/rts/lib*.a >> %{name}-base-devel.files
-%endif
-ls 
%{buildroot}%{?_ghcdynlibdir}%{!?_ghcdynlibdir:%{ghclibdir}/rts}/libHSrts*.so 
>> %{name}-base.files
-%if %{defined _ghcdynlibdir}
-sed -i -e 's!^library-dirs: %{ghclibdir}/rts!&\ndynamic-library-dirs: 
%{_libdir}!' %{buildroot}%{ghclibdir}/package.conf.d/rts.conf
-%endif
-ls -d %{buildroot}%{ghclibdir}/package.conf.d/rts.conf >> 
%{name}-base-devel.files
-%endif
 
 if [ -f %{buildroot}%{ghcliblib}/package.conf.d/system-cxx-std-lib-1.0.conf ]; 
then
 ls -d %{buildroot}%{ghcliblib}/package.conf.d/system-cxx-std-lib-1.0.conf >> 
%{name}-base-devel.files
@@ -442,25 +418,14 @@
 
 %if %{with ghc_prof}
 ls %{buildroot}%{ghclibdir}/bin/ghc-iserv-prof* >> %{name}-base-prof.files
-%if %{with hadrian}
 ls %{buildroot}%{ghclibdir}/lib/bin/ghc-iserv-prof >> %{name}-base-prof.files
 echo "%%dir %{ghcliblib}/bin"
 %endif
-%endif
 
 sed -i -e "s|^%{buildroot}||g" %{name}-base*.files
-%if %{with hadrian}
 sed -i -e "s|%{buildroot}||g" %{buildroot}%{_bindir}/*
-%endif
 
-%if %{with haddock} && %{without hadrian}
-# generate initial lib doc index
-cd libraries
-sh %{gen_contents_index} --intree --verbose
-cd ..
-%endif
 
-%if %{with hadrian}
 %if %{with haddock}
 rm %{buildroot}%{_docdir}/ghc-%{version}/archives/libraries.html.tar.xz
 %endif
@@ -468,26 +433,14 @@
 rm %{buildroot}%{_docdir}/ghc-%{version}/archives/Haddock.html.tar.xz
 rm %{buildroot}%{_docdir}/ghc-%{version}/archives/users_guide.html.tar.xz
 %endif
-%endif
 
-# we package the library license files separately
-%if %{without hadrian}
-find %{buildroot}%{ghc_html_libraries_dir} -name LICENSE -exec rm '{}' ';'
-%endif
 
 mkdir -p %{buildroot}%{_mandir}/man1
 install -p -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/ghc-pkg.1
 install -p -m 0644 %{SOURCE6} %{buildroot}%{_mandir}/man1/haddock.1
 install -p -m 0644 %{SOURCE7} %{buildroot}%{_mandir}/man1/runghc.1
 
-%if %{without hadrian}
-for i in hp2ps hpc hsc2hs runhaskell; do
-  mv %{buildroot}%{_bindir}/$i{,-%{version}}
-  ln -s $i-%{version} %{buildroot}%{_bindir}/$i
-done
-%endif
 
-%if %{with hadrian}
 rm %{buildroot}%{ghclibdir}/lib/package.conf.d/.stamp
 rm %{buildroot}%{ghclibdir}/lib/package.conf.d/*.conf.copy
 
@@ -499,7 +452,6 @@
 fi
 done
 )
-%endif
 
 %check
 # Actually, I took this from Jens Petersen's Fedora package
@@ -561,9 +513,7 @@
 %{_bindir}/ghc
 %{_bindir}/ghc-pkg
 %{_bindir}/ghci
-%if %{with hadrian} || %{with haddock}
 %{_bindir}/haddock
-%endif
 %{_bindir}/hp2ps
 %{_bindir}/hpc
 %{_bindir}/hsc2hs
@@ -610,18 +560,13 @@
 %{_mandir}/man1/ghc-pkg.1%{?ext_man}
 %{_mandir}/man1/haddock.1%{?ext_man}
 %{_mandir}/man1/runghc.1%{?ext_man}
-%if %{with hadrian} || %{with haddock}
 %{_bindir}/haddock-ghc-%{version}
 %{ghcliblib}/html
 %{ghcliblib}/latex
-%endif
 %if %{with haddock} || (%{with hadrian} && %{with manual})
 %{ghc_html_libraries_dir}/prologue.txt
 %endif
 %if %{with haddock}
-%if %{without hadrian}
-%{ghclibdir}/bin/haddock
-%endif
 %verify(not size mtime) %{ghc_html_libraries_dir}/haddock-bundle.min.js
 %verify(not size mtime) %{ghc_html_libraries_dir}/linuwial.css
 %verify(not size mtime) %{ghc_html_libraries_dir}/quick-jump.css
@@ -631,17 +576,6 @@
 %{_mandir}/man1/ghc.1%{?ext_man}
 %endif
 
-%{_bindir}/ghc
-%{_bindir}/ghc-pkg
-%{_bindir}/ghci
-%if %{with hadrian} || %{with haddock}
-%{_bindir}/haddock
-%endif
-%{_bindir}/hp2ps
-%{_bindir}/hpc
-%{_bindir}/hsc2hs
-%{_bindir}/runghc
-%{_bindir}/runhaskell
 
 %files devel
 


++++++ sphinx7.patch ++++++
>From 52d701b31dc4427b7e321a04be3f5f13a5fc271e Mon Sep 17 00:00:00 2001
From: "mimi.vx" <mimi...@gmail.com>
Date: Wed, 24 May 2023 12:42:15 +0000
Subject: [PATCH] Fix for Sphinx 7 removed style key

Fixes https://gitlab.haskell.org/ghc/ghc/-/issues/23444
---
 docs/users_guide/rtd-theme/layout.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/users_guide/rtd-theme/layout.html 
b/docs/users_guide/rtd-theme/layout.html
index 2a61142514a..7ffeff7befc 100644
--- a/docs/users_guide/rtd-theme/layout.html
+++ b/docs/users_guide/rtd-theme/layout.html
@@ -64,7 +64,7 @@
   {%- endif %}
 
   {# CSS #}
-  <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" 
type="text/css" />
+  <link rel="stylesheet" href="{{ pathto('_static/' + styles[-1], 1) }}" 
type="text/css" />
   <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" 
type="text/css" />
   {%- for css in css_files %}
     {%- if css|attr("rel") %}
-- 
GitLab

Reply via email to