Re: [MacPorts] #67807: glew’s sed code in Makefile has a bug which prevents it from recognizing Darwin versions containing letters
MacPorts
noreply at macports.org
Sun Jul 23 15:27:23 UTC 2023
#67807: glew’s sed code in Makefile has a bug which prevents it from recognizing
Darwin versions containing letters
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: glew |
---------------------------+--------------------
Description changed by barracuda156:
Old description:
> UPD. Keep the info below for the record, and it is unclear why {{{glew}}}
> had no .pc file for me (but irrelevant now).
> What turned out to be the bug is SED code in Makefile of {{{glew}}},
> which apparently drops digits instead of doing a cut-off like it should
> be done. In result, any developer or beta testing builds will not be
> recognized, being converted to “platforms” darwind, darwinb etc.
>
> Should be a trivial thing to fix, but I do not know sed :)
> Could someone help with this, please?
>
> {{{
> checking GL/gl.h usability... yes
> checking GL/gl.h presence... yes
> checking for GL/gl.h... yes
> checking for compiling a minimal OpenGL program... yes
> checking for linking a minimal OpenGL program... yes
> checking for OpenGL/glu.h... yes
> checking for compiling a minimal OpenGL Utility (GLU) program... yes
> checking for linking a minimal GLU program... yes
> checking if GLU varargs tesselator is using non-standard form... no
> checking for FT2... yes
> checking for PCRE2... yes
> checking for GLEW... configure: error: Package requirements (glew) were
> not met:
>
> No package 'glew' found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables GLEW_CFLAGS
> and GLEW_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
>
> Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gource/gource/work/gource-0.54"
> && ./configure --prefix=/opt/local --with-
> boost=/opt/local/libexec/boost/1.76 --with-tinyxml
> Exit code: 1
> Error: Failed to configure gource: consult
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gource/gource/work/gource-0.54/config.log
> Error: Failed to configure gource: configure failure: command execution
> failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gource/gource/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there
> is a bug.
> Error: Processing of port gource failed
> }}}
>
> {{{glew}}} is installed, however:
> {{{
> 36-25% port installed glew
> The following ports are currently installed:
> glew @2.2.0_0 (active)
> }}}
>
> P. S. If old systems cannot be supported, the port should be restricted
> to what works in terms of archs and OS.
New description:
UPD. Keep the info below for the record, and it is unclear why {{{glew}}}
had no .pc file for me (but irrelevant now).
What turned out to be the bug is SED code in Makefile of {{{glew}}}, which
apparently drops digits instead of doing a cut-off like it should be done.
In result, any developer or beta testing builds will not be recognized,
being converted to “platforms” darwind, darwinb etc.
Should be a trivial thing to fix, but I do not know sed :)
Could someone help with this, please?
This:
{{{
SYSTEM ?= $(shell config/config.guess | cut -d - -f 3 | sed -e
's/[0-9\.]//g;')
SYSTEM.SUPPORTED = $(shell test -f config/Makefile.$(SYSTEM) && echo 1)
}}}
__________________________________________
{{{
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for compiling a minimal OpenGL program... yes
checking for linking a minimal OpenGL program... yes
checking for OpenGL/glu.h... yes
checking for compiling a minimal OpenGL Utility (GLU) program... yes
checking for linking a minimal GLU program... yes
checking if GLU varargs tesselator is using non-standard form... no
checking for FT2... yes
checking for PCRE2... yes
checking for GLEW... configure: error: Package requirements (glew) were
not met:
No package 'glew' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLEW_CFLAGS
and GLEW_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gource/gource/work/gource-0.54"
&& ./configure --prefix=/opt/local --with-
boost=/opt/local/libexec/boost/1.76 --with-tinyxml
Exit code: 1
Error: Failed to configure gource: consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gource/gource/work/gource-0.54/config.log
Error: Failed to configure gource: configure failure: command execution
failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gource/gource/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there
is a bug.
Error: Processing of port gource failed
}}}
{{{glew}}} is installed, however:
{{{
36-25% port installed glew
The following ports are currently installed:
glew @2.2.0_0 (active)
}}}
P. S. If old systems cannot be supported, the port should be restricted to
what works in terms of archs and OS.
--
--
Ticket URL: <https://trac.macports.org/ticket/67807#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list