Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675764 - app-text/texlive-core-2017-r4 installs broken /usr/bin/pdfbook2
Summary: app-text/texlive-core-2017-r4 installs broken /usr/bin/pdfbook2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-18 15:08 UTC by Julien Dessaux
Modified: 2019-11-15 11:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Dessaux 2019-01-18 15:08:39 UTC
The /usr/bin/pdfbook2 python script is broken. It is to be executed by #!/usr/bin/env python (so python3 by default nowadays) but python2 is needed.

Reproducible: Always

Steps to Reproduce:
1.Install texlive-core
2.Try to run pdfbook2 on any pdf
3.Enjoy the classic python2 script launched with python3 error message
Actual Results:  
julien@hurricane ~/Downloads $ pdfbook2 --paper=a4paper docker.pdf
  File "/usr/bin/pdfbook2", line 32
    print "\nProcessing", name
                       ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("\nProcessing", name)?


Expected Results:  
julien@hurricane ~/Downloads $ pdfbook2 --paper=a4paper docker.pdf

    pdfbook2 v1.2
    (c) 2015 Johannes Neumann (http://www.neumannjo.de)
    licensed under GPLv3 (http://www.gnu.org/licenses/gpl-3.0)
    based on pdfbook by David Firth with help from Marco Pessotto


Processing docker.pdf
Getting bounds... done
cropping... done
create booklet... done
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-11-15 11:49:22 UTC
This is a python2 script.