Opened 5 weeks ago

Last modified 6 days ago

#57758 assigned defect

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

Reported by: ryandesign (Ryan 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 (3)

comment:1 Changed 10 days ago by majoc-at-astro (majoc-at-astro)

Cc: majoc-at-astro added

comment:2 Changed 8 days ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:3 Changed 6 days ago by jaymurthy

Cc: jaymurthy added
Note: See TracTickets for help on using tickets.