From nobody Sun Jun 25 18:10:05 2023 X-Original-To: dev-commits-ports-main@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 4QpzXf2VRZz4jGP3; Sun, 25 Jun 2023 18:10:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QpzXZ25Qkz3lVq; Sun, 25 Jun 2023 18:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687716606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J6C3VEWuCY69Lbl4r6THjDtMrtsnW+d+Vn8wfaMtZGg=; b=xgLQ35h001tH7MskV0X/TVZYaOjWmpWwN94aIVoLM9FWP8T4qRwJCZIOw/bAmUycWRFtJU YBn+Lva6PF6Q1qyL+0uz2aqVjyGvNgLvGk2a5Wz1hS+ugY17GaOq2pzwklQeFuK+GA5qfO 2lQ+29KPTgVfU1UIhE9r/d/VWNXZqyEy8fAYlaBGxABV9XXVWJ6fe1n8gzpek0jgPjuI5j wg+LKEd9a2PX/TLUPyhMaWM2KX4Gxj/Me80rBf/dNMzDo7kwSImKTS0AhuF+RBMccKESVQ 6LNRF7+eGiOOcUJpG5NfwZsDz9wtcvRq9XeTiS+DyRRwCq8dNalJ7nqTu2OaMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687716606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J6C3VEWuCY69Lbl4r6THjDtMrtsnW+d+Vn8wfaMtZGg=; b=g0zRnizeAyZuWxnBQxpWjMxLL0DPidr/vx8Lp8k0V5DsKTxTyOsKVKk9xFMoHGZzeiiOPS Di3Hz0H3UZeV5suk+29QmPEO/UK5pf4ZgnM2mrZIABYxpf2PHj5uQxSawaOFK+ihM0QB37 mtefcQulyU+1ZTsaLZpD3fjNJbM7hzKIkPOEe1Ma7Um+Y5pPViPABjNmKyPOLsJ5/i8X/R krgxN122qi4iUwCbSo4oS7PcuL87IJTZ+zsXqZL3Ius4EL8Wlf79TqfBz2Tf/a1cmhd2PG vvIsV4v+3Ys0mlfeosAeHJrrjQyg+b5gp8JEDxTcMFriFCpuSbFyaQAOEfgVxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687716606; a=rsa-sha256; cv=none; b=EB6GMJ/WrQw1yJm6M0QD3NClMAM0s/FKJf9MQ+rS13Dhi3gw680Hk4WZJ5yPwKGx01sNm+ gXMUSMHWYonLuecnLQ2jZN8+eurydMmmMOdsg5Xstn/7YDnvW1yWpkP3eOObqT9Nmdc4wL zI6c3z4zUIR3ItlKUnabAZbM7O7mFihUHpuPn0ktvtyjCJrGlNF5Bvi8hTr6EFQzluZP5m tof7jouLT7/+doaM55KFgOt5DjAbbTMdlIlRl9TIPcFlEFR4y68Xb9S1n58Bxxgrqw8BmN W3YCYpnt/0i+c7bkRd6xIBSVw/AcZCP16eEq19ntQoDOirzzu5FhtvjRyW0cSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QpzXZ0McWzcwy; Sun, 25 Jun 2023 18:10:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35PIA57v095029; Sun, 25 Jun 2023 18:10:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35PIA5tq095026; Sun, 25 Jun 2023 18:10:05 GMT (envelope-from git) Date: Sun, 25 Jun 2023 18:10:05 GMT Message-Id: <202306251810.35PIA5tq095026@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 627d9b8a64cd - main - chinese/libime: Fix build with llvm16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 627d9b8a64cd6ad3beb69fc4b5a0e63e06a58ebe Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=627d9b8a64cd6ad3beb69fc4b5a0e63e06a58ebe commit 627d9b8a64cd6ad3beb69fc4b5a0e63e06a58ebe Author: Muhammad Moinur Rahman AuthorDate: 2023-06-25 13:49:15 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-06-25 18:09:48 +0000 chinese/libime: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- chinese/libime/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chinese/libime/Makefile b/chinese/libime/Makefile index 64c4ccce69cf..7ac105beb7da 100644 --- a/chinese/libime/Makefile +++ b/chinese/libime/Makefile @@ -36,6 +36,17 @@ OPENGRAM_LM_TAR= lm_sc.arpa-20220810.tar.xz OPENGRAM_DICT_TAR= dict-20220810.tar.xz TABLE_DICT_TAR= table.tar.gz +.include + +post-patch: +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 + @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \ + ${WRKSRC}/src/libime/core/kenlm/lm/trie_sort.hh \ + ${WRKSRC}/src/libime/core/kenlm/util/joint_sort.hh \ + ${WRKSRC}/src/libime/core/kenlm/util/sized_iterator.hh +.endif + + post-extract: ${CP} ${DISTDIR}/${DIST_SUBDIR}/${OPENGRAM_LM_TAR} ${WRKSRC}/data ${CP} ${DISTDIR}/${DIST_SUBDIR}/${OPENGRAM_DICT_TAR} ${WRKSRC}/data