Opened 6 years ago

Closed 5 years ago

#57758 closed defect (fixed)

gnudatalanguage @0.9.7: fatal error: '/usr/include/fnmatch.h' file not found

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: mojave Cc: majoc-at-astro (majoc-at-astro), Schamschula (Marius Schamschula), jaymurthy
Port: gnudatalanguage

Description

gnudatalanguage fails to build on mojave, which has no /usr/include:

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_gnudatalanguage/gnudatalanguage/work/gdl-0.9.7/src/file.cpp:46:11: fatal error: '/usr/include/fnmatch.h' file not found
#       include "/usr/include/fnmatch.h"
                ^~~~~~~~~~~~~~~~~~~~~~~~

This is happening because the Portfile does this:

post-patch {
   # Avoid using heimdal's broken fnmatch.h
   reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/src/file.cpp
}

Change History (6)

comment:1 Changed 6 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc-at-astro added

comment:2 Changed 6 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:3 Changed 6 years ago by jaymurthy

Cc: jaymurthy added

comment:4 Changed 6 years ago by tenomoto (Takeshi Enomoto)

In 3472c41836f9f8bed6c7971590c0166f0af55512/macports-ports (master):

gnudatalanguage: exclude Mojave from reinplace

See #57758

comment:5 Changed 6 years ago by tenomoto (Takeshi Enomoto)

I have command-line tools installed to have /usr/include. What is the right way to provide system headers on Majave? SDK?

comment:6 Changed 5 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: assignedclosed

In ad56b98e99fe9d3cf31a0a094174fc4716cb914d/macports-ports (master):

gnudatalanguage: update to 0.99 add support for glpk

Closes: #57758

Note: See TracTickets for help on using tickets.