Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2024 20:36:30 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        J David <j.david.lists@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Building certain ports fails with errors in system C++ libraries
Message-ID:  <2047D1EE-A369-4F88-93C3-E11AEC3A22E9@FreeBSD.org>
In-Reply-To: <CABXB=RSzP6%2B%2B8psA1%2BaXgRPn6kR6k7g8X%2Br-Or3PuqA8ayg6%2Bg@mail.gmail.com>
References:  <CABXB=RQyTBJ1y-PzVey%2BabKNP=o5ydQGx6B%2Bq6p%2B=Y11=5H_DQ@mail.gmail.com> <2B2BB530-202A-4359-BFC9-A608A8FC66FE@FreeBSD.org> <CABXB=RSzP6%2B%2B8psA1%2BaXgRPn6kR6k7g8X%2Br-Or3PuqA8ayg6%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_E5B9D9C5-7457-4829-AA3A-912BE392E069
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On 30 Aug 2024, at 20:19, J David <j.david.lists@gmail.com> wrote:
>=20
> On Fri, Aug 30, 2024 at 1:54=E2=80=AFPM Dimitry Andric =
<dim@freebsd.org> wrote:
>> This is the problem: do not redefine identifiers like this, as it =
leads
>> to problems. Try renaming this macro to "my_hex", "le_hex" or =
anything
>> but "hex". :)
>=20
> /usr/include/c++/v1/ios is the system C++ standard library include
> file for streams.
>=20
> The "edit.h" file in this case comes from the port. Which the
> automated infrastructure for official FreeBSD packages is (somehow)
> able to build. But how?!

The builders use an older version of the system than you.

Try using the attached patch.

-Dimitry

--Apple-Mail=_E5B9D9C5-7457-4829-AA3A-912BE392E069
Content-Disposition: attachment;
	filename=editors__le-fix-hex-macro-1.diff
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="editors__le-fix-hex-macro-1.diff"
Content-Transfer-Encoding: 7bit

diff --git a/editors/le/Makefile b/editors/le/Makefile
index d3c803e84423..04108f14cffb 100644
--- a/editors/le/Makefile
+++ b/editors/le/Makefile
@@ -20,6 +20,11 @@ GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 
 MAKE_JOBS_UNSAFE=	yes
 
+post-patch:
+	@${FIND} ${WRKSRC} -type f \( -name '*.[ch]' -o -name '*.cc' \) | \
+		${XARGS} ${GREP} -l '[[:<:]]hex[[:>:]]' | \
+		${XARGS} ${REINPLACE_CMD} -e 's/[[:<:]]hex[[:>:]]/is_hex/g'
+
 derp-do-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} le ${STAGEDIR}${PREFIX}/bin)

--Apple-Mail=_E5B9D9C5-7457-4829-AA3A-912BE392E069--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2047D1EE-A369-4F88-93C3-E11AEC3A22E9>