Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 675764

Summary: app-text/texlive-core-2017-r4 installs broken /usr/bin/pdfbook2
Product: Gentoo Linux Reporter: Julien Dessaux <adyxax>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED INVALID    
Severity: minor CC: tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.