Opened 7 years ago

Closed 7 years ago

#54309 closed defect (fixed)

libnetpbm @10.78.05_1: build fails if default python is python36

Reported by: mndavidoff (Monte Davidoff) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: petrrr, xrobin (Xavier Robin), BrentSqAR, Serge3leo (Serguei E. Leontiev)
Port: libnetpbm, netpbm

Description

Building man pages for libnetpbm fails if the MacPorts default python is python36.

$ port select --show python
The currently selected version for 'python' is 'python36'.
$ sudo port -vs install libnetpbm
...
Converting libnetpbm.html to libnetpbm.3
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/advanced/buildtools/makeman", line 337
    raise exc_type, exc_value, exc_traceback
                  ^
SyntaxError: invalid syntax
gnumake: *** [libnetpbm.3] Error 1
Command failed: /usr/bin/gnumake MAKEMAN='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/advanced/buildtools/makeman -v' USERGUIDE=. -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/work/advanced/buildtools/manpage.mk manpages
Exit code: 2
Error: Failed to build libnetpbm: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_netpbm/libnetpbm/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libnetpbm failed

The man pages build successfully when the MacPorts default python is python27.

It looks like the problem was introduced in 601681e.

Attachments (1)

main.log.gz (16.4 KB) - added by mndavidoff (Monte Davidoff) 7 years ago.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.gz added

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: set to ryandesign
Port: netpbm added
Status: newaccepted

Thanks, I'll see what I can do.

comment:2 Changed 7 years ago by mndavidoff (Monte Davidoff)

I thought of a couple of possible approaches to fix the problem.

  1. Make the port depend on python27 and arrange for python27 to run makeman, or
  2. Patch makeman to change raise exc_type, exc_value, exc_traceback to just raise, which automatically re-raises the last exception that was active in the current scope in both Python 2 and Python 3 without the need to specify exc_type, exc_value, exc_traceback.

Thanks!

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

I reported the problem to the developer, and he says your fix will be in the next series (presumably 10.79).

comment:4 Changed 7 years ago by petrrr

Cc: petrrr added

comment:5 Changed 7 years ago by xrobin (Xavier Robin)

Cc: xrobin added

comment:6 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: BrentSqAR added

Has duplicate #54437.

comment:7 Changed 7 years ago by Serge3leo (Serguei E. Leontiev)

Cc: Serge3leo added

comment:8 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In c3cbbe16edd854521d982eaccb1d3c2128356730/macports-ports:

netpbm: Update to 10.79.02

Closes: #54309

Note: See TracTickets for help on using tickets.