Bug#713713: [PATCH] Explicitly instantiate AbstractUI template

David Henningsson david.henningsson at canonical.com
Tue Oct 1 13:24:15 UTC 2013


This fixes a build failure on Debian/Ubuntu.

BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713713
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 libs/gtkmm2ext/gtk_ui.cc | 2 ++
 1 file changed, 2 insertions(+)

I'm not a C++ template expert, so I'm not sure this is the most elegant fix,
but at least it builds now. I found it on git trunk too (2.0-ongoing branch), 
so I'm including Paul Davis as well.

diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc
index 291740c..0894b07 100644
--- a/libs/gtkmm2ext/gtk_ui.cc
+++ b/libs/gtkmm2ext/gtk_ui.cc
@@ -63,6 +63,8 @@ BaseUI::RequestType Gtkmm2ext::AddTimeout = BaseUI::new_request_type();
 
 #include <pbd/abstract_ui.cc>  /* instantiate the template */
 
+template class AbstractUI<Gtkmm2ext::UIRequest>;
+
 UI::UI (string namestr, int *argc, char ***argv) 
 	: AbstractUI<UIRequest> (namestr, true)
 {
-- 
1.8.3.2



More information about the pkg-multimedia-maintainers mailing list