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

Bug#1023149: marked as done (pandoc FTBFS on i386)



Your message dated Thu, 24 Nov 2022 08:37:07 +0000
with message-id <E1oy7jH-00CfhT-7R@fasolo.debian.org>
and subject line Bug#1023149: fixed in pandoc 2.17.1.1-1.1
has caused the Debian Bug report #1023149,
regarding pandoc FTBFS on i386
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1023149: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023149
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: pandoc
Version: 2.17.1.1-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>

https://buildd.debian.org/status/logs.php?pkg=pandoc&ver=2.17.1.1-1%2Bb3

...
[193 of 214] Compiling Text.Pandoc.Readers.EPUB

src/Text/Pandoc/Readers/EPUB.hs:79:40: error:
    • Local identifier ‘FilePath’ used as a type
    • In the type signature:
        parseSpineElem :: PandocMonad m =>
                          FilePath -> (FilePath, MimeType) -> m Pandoc
      In an equation for ‘archiveToEPUB’:
          archiveToEPUB os archive
            = do (root, content) <- getManifest archive
                 (coverId, meta) <- parseMeta content
                 (cover, items) <- parseManifest content coverId
                 ....
            where
                os'
                  = os
                      {readerExtensions = enableExtension
                                            Ext_raw_html (readerExtensions os)}
                parseSpineElem ::
                  PandocMonad m => FilePath -> (FilePath, MimeType) -> m Pandoc
                parseSpineElem (normalise -> r) (normalise -> path, mime)
                  = do doc <- mimeToReader mime r path
                       ....
                mimeToReader ::
                  PandocMonad m => MimeType -> FilePath -> FilePath -> m Pandoc
                ....
   |
79 |     parseSpineElem :: PandocMonad m => FilePath -> (FilePath, MimeType) -> m Pandoc
   |                                        ^^^^^^^^

src/Text/Pandoc/Readers/EPUB.hs:84:50: error:
    • Local identifier ‘FilePath’ used as a type
    • In the type signature:
        mimeToReader :: PandocMonad m =>
                        MimeType -> FilePath -> FilePath -> m Pandoc
      In an equation for ‘archiveToEPUB’:
          archiveToEPUB os archive
            = do (root, content) <- getManifest archive
                 (coverId, meta) <- parseMeta content
                 (cover, items) <- parseManifest content coverId
                 ....
            where
                os'
                  = os
                      {readerExtensions = enableExtension
                                            Ext_raw_html (readerExtensions os)}
                parseSpineElem ::
                  PandocMonad m => FilePath -> (FilePath, MimeType) -> m Pandoc
                parseSpineElem (normalise -> r) (normalise -> path, mime)
                  = do doc <- mimeToReader mime r path
                       ....
                mimeToReader ::
                  PandocMonad m => MimeType -> FilePath -> FilePath -> m Pandoc
                ....
   |
84 |     mimeToReader :: PandocMonad m => MimeType -> FilePath -> FilePath -> m Pandoc
   |                                                  ^^^^^^^^
-e: error: debian/hlibrary.setup build --builddir=dist-ghc returned exit code 1
...


The patch below workarounds the issue, which indicates that it might
be a bug in the compiler and not a problem in pandoc?

Short-term it might even be good enough to unblock migration of several
packages to testing.

--- debian/rules.old	2022-10-30 17:52:59.643347191 +0000
+++ debian/rules	2022-10-30 17:54:14.347251214 +0000
@@ -192,6 +192,10 @@
 DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc--param -optcggc-min-expand=10 -O0"
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU), i386))
+DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-O0"
+endif
+
 DEB_SETUP_GHC_CONFIGURE_ARGS += $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,-ftests)
 
 DEB_INSTALL_DOCS_ALL += README.md

--- End Message ---
--- Begin Message ---
Source: pandoc
Source-Version: 2.17.1.1-1.1
Done: Adrian Bunk <bunk@debian.org>

We believe that the bug you reported is fixed in the latest version of
pandoc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1023149@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated pandoc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 19 Nov 2022 15:13:51 +0200
Source: pandoc
Architecture: source
Version: 2.17.1.1-1.1
Distribution: unstable
Urgency: low
Maintainer: Debian Haskell Group <debian-haskell@lists.debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1023149
Changes:
 pandoc (2.17.1.1-1.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Workaround i386 FTBFS with -O0. (Closes: #1023149)
Checksums-Sha1:
 b8474b357393a855e985003374b89cf1d8cc566a 9172 pandoc_2.17.1.1-1.1.dsc
 14914bf918799cd45b75e9c71748f5a1c13acc2b 59012 pandoc_2.17.1.1-1.1.debian.tar.xz
Checksums-Sha256:
 ccb354586541dfc3e0b121b527d10bdbc39f8369b3d7072276bee7558f56fa3e 9172 pandoc_2.17.1.1-1.1.dsc
 07ef9d2654ba4cbdf018ca6c691b5330348ee5c0fd85813cf4dc91d46822127f 59012 pandoc_2.17.1.1-1.1.debian.tar.xz
Files:
 ccfd9b94d62c2efea06540f914c9e8b1 9172 text optional pandoc_2.17.1.1-1.1.dsc
 9d1452b2c9c481ef8740f81480b2b81b 59012 text optional pandoc_2.17.1.1-1.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmN4118ACgkQiNJCh6LY
mLF08Q//e3i2jHi91hJSH7HCyAGhCQq8KrnZWwp99EK/MgdAqDcQtLc3NR/APnUc
DwuzqDUA1cHJb/say/MeU2tdj3k9sBAD+MzhP150u1LZQKxFnpmbQLS42e545r1g
T2lCBNsXUleK5a3fZCjx9gwuvJCTRZX0h6HEWooirCy8e6AY0K2nptWbEiiApSDk
q1rcgyaFjNijYldYfPxPo9DXz6cdK1TTjlyAxxcvM7EJGgGUX7ROB6FKN73Y6mU8
DjSu4LyrgK9vmGPU55VhiKrfDQy6zQbEzhU+ovmSkul3gVSbGarutvbbfi2/FleJ
7MKpqgNb0mO/a9vNQ+69BJwVkYje35XtBfNNVoUjAqrgbNuCb5n8wuTYIFDyPudu
MEFWPt615Pxn8395wvQyGBxVLbpOWwH/PPRGBm3G69n6fYXF2NcyLzCyXD7vyIjl
FIH5K76q06E5CkTnFweXxSiDKFs/X30V4BOYiyShrLAAPBVQNYcEGFtPw7RRRrMZ
HYnjShF5J3/+14J5ACBrO4czZhROkwxyeEAaRcGqCQevj+uJuMk3RQiiTr1zcdID
cFYwlj9xXZZwGqGfYgcuc+w4iV1tp6OnrbDfSjEphC0hrT26dxpoT0EUv1+dKChx
MiZsYj/5nkjpLG8MIA/MpIU9mOiAuo/bhf/3fzmw7WQSWDWDxHk=
=PDz7
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: