Bug 2365309

Summary: pandoc fails to convert with ConTeXt error
Product: [Fedora] Fedora Reporter: Stefan Becker <chemobejk>
Component: pandocAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: castedo, michel, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: pandoc-3.1.11.1-34.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-11 00:54:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Becker 2025-05-09 11:11:24 UTC
I just ran into a problem with a default template in pandoc, which already has been fixed upstream and released.

I'm pretty sure that #2360949 is not intended for back porting, but would it be possible to at least backport the pandoc update to F42?

Thanks.

Reproducible: Always

Comment 1 Jens Petersen 2025-05-16 04:36:40 UTC
Do you have more details or pointers to the template problem?
A lighter solution would probably be to fix just the template file.

I have been pondering whether to backport the big Haskell update to F42
(for which it was originally targeted... but I don't have time to work on that yet).

Basically Fedora Haskell is tracking Stackage LTS, so just rebasing pandoc may not be viable/possible.
Though if people prepared to help we could also consider it.

Comment 2 Stefan Becker 2025-05-16 07:04:34 UTC
(In reply to Jens Petersen from comment #1)
> Do you have more details or pointers to the template problem?
> A lighter solution would probably be to fix just the template file.

I feared you might say that...

In pandoc-3.2.1 an unnecessary line was removed from the ConTeXt template:

https://github.com/jgm/pandoc/issues/9820
https://github.com/jgm/pandoc/commit/61bc9a0c47d758deaa4bcd7f365d6d39095a2abb.patch

That line unfortunately can't be overridden by including a header (or at least I do not know enough to be able to disable the export feature once it has been enabled by that line)


> Though if people prepared to help we could also consider it.

I rebased the f42 branch to rawhide HEAD and gave the resulting SRPM a spin inside F42 mock. It would require ghc-toml-parser >= 2.0 to be in F42:

    Configuring typst-0.7...
    Error: Setup: Encountered missing or private dependencies:
    toml-parser >=2.0.0.0 && <2.1, typst-symbols >=0.1.7 && <0.1.8

All other sub-packages build fine.

Comment 3 Stefan Becker 2025-05-16 07:07:39 UTC
(In reply to Stefan Becker from comment #2)
> I rebased the f42 branch to rawhide HEAD and gave the resulting SRPM a spin
> inside F42 mock. It would require ghc-toml-parser >= 2.0 to be in F42:
> 
>     Configuring typst-0.7...
>     Error: Setup: Encountered missing or private dependencies:
>     toml-parser >=2.0.0.0 && <2.1, typst-symbols >=0.1.7 && <0.1.8

Ahh, ghc-typst-symbols is also packaged by Fedora. That would need to be updated to typst-symbols >=0.1.7.

Comment 4 Jens Petersen 2025-09-01 12:04:10 UTC
Sorry took me too long to return to this (and probably the backport title put me off looking at it)

(In reply to Stefan Becker from comment #2)
> In pandoc-3.2.1 an unnecessary line was removed from the ConTeXt template:
> 
> https://github.com/jgm/pandoc/issues/9820
> https://github.com/jgm/pandoc/commit/61bc9a0c47d758deaa4bcd7f365d6d39095a2abb.patch

Right so probably applying this patch would be enough and avoid a costly rebase
(which would be a lot more work) and can be backported to older branches easily.

Comment 5 Fedora Update System 2025-09-02 04:14:19 UTC
FEDORA-2025-8ab81f578c (pandoc-3.1.11.1-34.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-8ab81f578c

Comment 6 Fedora Update System 2025-09-03 00:50:46 UTC
FEDORA-2025-8ab81f578c has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-8ab81f578c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-8ab81f578c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-09-11 00:54:41 UTC
FEDORA-2025-8ab81f578c (pandoc-3.1.11.1-34.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.