ghc.git
2 years ago[PATCH] sphinx: Use modern syntax for extlinks
Matthew Pickering [Tue, 3 Jan 2023 15:56:37 +0000 (15:56 +0000)]
[PATCH] sphinx: Use modern syntax for extlinks

This fixes the following build error:

```
  Command line: /opt/homebrew/opt/sphinx-doc/bin/sphinx-build -b man -d /private/tmp/extra-dir-55768274273/.doctrees-man -n -w /private/tmp/extra-dir-55768274273/.log docs/users_guide /private/tmp/extra-dir-55768274273
  ===> Command failed with error code: 2

  Exception occurred:
    File "/opt/homebrew/Cellar/sphinx-doc/6.0.0/libexec/lib/python3.11/site-packages/sphinx/ext/extlinks.py", line 101, in role
      title = caption % part
              ~~~~~~~~^~~~~~
  TypeError: not all arguments converted during string formatting
```

I tested on Sphinx-5.1.1 and Sphinx-6.0.0

Thanks for sterni for providing instructions about how to test using
sphinx-6.0.0.

Fixes #22690

Gbp-Pq: Name 00dc51060881df81258ba3b3bdf447294618a4de.patch

2 years agoseparate-docs
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
separate-docs

===================================================================

Gbp-Pq: Name separate-docs

2 years ago[PATCH] Update supported LLVM versions
Ben Gamari [Fri, 29 Apr 2022 16:51:26 +0000 (12:51 -0400)]
[PATCH] Update supported LLVM versions

Pull forward minimum version to match 9.2.

(cherry picked from commit c26faa54c5fbe902ccb74e79d87e3fa705e270d1)

Gbp-Pq: Name ddd2591c5ca395e39ea36855e5b7e0a3464b7ad8.patch

2 years ago[PATCH] configure: bump LlvmMaxVersion to 14
Cheng Shao [Thu, 27 Jan 2022 12:12:14 +0000 (12:12 +0000)]
[PATCH] configure: bump LlvmMaxVersion to 14

LLVM 13.0.0 is released in Oct 2021, and latest head validates against
LLVM 13 just fine if LlvmMaxVersion is bumped.

Gbp-Pq: Name 78db231ffdf8385662812781c1d09c630cfad313.patch

2 years agoUse libatomic for 64-bit operations
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Use libatomic for 64-bit operations

The rts package uses GCC's __atomic built-in functions on 64-bit values. This
is not supported on some 32bit platforms (e.g., mipsel) resulting in the
following compilation error:
   rts/dist/build/libHSrts_thr-ghc8.10.7.so: error: undefined reference to '__atomic_load_8'
   rts/dist/build/libHSrts_thr-ghc8.10.7.so: error: undefined reference to '__atomic_store_8'
   rts/dist/build/libHSrts_thr-ghc8.10.7.so: error: undefined reference to '__atomic_fetch_add_8'

 Fix this by linking against libatomic.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/20549
Forwarded: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6820

Gbp-Pq: Name latomic-64bit

2 years agolatomic-subword
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
latomic-subword

commit 90f06a0e015e18c066fe1569fb2add318bec72ca
Author: Haochen Tong <i@hexchain.org>
Date:   Mon Oct 11 11:40:56 2021 +0800

    Check for libatomic dependency for atomic operations

    Some platforms (e.g. RISC-V) require linking against libatomic for some
    (e.g. sub-word-sized) atomic operations.

    Fixes #19119.

Gbp-Pq: Name latomic-subword

2 years agoFix LLVM error on armel
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Fix LLVM error on armel

GHC 8.10 fails to build on armel with the following error:
   LLVM ERROR: unable to allocate function argument #8
   PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
   Stack dump:
   0.  Program arguments: llc-12 -O2 -enable-tbaa -relocation-model=pic -mcpu=arm7tdmi -mattr=+soft-float,-vfp2,-vfp2sp,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-fp16,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fullfp16,-fp64,-d32,-neon,-crypto,-dotprod,-fp16fml,-bf16,-mve,-mve.fp,-fpregs,+strict-align /tmp/ghc5537_0/ghc_6.bc -o /tmp/ghc5537_0/ghc_7.lm_s
   1.  Running pass 'Function Pass Manager' on module '/tmp/ghc20177_0/ghc_6.bc'.
   2.  Running pass 'ARM Instruction Selection' on function '@"stg_gc_f1$def"'
   `llc-12' failed in phase `LLVM Compiler'. (Exit code: -6)
   make[3]: *** [rts/ghc.mk:325: rts/dist/build/HeapStackCheck.o] Error 1

 Surprisingly, reverting commit 4540bbe2811e860f35de6e67ab2f0040592fd3a5 fixes
 thie error.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/20285

