From nobody Fri Aug 30 19:03:31 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 4WwSGs1VfQz5PXLt for ; Fri, 30 Aug 2024 19:03:33 +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 4WwSGs119Fz4TGW; Fri, 30 Aug 2024 19:03:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725044613; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QUdMFIJGvccZKZU81tbMbluilG7PXPq5zwg3leIsfKI=; b=t5ArN3ObQVdw6+8X8ulEx9JBNFF0gLZp/slY2wJyhXlLpoaGGiVf7Sehp5pxLTvkrRdYF/ IwlHaHS6FUStn55aqA8AYjNNmlKKNh7OvplLZ5g4mBBFs97mBspqh37IV1yR0eCKak7BSw kEkA52Z62xDf6CDHoRYOGbR+owcFJp1dq2bjeoStQIMLMR/b1DHappDAT61/0n8SYTFKAY 7cQA+v5kusXUu4cgiZkGh2IOdTB5wd162/2xy8P9Li2eR4f+umzcew84AqCsVUJvQ1HVwp /DFOmJ2Jfy11qraQSLxtOhCzenjtq4n8MuG5caU1dBv0HsJ0K8y4BxIeDauHWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725044613; a=rsa-sha256; cv=none; b=D1u10VU9VuguAQooYRhhcAL/lvMTGaiyO2lgNjM419LiJ7zKv7yS3SzofsxdB/Bc/pLM+M CLImrglBzEEyVqlXf1ksrEZ7czv3UOInHHQJhII+6ZqOQGZXWFfe9mQc/ll55+wsnUcrb6 OOI3E+4w1PlYNuFSbODzJkJER/58/Yq3hK/c41vLmw3tDrupIE6YKraNv2EmIBvRaTaI+Y GCQx1jWXgfT7s6NmglsqcEf6Oe0bQ8iocHtIfCmF6rBU/czBNhz9yuRdQrVNCeowWsaD2c lWg4rNBw6vbsgcTQVJcg5R6ou2iU65omY6G7oYPcOmC8zZcK35G/2Q80Zr1dNw== 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=1725044613; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QUdMFIJGvccZKZU81tbMbluilG7PXPq5zwg3leIsfKI=; b=bjdf+N9qxFrSvrft4m4BpzMajqK47WRyC38xA/y7pLzYBRLSTBEejyzTbwLRxSkH4DOPE6 tmP4tLnG3xnNKxVh7Gb4VffgpJqV3h7AGGIGQ1lXQnWpo9dPhn0C308ltGBYpz3Hj2TMox zIvye8VfdV4bcSJ9Ja8YZsvnPLLO52a47J8EjA/Chmof40K0W0ka2Kc8pynZQfG+L3wyhG wLYsLsTSqKUBnibX2ut7fQFtXIvqF8/PsMlhc7vCFK7DfdqIyVvzyCCWyZcp8MRw39fOqa Ap/eM/v3K3wEEwHgWStwKAnOoTLyowqm82gEHngacZjuM5Njyljik0/OVT2g7A== 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 4WwSGr72KXz1ChS; Fri, 30 Aug 2024 19:03:32 +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 CA3FD54810; Fri, 30 Aug 2024 21:03:31 +0200 (CEST) Content-Type: text/plain; charset=utf-8 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 From: Dimitry Andric In-Reply-To: Date: Fri, 30 Aug 2024 21:03:31 +0200 Cc: freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <2B2BB530-202A-4359-BFC9-A608A8FC66FE@FreeBSD.org> <2047D1EE-A369-4F88-93C3-E11AEC3A22E9@FreeBSD.org> To: J David X-Mailer: Apple Mail (2.3731.700.6.1.2) On 30 Aug 2024, at 20:45, J David wrote: >=20 > On Fri, Aug 30, 2024 at 2:36=E2=80=AFPM Dimitry Andric = wrote: >> Try using the attached patch. >=20 > Wow. That's... nasty... but effective. Haven't tested (I'm not the end > user) but it does build that way. I guess it's probably safe because > it's not like the code could have also been using std::hex somewhere. This program is written in a bit of a weird mixed C and C++ style. It looks like somebody tried to modernize an aging C codebase, then stopped halfway through. :) It is not really anything special though, there are loads of programs in ports that have strange or sloppy coding styles. If there is still an active upstream you can always try to prod them to fix it, but if they are grumpy or if upstream is dead, you can either patch out all the nastiness, or delete the port. > Do you want to open a bug report about it? It's your patch. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281141 -Dimitry