[MacPorts] #61530: dblatex @0.3.11_1 can be built with Python 3

MacPorts noreply at macports.org
Fri Nov 27 13:21:49 UTC 2020


#61530: dblatex @0.3.11_1 can be built with Python 3
--------------------------+------------------------
  Reporter:  ballapete    |      Owner:  neverpanic
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:  bigsur
      Port:  dblatex      |
--------------------------+------------------------

Comment (by ballapete):

 It's actually this line from the original version of `dblatex`'s
 `Portfile` that causes the faulty path to Python 3:

 {{{
     reinplace "s|#!/usr/bin/env python|#!${python.bin}|"
 ${destroot}${python.prefix}/bin/dblatex
 }}}

 The built file `scripts/dblatex` starts with

 {{{
 #! /usr/bin/env python3
 }}}

 so `Portfile` should better contain

 {{{
     reinplace "s|#!/usr/bin/env python3|#!${python.bin}|"
 ${destroot}${python.prefix}/bin/dblatex
 }}}

 which leads to a different fault in the installed `dblatex` executable:

 {{{
 #!/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8.8
 }}}

 I don't know where the cause for this is. I think you could release a
 `dblatex-devel Portfile` for those who want to get rid of `Python 2.7`.

-- 
Ticket URL: <https://trac.macports.org/ticket/61530#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list