Opened 6 years ago

Closed 20 months ago

#57421 closed defect (fixed)

gmtl @0.6.1: AttributeError: 'NoneType' object has no attribute 'group'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mccdo@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: gmtl

Description

gmtl does not build:

Executing:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gmtl/gmtl/work/gmtl-0.6.1" && scons -j8 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gmtl/gmtl/work/gmtl-0.6.1" && scons -j8 
scons: Reading SConscript files ...
Building GMTL Version: 0.6.1
Install prefix:  /usr/local
AttributeError: 'NoneType' object has no attribute 'group':
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gmtl/gmtl/work/gmtl-0.6.1/SConstruct", line 622:
    baseEnv = BuildPlatformEnv()
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gmtl/gmtl/work/gmtl-0.6.1/SConstruct", line 280:
    env = BuildDarwinEnvironment()
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gmtl/gmtl/work/gmtl-0.6.1/SConstruct", line 143:
    compiler_ver       = match_obj.group(1)
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gmtl/gmtl/work/gmtl-0.6.1" && scons -j8 
Exit code: 2

Change History (4)

comment:1 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

This is happening because the SConstruct is getting the output of $CXX -v and is expecting it to match the regular expression gcc version ((\d+)\.(\d+)\.(\d+)). On a modern Mac there are no matches from that regular expression, of course, because $CXX isn't gcc anymore so its output doesn't contain the string gcc version.

comment:2 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

This is https://sourceforge.net/p/ggt/bugs/28/. I didn't like the fix proposed there so I wrote a different one. Additional issues remain after fixing that. I'm still working on it.

comment:3 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Keywords: haspatch added

comment:4 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In d10d2fa46327a2d59923f4a77b983dcbf3526c13/macports-ports (master):

gmtl: Fix build issues

Add patches to fix build failures when using clang, when using the
latest version of scons, when scons is using python 3, and to prevent
the creation of the unwanted file gmtl-0.6.1.tar.gz and to install the
file gmtl.pc.

Add runtime dependencies on flagpoll and python which are used by
gmtl-config. flagpoll is currently incompatible with python 3 and uses
python27 so use the same python here to reduce the number of pythons
a user needs to install.

Specify absolute path to scons.

Specify prefix at build time so that build output does not give the
erroneous impression that files will be installed in /usr/local.

Specify empty directories for Boost and CppUnit at build time so that
any Boost or CppUnit that might be installed in /usr/local is not
inadvertently used.

No need to specify destroot.cmd or destroot.target; the defaults work.

Add modeline.

Modernize checksums.

Set platforms to any and set supported_archs to noarch because this port
doesn't install anything architecture- or OS-specific.

Add GitHub handle to maintainers line.

Install documentation files.

Indicate license. The software claims to be licensed LGPL-2.1+ but there
is also a license addendum that imposes additional restrictions and the
LGPL does not permit the imposition of additional restrictions.

Rewrite master_sites to avoid redirects.

Closes: #57421

Note: See TracTickets for help on using tickets.