[Bug 271752] devel/rubygem-prometheus-client-mmap fails to build (wrong variant of Make)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 31 May 2023 16:27:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271752

            Bug ID: 271752
           Summary: devel/rubygem-prometheus-client-mmap fails to build
                    (wrong variant of Make)
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mfechner@FreeBSD.org
          Reporter: laurent@daverio.net
             Flags: maintainer-feedback?(mfechner@FreeBSD.org)
          Assignee: mfechner@FreeBSD.org

Trying to build port `www/gitlab-ce` fails with a bunch of errors related to
this port.

Trying to build this port directly shows the same errors:

"""
make[1]:
"/usr/ports/devel/rubygem-prometheus-client-mmap/work/stage/usr/local/lib/ruby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs/Makefile"
line 8: Invalid line type
make[1]:
"/usr/ports/devel/rubygem-prometheus-client-mmap/work/stage/usr/local/lib/ruby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs/Makefile"
line 10: Invalid line type
make[1]:
"/usr/ports/devel/rubygem-prometheus-client-mmap/work/stage/usr/local/lib/ruby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs/Makefile"
line 20: Invalid line type
"""

The reason seems to be that the generated `Makefile` uses GNU Make, not BSD
Make , syntax. It can be verified directly:

"""shell
cd
/usr/ports/devel/rubygem-prometheus-client-mmap/work/stage/usr/local/lib/ruby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs
gmake
"""

Build starts normally, then fails with another error ("cannot find type
`pthread_mutex` in this scope").

As a first step towards fixing the build, is there a way to specify that this
specific Makefile should use GNU Make?

-- 
You are receiving this mail because:
You are the assignee for the bug.