#67710 closed defect (fixed)

pandoc upgrade from 3.1.0 to 3.1.1 fails

Reported by: AttentionalM (AttentionalM) Owned by: judaew (Vadym-Valdis Yudaiev)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: arm64 Cc:
Port: pandoc

Description

"port upgrade pandoc" fails to build; tried port clean pandoc; port install pandoc +stack (note: -stack still used cabal) as per #66764 but this fails with an architecture issue - see second error;

Apple M1 Max; Ventura 13.4.1; Mac Studio 64GB

Falling back to 3.1.0 for now

port upgrade pandoc - fails to build Network.connection

:info:build Configuring library for connection-0.3.1..
:info:build Preprocessing library for connection-0.3.1..
:info:build Building library for connection-0.3.1..
:info:build [1 of 2] Compiling Network.Connection.Types ( Network/Connection/Types.hs, dist/build/Network/Connection/Types.o, dist/build/Network/Connection/Types.dyn_o )
:info:build [2 of 2] Compiling Network.Connection ( Network/Connection.hs, dist/build/Network/Connection.o, dist/build/Network/Connection.dyn_o )
:info:build Network/Connection.hs:122:43: error: [GHC-83865]
:info:build     • Couldn't match expected type ‘crypton-x509-store-1.6.9:Data.X509.CertificateStore.CertificateStore’
:info:build                   with actual type ‘Data.X509.CertificateStore.CertificateStore’
:info:build       NB: ‘crypton-x509-store-1.6.9:Data.X509.CertificateStore.CertificateStore’
:info:build             is defined in ‘Data.X509.CertificateStore’
:info:build                 in package ‘crypton-x509-store-1.6.9’
:info:build           ‘Data.X509.CertificateStore.CertificateStore’
:info:build             is defined in ‘Data.X509.CertificateStore’
:info:build                 in package ‘x509-store-1.6.9’
:info:build     • In the expression: globalCertificateStore cg
:info:build       In a record update at fields ‘TLS.sharedCAStore’,
:info:build                                    ‘TLS.sharedValidationCache’,
:info:build       with type constructor ‘TLS.Shared’
:info:build       and data constructor ‘TLS.Shared’.
:info:build       In the expression:
:info:build         def
:info:build           {TLS.sharedCAStore = globalCertificateStore cg,
:info:build            TLS.sharedValidationCache = validationCache}
:info:build     |
:info:build 122 |             { TLS.sharedCAStore         = globalCertificateStore cg
:info:build     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^
:info:build Error: cabal: Failed to build connection-0.3.1 (which is required by
:info:build exe:pandoc from pandoc-cli-0.1). See the build log above for details.

Second error (with port install pandoc +stack) builds an incompatible architecture but does compile Network.connections...:

:info:build pandoc                           > [  6 of 206] Compiling Text.Pandoc.Citeproc.Data
:info:build pandoc                           > <command line>: dlopen(/opt/local/lib/libz.dylib, 0x0005): tried: '/opt/local/lib/libz.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libz.dylib' (no such file), '/opt/local/lib/libz.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/opt/local/lib/libz.1.2.13.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libz.1.2.13.dylib' (no such file), '/opt/local/lib/libz.1.2.13.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
:info:build --  While building package pandoc-3.1.1 (scroll up to its section to see the error) using:
:info:build       /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_pandoc/pandoc/work/.home/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.6.3.0_ghc-9.2.5 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.6.3.0 build lib:pandoc lib:xml-light --ghc-options ""
:info:build     Process exited with code: ExitFailure 1

Change History (2)

comment:1 Changed 17 months ago by jmroot (Joshua Root)

Cc: judaew@… removed
Keywords: pandoc upgrade removed
Owner: set to judaew
Status: newassigned

comment:2 Changed 16 months ago by judaew (Vadym-Valdis Yudaiev)

Resolution: fixed
Status: assignedclosed

In 4d9c1684e0091d3cce995851c8f6182f9bff9dd2/macports-ports (master):

pandoc: Switch to binary release, update to 3.1.5

Closed: #67710

Note: See TracTickets for help on using tickets.