Skip to content

"make pdf" fails with "make: *** [Makefile:9: pdf] Error 1" in Fedora 34 #78

@yuokada126

Description

@yuokada126

Expected Behavior

  • make pdf generates pdf file normally.

Actual Behavior

  • make pdf fails with the following error.
$ make pdf
mkdir -p output
PANDOC_VERSION=`pandoc --version | head -1 | cut -d' ' -f2 | cut -d'.' -f1`; \
if [ "$PANDOC_VERSION" -eq "2" ]; then \
	SMART=-smart; \
else \
	SMART=--smart; \
fi \

for f in markdown/*.md; do \
	FILE_NAME=`basename $f | sed 's/.md//g'`; \
	echo $FILE_NAME.pdf; \
	pandoc --standalone --template styles/chmduquesne.tex \
		--from markdown --to context \
		--variable papersize=A4 \
		--output output/$FILE_NAME.tex $f > /dev/null; \
	mtxrun --path=output --result=$FILE_NAME.pdf --script context $FILE_NAME.tex > output/context_$FILE_NAME.log 2>&1; \
done
resume.pdf
make: *** [Makefile:9: pdf] Error 1
  • The log shows 'context.lua' or 'mtx-context.lua' cannot be found.
$ cat output/context_resume.log 
mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'```
  • Runing mtxrun --generate command guided in README.md didn't resolve the issue.
  • Other commands such as make html, make docx and make rtf works as expected. (Generates output files without error)

Steps to reproduce the behavior

  1. Install Fedora 34 Workstation
  2. git clone https://github.com/mszep/pandoc_resume
  3. cd pandoc_resume
  4. sudo dnf install pandoc texlive-collection-context
  5. make pdf

Versions

$ context --version
mtx-context     | ConTeXt Process Management 1.03
mtx-context     |
mtx-context     | main context file: /usr/share/texlive/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2020.03.10 14:44
mtx-context     | main context file: /usr/share/texlive/texmf-dist/tex/context/base/mkiv/context.mkxl
mtx-context     | current version: 2020.03.10 14:44
$ pandoc --version
pandoc 2.9.2.1
Compiled with pandoc-types 1.20, texmath 0.12.0.2, skylighting 0.8.5
Default user data directory: /home/yuokada/.local/share/pandoc or /home/yuokada/.pandoc
Copyright (C) 2006-2020 John MacFarlane
Web:  https://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
$ rpm -qa | grep -e pandoc -e texlive-collection-context
pandoc-common-2.9.2.1-9.fc34.noarch
texlive-collection-context-svn54074-38.fc34.noarch
pandoc-2.9.2.1-9.fc34.x86_64
$ cat /etc/os-release 
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/34/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=34
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=34
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions