Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2023 16:27:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271752] devel/rubygem-prometheus-client-mmap fails to build (wrong variant of Make)
Message-ID:  <bug-271752-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271752

            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/r=
uby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs/Mak=
efile"
line 8: Invalid line type
make[1]:
"/usr/ports/devel/rubygem-prometheus-client-mmap/work/stage/usr/local/lib/r=
uby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs/Mak=
efile"
line 10: Invalid line type
make[1]:
"/usr/ports/devel/rubygem-prometheus-client-mmap/work/stage/usr/local/lib/r=
uby/gems/3.1/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file_rs/Mak=
efile"
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/ru=
by/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 th=
is
specific Makefile should use GNU Make?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271752-7788>