From nobody Wed Oct 16 19:25:58 2024 X-Original-To: dev-commits-ports-all@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 4XTLY25HKjz5Ytxg; Wed, 16 Oct 2024 19:25:58 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTLY24sB3z43Cc; Wed, 16 Oct 2024 19:25:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729106758; 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=hOAUUehNuM0YWE/eis/3X80xOMldk/mIFeHOPwpTsiI=; b=rE6qRyD6yZBv1kfeCILLfA/ZT11hVWoBP23Q1SRNuA7OgMQ/abyjVVkgXurZHmbS4iYq4l DJwA0dVl8eKlRnFDm/CSnUc7wauBkKdESwa+GUXDwine3/NIBoBZuSBGoyOXAFlnq9THml wRHNomowlq3CXTfpcuq/ltI4CHMnj+rzbvnyXSdkobBWhY7Dsy0RNUnqoiTgRAGhc8qOkb LFKWhLVZXytOfZAgjJnR+pGo95Z3FE3Jw9ok53jRUWZSHkxLdOCkSX76pWtEfY14ouN0Ss vSkoB0zPGR1uKA5UKd6hUW63/3k0hXusVS2ZHHdaSWnEc3ChHudZ4iOHHTSdRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729106758; 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=hOAUUehNuM0YWE/eis/3X80xOMldk/mIFeHOPwpTsiI=; b=aydso0jxdUhiS9A5ziPuxnfn5efZ0sQOfSRN+QBV1xzGGOz+BoApw25g6PZslGfZOlp8cy gTy9d47yeGHSAo+TQW8i62qOfO7oTwThOOsEbZ9WVRiGOT9sgkjNGPqstPhuywUu/yP/GU zJxLTlRdaZRGX5gZtCbwR+rQ0UPVanIyCSFHyQXdUGyGBl5X+CL3g26Z1YC/TQi7wJzeFH UZ8XrSLeMdk/XeJ9vvaX3X4WtbJzEy1TGx1xtmym8kGWcekgHvL6CFkbuPtIM6nGt9q5Fz focZls8ayjLjyG8K5gpVsi3QYvpPUbV5EMhup22M4KDDExLrFZSRua17xguR+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729106758; a=rsa-sha256; cv=none; b=gHXYOiU/RBlZP/xwwJu27OCrhVlot12XanydCeHWaHDUFGmzgJGjECp3G94BvdAqrYaeik 5XdJC+VCdpn+NUhfLP/zlm1sopRXV/7s7vx6Nqp64PEDjCFo59f1fwE5rRENDoCykFhYF2 +BadQzSSuUXp9jzQjkSFmp+p5mXsz3mGiFz74i71d1zPI+Ygzh9lOp3XJ98b3DuWeplvJ4 jxFrWRxm1bGpHWMLJjYWcgHkpf45eaOXOV6BJ8ijAWnRWHVFq0xJ9Dej4/vEfrNmWy+sm6 +yjJTqNy5nyeY3m81kt16n+UM4xEr/UC9FpUX59MlpBCoYked/hwsWxG2wpJZA== 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 4XTLY24SclzHk5; Wed, 16 Oct 2024 19:25:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49GJPwta081881; Wed, 16 Oct 2024 19:25:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49GJPwsN081878; Wed, 16 Oct 2024 19:25:58 GMT (envelope-from git) Date: Wed, 16 Oct 2024 19:25:58 GMT Message-Id: <202410161925.49GJPwsN081878@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Nuno Teixeira Subject: git: 2181631ba4fa - 2024Q4 - editors/jucipp: Unbreak build with boost-1.85 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q4 X-Git-Reftype: branch X-Git-Commit: 2181631ba4fa38b6eb5d6f41ae7e2b5572b6a228 Auto-Submitted: auto-generated The branch 2024Q4 has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=2181631ba4fa38b6eb5d6f41ae7e2b5572b6a228 commit 2181631ba4fa38b6eb5d6f41ae7e2b5572b6a228 Author: Mamadou Babaei AuthorDate: 2024-10-16 19:02:08 +0000 Commit: Nuno Teixeira CommitDate: 2024-10-16 19:23:23 +0000 editors/jucipp: Unbreak build with boost-1.85 PR: 281961 (cherry picked from commit 808053388a7c67d21e521b8e9513883c49683823) --- editors/jucipp/Makefile | 2 +- editors/jucipp/files/patch-src_source.cpp | 106 +++++++++++++++++++++++ editors/jucipp/files/patch-src_usages__clang.cpp | 32 +++++++ editors/jucipp/files/patch-src_window.cpp | 11 +++ 4 files changed, 150 insertions(+), 1 deletion(-) diff --git a/editors/jucipp/Makefile b/editors/jucipp/Makefile index ea0a9f1df63b..35f3e9e5a673 100644 --- a/editors/jucipp/Makefile +++ b/editors/jucipp/Makefile @@ -1,7 +1,7 @@ PORTNAME= jucipp DISTVERSIONPREFIX= v DISTVERSION= 1.8.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= editors MAINTAINER= info@babaei.net diff --git a/editors/jucipp/files/patch-src_source.cpp b/editors/jucipp/files/patch-src_source.cpp new file mode 100644 index 000000000000..27b739e533bc --- /dev/null +++ b/editors/jucipp/files/patch-src_source.cpp @@ -0,0 +1,106 @@ +--- src/source.cpp.orig 2023-08-03 07:43:31 UTC ++++ src/source.cpp +@@ -1193,57 +1193,61 @@ void Source::View::setup_format_style(bool is_generic_ + try { + boost::property_tree::ptree pt; + boost::property_tree::xml_parser::read_xml(stdout_stream, pt); +- auto replacements_pt = pt.get_child("replacements", boost::property_tree::ptree()); +- for(auto it = replacements_pt.rbegin(); it != replacements_pt.rend(); ++it) { +- if(it->first == "replacement") { +- auto offset = it->second.get(".offset"); +- auto length = it->second.get(".length"); +- auto replacement_str = it->second.get(""); ++ for(auto it_root = pt.begin(); it_root != pt.end(); ++it_root) { ++ if(it_root->first == "replacements") { ++ for(auto it = it_root->second.rbegin(); it != it_root->second.rend(); ++it) { ++ if(it->first == "replacement") { ++ auto offset = it->second.get(".offset"); ++ auto length = it->second.get(".length"); ++ auto replacement_str = it->second.get(""); + +- size_t bytes = 0; +- for(size_t c = 0; c < bytes_in_lines.size(); ++c) { +- auto previous_bytes = bytes; +- bytes += bytes_in_lines[c]; +- if(offset < bytes || (c == bytes_in_lines.size() - 1 && offset == bytes)) { +- std::pair line_index(c, offset - previous_bytes); +- auto start = get_buffer()->get_iter_at_line_index(line_index.first, line_index.second); ++ size_t bytes = 0; ++ for(size_t c = 0; c < bytes_in_lines.size(); ++c) { ++ auto previous_bytes = bytes; ++ bytes += bytes_in_lines[c]; ++ if(offset < bytes || (c == bytes_in_lines.size() - 1 && offset == bytes)) { ++ std::pair line_index(c, offset - previous_bytes); ++ auto start = get_buffer()->get_iter_at_line_index(line_index.first, line_index.second); + +- // Use left gravity insert to avoid moving cursor from end of line +- bool left_gravity_insert = false; +- if(get_buffer()->get_insert()->get_iter() == start) { +- auto iter = start; +- do { +- if(*iter != ' ' && *iter != '\t') { +- left_gravity_insert = iter.ends_line(); +- break; ++ // Use left gravity insert to avoid moving cursor from end of line ++ bool left_gravity_insert = false; ++ if(get_buffer()->get_insert()->get_iter() == start) { ++ auto iter = start; ++ do { ++ if(*iter != ' ' && *iter != '\t') { ++ left_gravity_insert = iter.ends_line(); ++ break; ++ } ++ } while(iter.forward_char()); + } +- } while(iter.forward_char()); +- } + +- if(length > 0) { +- auto offset_end = offset + length; +- size_t bytes = 0; +- for(size_t c = 0; c < bytes_in_lines.size(); ++c) { +- auto previous_bytes = bytes; +- bytes += bytes_in_lines[c]; +- if(offset_end < bytes || (c == bytes_in_lines.size() - 1 && offset_end == bytes)) { +- auto end = get_buffer()->get_iter_at_line_index(c, offset_end - previous_bytes); +- get_buffer()->erase(start, end); +- start = get_buffer()->get_iter_at_line_index(line_index.first, line_index.second); +- break; ++ if(length > 0) { ++ auto offset_end = offset + length; ++ size_t bytes = 0; ++ for(size_t c = 0; c < bytes_in_lines.size(); ++c) { ++ auto previous_bytes = bytes; ++ bytes += bytes_in_lines[c]; ++ if(offset_end < bytes || (c == bytes_in_lines.size() - 1 && offset_end == bytes)) { ++ auto end = get_buffer()->get_iter_at_line_index(c, offset_end - previous_bytes); ++ get_buffer()->erase(start, end); ++ start = get_buffer()->get_iter_at_line_index(line_index.first, line_index.second); ++ break; ++ } ++ } + } ++ if(left_gravity_insert) { ++ Mark mark(start); ++ get_buffer()->insert(start, replacement_str); ++ get_buffer()->place_cursor(mark->get_iter()); ++ } ++ else ++ get_buffer()->insert(start, replacement_str); ++ break; + } + } +- if(left_gravity_insert) { +- Mark mark(start); +- get_buffer()->insert(start, replacement_str); +- get_buffer()->place_cursor(mark->get_iter()); +- } +- else +- get_buffer()->insert(start, replacement_str); +- break; + } + } ++ break; + } + } + } diff --git a/editors/jucipp/files/patch-src_usages__clang.cpp b/editors/jucipp/files/patch-src_usages__clang.cpp new file mode 100644 index 000000000000..89b956a45b78 --- /dev/null +++ b/editors/jucipp/files/patch-src_usages__clang.cpp @@ -0,0 +1,32 @@ +--- src/usages_clang.cpp.orig 2023-08-03 07:43:31 UTC ++++ src/usages_clang.cpp +@@ -562,7 +562,7 @@ Usages::Clang::PathSet Usages::Clang::find_paths(const + boost::system::error_code ec; + if(!boost::filesystem::is_regular_file(path, ec)) { + if(path == build_path || path == debug_path || path.filename() == ".git") +- it.no_push(); ++ it.disable_recursion_pending(); + continue; + } + +@@ -737,7 +737,7 @@ void Usages::Clang::write_cache(const boost::filesyste + stream.close(); + boost::filesystem::rename(tmp_file, full_cache_path, ec); + if(ec) { +- boost::filesystem::copy_file(tmp_file, full_cache_path, boost::filesystem::copy_option::overwrite_if_exists); ++ boost::filesystem::copy_file(tmp_file, full_cache_path, boost::filesystem::copy_options::overwrite_existing); + boost::filesystem::remove(tmp_file, ec); + } + } +@@ -759,9 +759,9 @@ Usages::Clang::Cache Usages::Clang::read_cache(const b + if(boost::filesystem::exists(cache_path, ec)) { + std::ifstream stream(cache_path.string()); + if(stream) { +- Cache cache; +- boost::archive::text_iarchive text_iarchive(stream); + try { ++ Cache cache; ++ boost::archive::text_iarchive text_iarchive(stream); + text_iarchive >> cache; + return cache; + } diff --git a/editors/jucipp/files/patch-src_window.cpp b/editors/jucipp/files/patch-src_window.cpp new file mode 100644 index 000000000000..eed51beab9e4 --- /dev/null +++ b/editors/jucipp/files/patch-src_window.cpp @@ -0,0 +1,11 @@ +--- src/window.cpp.orig 2023-08-03 07:43:31 UTC ++++ src/window.cpp +@@ -995,7 +995,7 @@ void Window::set_menu_actions() { + if(std::any_of(exclude_folders.begin(), exclude_folders.end(), [&filename](const std::string &exclude_folder) { + return filename == exclude_folder; + })) +- it.no_push(); ++ it.disable_recursion_pending(); + continue; + } + files.emplace_back(path);