Gbp-Pq: Name fix-llvm-armel

2 years agoRemove hard-coded googleapis font URL
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Remove hard-coded googleapis font URL

Bug: https://github.com/haskell/haddock/issues/1211
Bug-Debian: https://bugs.debian.org/963690

Gbp-Pq: Name haddock-remove-googleapis-fonts

2 years agolocal-mathjax
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
local-mathjax

===================================================================

Gbp-Pq: Name local-mathjax

2 years agoAdd kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4
Svante Signell [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Add kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4

Bug-Debian: https://bugs.debian.org/913140

Gbp-Pq: Name kfreebsd-aclocal.m4

2 years agoUse the stage1 binaries for install
John Paul Adrian Glaubitz [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Use the stage1 binaries for install

Last-Update: 2017-01-29

In order to be able to perform a cross-build, we need to use
the stage1 binaries during installation. Both ghc and ghc-pkg
are run during the install target and therefore must be able
to run on the build machine.

Gbp-Pq: Name use-stage1-binaries-for-install.patch

2 years agoUse native x86_64 instructions on x32
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Use native x86_64 instructions on x32

This patch enables a few native 64-bit integer instructions
on x32 which are available on this architecture despite using
32-bit pointers. These instructions are present on x86_64 but
not on x86 and ghc checks the size of (void *) to determine
that. This method fails on x32 since despite using 32-bit
pointers and hence sizeof(void *) == 4, it still uses the
full x86_64 instruction set and software-emulated variants
of the aforementioned 64-bit integer instructions are
therefore not present in the toolchain which will make ghc
fail to build on x32.
See: https://ghc.haskell.org/trac/ghc/ticket/11571

Gbp-Pq: Name x32-use-native-x86_64-insn.patch

2 years agoDon't include BufPos in interface files
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Don't include BufPos in interface files

Origin: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/8972
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22162

===================================================================

Gbp-Pq: Name buildpath-abi-stability-2.patch

2 years agobuildpath-abi-stability
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
buildpath-abi-stability

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Gbp-Pq: Name buildpath-abi-stability.patch

2 years agoDo not emit a warning if the .haddock file is missing
Joachim Breitner [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Do not emit a warning if the .haddock file is missing

As it is quite common on Debian installations to install the -dev package
without the -doc package.

Gbp-Pq: Name no-missing-haddock-file-warning

2 years agoUse VFPv3-D16 FPU for ARM builds
Jani Monoses [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Use VFPv3-D16 FPU for ARM builds

Upstream-Bug: https://ghc.haskell.org/trac/ghc/ticket/5914
Launchpad-Bug: https://ghc.haskell.org/trac/ghc/ticket/5914

Jani writes: The D16 part was Debian/Ubuntu specific, IIRC we define hardfloat
in that particular variant (16 double registers) or we had a different naming
for some reason.

Gbp-Pq: Name ARM-VFPv3D16

2 years agouse-debian-gen_contents_index
Debian Haskell Group [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
use-debian-gen_contents_index

===================================================================

Gbp-Pq: Name use-debian-gen_contents_index

2 years agoghc (9.0.2-5) unstable; urgency=medium
Scott Talbert [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
ghc (9.0.2-5) unstable; urgency=medium

  * Team upload.
  * Fix FTBFS with sphinx 7.1 (Closes: #1042658)

[dgit import unpatched ghc 9.0.2-5]

2 years agoImport ghc_9.0.2-5.debian.tar.xz
Scott Talbert [Mon, 31 Jul 2023 22:47:27 +0000 (23:47 +0100)]
Import ghc_9.0.2-5.debian.tar.xz

[dgit import tarball ghc 9.0.2-5 ghc_9.0.2-5.debian.tar.xz]

3 years agoImport ghc_9.0.2.orig.tar.xz
Ilias Tsitsimpis [Fri, 3 Jun 2022 08:25:00 +0000 (09:25 +0100)]
Import ghc_9.0.2.orig.tar.xz

[dgit import orig ghc_9.0.2.orig.tar.xz]