Bug 50484

Summary: pandoc: too old
Product: Sisyphus Reporter: Yuri N. Sedunov <aris>
Component: pandocAssignee: Leonid <ytinka7>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: blocker    
Priority: P3 CC: ancieg, antohami, lav, protvin, respublica, sbolshakov, slev, ytinka7
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 46625    

Description Yuri N. Sedunov 2024-05-28 14:58:53 MSK
pandoc 3.2 released (2024-05-11)

Прошу срочно обновить.
Comment 1 Yuri N. Sedunov 2024-07-03 13:33:02 MSK
https://github.com/jgm/pandoc/releases/tag/3.2.1
Comment 2 Yuri N. Sedunov 2024-08-19 08:20:24 MSK
https://github.com/jgm/pandoc/releases/tag/3.3
Comment 3 Yuri N. Sedunov 2025-01-24 18:59:12 MSK
https://github.com/jgm/pandoc/releases/tag/3.6.2
Comment 4 Yuri N. Sedunov 2025-03-24 00:38:33 MSK
https://github.com/jgm/pandoc/releases/tag/3.6.4
Comment 5 Yuri N. Sedunov 2025-04-22 09:56:10 MSK
ping!
Comment 6 Anton Zhukharev 2025-04-22 16:46:55 MSK
Подождите пока закончится бутстрап до свежей версии ghc
Comment 7 Anton Zhukharev 2025-04-22 16:51:24 MSK
Леонид, можете подготовить готовый пример спека для сборки подобных пакетов и их зависимостей, либо самостоятельно обновить pandoc?
Comment 8 Leonid 2025-04-22 16:54:50 MSK
В ближайшие пару дней обновлю

Статьи будут на
https://www.altlinux.org/Haskell

И

https://www.altlinux.org/Haskell/RPM
https://www.altlinux.org/Haskell/Vendored
Comment 9 Yuri N. Sedunov 2025-04-28 12:53:25 MSK
(Ответ для Leonid на комментарий #8)
> В ближайшие пару дней обновлю

Не выходит каменный цветок?
Comment 10 Leonid Znamenok 2025-04-28 13:22:13 MSK
В процессе
Comment 11 Yuri N. Sedunov 2025-04-29 21:24:46 MSK
Куда-то не туда заносит ваш pandoc.

RROR:root:Cannot convert document: b'Could not find data file /usr/src/.local/state/cabal/store/ghc-9.6.6/pandoc-3.6.4-9c52d30b4a3ec455cc2a346f7323d06437c1ab1b1f6a097620df44253a7040aa/share/data/templates/default.html5\n'
Comment 12 Repository Robot 2025-04-29 21:33:49 MSK
pandoc-3.6.4.1-alt1 -> sisyphus:

 Wed Apr 23 2025 Leonid Znamenok <respublica@altlinux> 3.6.4.1-alt1
 - 3.6.4.1 (ALT#50484) (ALT#49673)
 - rebuilt with rpm-build-haskell-vendored
Comment 13 Leonid Znamenok 2025-04-29 21:36:23 MSK
Не успел коммит отменить.
Comment 14 Yuri N. Sedunov 2025-04-29 21:54:39 MSK
Говорят, что в пакете есть тесты. Надо бы их прогнать при сборке.

https://pandoc.org/installing.html#running-tests

--------------------------------------------------------------------
Running tests
Pandoc comes with an automated test suite. To run with cabal, cabal test; to run with stack, stack test.

To run particular tests (pattern-matching on their names), use the -p option:

cabal test --test-options='-p markdown'
Or with stack:

stack test --test-arguments='-p markdown'
It is often helpful to add -j4 (run tests in parallel) and --hide-successes (don’t clutter output with successes) to the test arguments as well.

If you add a new feature to pandoc, please add tests as well, following the pattern of the existing tests. The test suite code is in test/test-pandoc.hs. If you are adding a new reader or writer, it is probably easiest to add some data files to the test directory, and modify test/Tests/Old.hs. Otherwise, it is better to modify the module under the test/Tests hierarchy corresponding to the pandoc module you are changing.

----------------------------------------------------------------------------
Comment 15 Leonid Znamenok 2025-04-29 22:05:53 MSK
В chroot'е тесты пройдут. 

Плюс ещё на некоторых форматах сторонние файлы не требуются и конвертация проходит.

Проблема тут из-за схемы сборки с вендорингом, буду чинить.
Comment 16 Yuri N. Sedunov 2025-04-30 10:14:13 MSK
Пересборкой geeqie еще можно проверить ваши грядущие исправления.

Package: geeqie-2.5-alt1
Status: Sisyphus/x86_64 test rebuild failed
URL: http://git.altlinux.org/beehive/logs/Sisyphus/x86_64/archive/2025/0430/error/geeqie-2.5-alt1
...
[6/186] Generating README.html with a custom command
FAILED: README.html
/usr/bin/pandoc ../README.md -o README.html
Could not find data file /usr/src/.local/state/cabal/store/ghc-9.6.6/pandoc-3.6.4-9c52d30b4a3ec455cc2a346f7323d06437c1ab1b1f6a097620df44253a7040aa/share/data/abbreviations
Comment 17 Yuri N. Sedunov 2025-04-30 10:24:19 MSK
И libgssdp1.6

FAILED: doc/gssdp-device-sniffer.1 
/usr/bin/pandoc ../doc/gssdp-device-sniffer.md /usr/src/RPM/BUILD/gssdp-1.6.3/doc/metadata.yml -s -t man -o doc/gssdp-device-sniffer.1
Could not find data file /usr/src/.local/state/cabal/store/ghc-9.6.6/pandoc-3.6.4-9c52d30b4a3ec455cc2a346f7323d06437c1ab1b1f6a097620df44253a7040aa/share/data/templates/default.man
Comment 18 Leonid Znamenok 2025-04-30 10:46:02 MSK
Спасибо.

Перед обновлением стоило проверить пересборку всего зависящего от pandoc.
Comment 19 Sergey Bolshakov 2025-04-30 11:36:27 MSK
(In reply to Leonid Znamenok from comment #18)
> Спасибо.
> 
> Перед обновлением стоило проверить пересборку всего зависящего от pandoc.

Глядя на заметное количество FTBFS  -- cтоило, да.
Когда ожидать работоспособный pandoc ?
Comment 20 Leonid Znamenok 2025-04-30 11:57:42 MSK
Сейчас локально собирается.

Если новых ошибок не вылезет, то сегодня будет.
Comment 21 Leonid Znamenok 2025-04-30 15:37:12 MSK
3.6.4.1-alt2 в репозитории.