Bug#713713: [PATCH] Explicitly instantiate AbstractUI template

Adrian Knoth adi at drcomp.erfurt.thur.de
Fri Oct 4 16:07:11 UTC 2013


On 10/01/13 15:24, David Henningsson wrote:

> 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)
>   {
>

Thanks for the patch, confirmed to work. Will upload in a second.



Cheers



More information about the pkg-multimedia-maintainers mailing list