From nobody Fri Aug 30 18:36:30 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WwRgg6bfgz5PVCM for ; Fri, 30 Aug 2024 18:36:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WwRgg5zLqz4Pym; Fri, 30 Aug 2024 18:36:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725042991; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/jD3lqcb+oc0jI4l9K/7IUTX8hSW6KEYqe9Y9Rk3b78=; b=Uv5BYL39qwELLzw9H3jXTu+mU4kPgY20Bu0ZDfboO6b/IOdh3XBJ2TynlYuzQHlCp28bXf DC3Py1dXZnKZrHNusuaf/4hGOm4HiR+Nv0Y3xosxHnLibzZMD0s4VIPQKM0tEZLNPv/IRp Irt4iXyhKAdupBQb6ZVUDtcgQFdkrBxRQB/0FQgInSTV5Sr3QM21GvCDUHJonDnCfEYdbv U860BNVMi6aBj/ZdcCvnYq56Wa3y5wWzQVpuHZ3E3j4oC6wNhtY13a16PIxuMKmapZe0rX olChmHySkEUMGZHVKC8edUQwzhxvxaYv/M7nUTislj28TDmKSQRfXGDSFFbCsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725042991; a=rsa-sha256; cv=none; b=k4MoO+XBeicFbG+V7RnuVU10hzMu+gFcOIaLae8HWOWeLO/J9ypMDLk86wkT91zgrIDEkV 62zPDIFzgK969mVlwedcH5cK4tWSj8b/JC04cKfnoGHs1G/D2+K1gsFvtuyHiCk8GSd92f zQ1SWWxl+2Gd9yJPgXlXcPnPI86A6xmyx2Lyi5Np0+WTQYSswPCSv4J6Z4PMG/h5V9mKYI R2F2y5nSFHBqeV2ZaKkRsZqpVDWdpU5uNpf08HJMmehyX/Ukn/vM4PG+wQ7Yk/dtrPDfNp SPZObzJKtIuBtnOtZxBqjkVGcpZSOLyyupGO6YLruhGvqvCBvz+lnswbV1iuxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725042991; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/jD3lqcb+oc0jI4l9K/7IUTX8hSW6KEYqe9Y9Rk3b78=; b=mdosH3RVKdtmti47rbrllzXoenSJPX9nmISPCuKtFj4VCOpW5Ce9CPZPge5MTVfOrbtunc JfM5HatoMCklDsPOhataJKb+3Jct1NqnmmUmcyUfHh+ZF8jVJVJagbrMTzSiIeVgHyl3L1 wsxP3MGrUTSMWjAdeJcUDHhCSDO7+TeOtkJL9KUMtdLxHm3rHxRCZFYVS5aeGAzZOMPL+N JWc5iayJ7QdSNmYSeOnhuCsgJ9yPbzqL6AuSM49rtgXeV1QccQF7hMmK8EQGoiJO9LWZud pZFramFs+H8A7DaTwB7XALEVJ8yetdbjAlQ9Ga1/Lf398ZmeI4VFJuiAP0gvvw== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R10" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WwRgg4vcJz1ClQ; Fri, 30 Aug 2024 18:36:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B9469545FC; Fri, 30 Aug 2024 20:36:30 +0200 (CEST) From: Dimitry Andric Message-Id: <2047D1EE-A369-4F88-93C3-E11AEC3A22E9@FreeBSD.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_E5B9D9C5-7457-4829-AA3A-912BE392E069" List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.2\)) Subject: Re: Building certain ports fails with errors in system C++ libraries Date: Fri, 30 Aug 2024 20:36:30 +0200 In-Reply-To: Cc: freebsd-ports@freebsd.org To: J David References: <2B2BB530-202A-4359-BFC9-A608A8FC66FE@FreeBSD.org> X-Mailer: Apple Mail (2.3731.700.6.1.2) --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 wrote: >=20 > On Fri, Aug 30, 2024 at 1:54=E2=80=AFPM Dimitry Andric = 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--