public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Gansser <mgansser@online.de>
To: git-commits@fedoraproject.org
Subject: [rpms/bear] epel10: Fix building with wxWidgets 3.0
Date: Sat, 11 Jul 2026 02:31:09 GMT [thread overview]
Message-ID: <178373706959.1.1426656344533211221.rpms-bear-587e80b5e295@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bear
Branch : epel10
Commit : 587e80b5e2955c2f00364294cceb8d53e04bb953
Author : Martin Gansser <mgansser@online.de>
Date : 2018-08-04T15:06:39+02:00
Stats : +61/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bear/c/587e80b5e2955c2f00364294cceb8d53e04bb953?branch=epel10
Log:
Fix building with wxWidgets 3.0
---
diff --git a/wxwidgets-3.0.patch b/wxwidgets-3.0.patch
new file mode 100644
index 0000000..551be29
--- /dev/null
+++ b/wxwidgets-3.0.patch
@@ -0,0 +1,61 @@
+From b8f212a2e6cc4b4d169f0e916f6ee2fd18973cf8 Mon Sep 17 00:00:00 2001
+From: Scott Talbert <swt@techie.net>
+Date: Thu, 28 Jun 2018 17:37:25 -0400
+Subject: [PATCH] Fix compilation with wxWidgets 3.0
+
+---
+ bear-factory/CMakeLists.txt | 2 ++
+ bear-factory/bear-editor/src/bf/code/accelerator_table.cpp | 2 +-
+ .../bear-editor/src/bf/code/base_editor_application.cpp | 7 +++++--
+ 3 files changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/bear-factory/CMakeLists.txt b/bear-factory/CMakeLists.txt
+index 6c01034..fb40cde 100644
+--- a/bear-factory/CMakeLists.txt
++++ b/bear-factory/CMakeLists.txt
+@@ -99,6 +99,8 @@ if( NOT wxWidgets_FOUND )
+ message( "wxWidgets not found" )
+ endif( NOT wxWidgets_FOUND )
+
++add_definitions( "-DNDEBUG" )
++
+ #-------------------------------------------------------------------------------
+ # path to the images used in the interface
+ if( NOT BF_IMAGES_PATH )
+diff --git a/bear-factory/bear-editor/src/bf/code/accelerator_table.cpp b/bear-factory/bear-editor/src/bf/code/accelerator_table.cpp
+index d9420eb..4a33140 100644
+--- a/bear-factory/bear-editor/src/bf/code/accelerator_table.cpp
++++ b/bear-factory/bear-editor/src/bf/code/accelerator_table.cpp
+@@ -99,6 +99,6 @@ void bf::accelerator_table::on_key_pressed( wxKeyEvent& event )
+ if ( it != m_accelerators.end() )
+ {
+ wxCommandEvent command( wxEVT_COMMAND_MENU_SELECTED, it->second );
+- m_event_handler.ProcessEvent( command );
++ m_event_handler.GetEventHandler()->ProcessEvent( command );
+ }
+ } // accelerator_table::on_key_pressed()
+diff --git a/bear-factory/bear-editor/src/bf/code/base_editor_application.cpp b/bear-factory/bear-editor/src/bf/code/base_editor_application.cpp
+index e49f15f..074f14e 100644
+--- a/bear-factory/bear-editor/src/bf/code/base_editor_application.cpp
++++ b/bear-factory/bear-editor/src/bf/code/base_editor_application.cpp
+@@ -347,12 +347,15 @@ int bf::base_editor_application::find_option_index
+ */
+ void bf::base_editor_application::remove_options_at( int index, int count )
+ {
++ // In wx 3.0, argv is a wxCmdLineArgsArray, so need to fetch a mutable copy
++ wxChar** argv_copy = argv;
+ for ( int i=index; (i+count <= argc); ++i )
+- argv[i] = argv[i + count];
++ argv_copy[i] = argv_copy[i + count];
+
+ for ( int i=0; i != count; ++i )
+ {
+ --argc;
+- argv[argc] = NULL;
++ argv_copy[argc] = NULL;
+ }
++ argv = argv_copy;
+ } // base_editor_application::remove_options_at()
+--
+2.17.1
+
next reply other threads:[~2026-07-11 2:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-11 2:31 Martin Gansser [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-11 2:31 [rpms/bear] epel10: Fix building with wxWidgets 3.0 Martin Gansser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178373706959.1.1426656344533211221.rpms-bear-587e80b5e295@fedoraproject.org \
--to=mgansser@online.de \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox