Skip to content

Commit

Permalink
audio/ardour: Fix runtime error
Browse files Browse the repository at this point in the history
Undefined symbol at runtime when building with default options

Upstream PR: Ardour/ardour#883

PR:		277938
Reported by:	phryk-ports@wzff.de
Approved by:	dev@submerge.ch	(maintainer)
  • Loading branch information
fernape committed Mar 30, 2024
1 parent 33cf463 commit 5b9d502
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions audio/ardour/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ardour
DISTVERSION= 8.4.0
PORTREVISION= 1
CATEGORIES= audio
# Official source download is tailored to browsers, downloads from github are
# deliberately made empty. Put the badly named distfile into a subdirectory.
Expand Down
26 changes: 26 additions & 0 deletions audio/ardour/files/patch-libs_ardour_session.cc
@@ -0,0 +1,26 @@
--- libs/ardour/session.cc.orig 2024-02-21 00:37:39 UTC
+++ libs/ardour/session.cc
@@ -136,7 +136,10 @@
#include "ardour/utils.h"
#include "ardour/vca_manager.h"
#include "ardour/vca.h"
+
+#ifdef VST3_SUPPORT
#include "ardour/vst3_plugin.h"
+#endif // VST3_SUPPORT

#include "midi++/port.h"
#include "midi++/mmc.h"
@@ -881,10 +884,12 @@ Session::destroy ()

_transport_fsm->stop ();

+#ifdef VST3_SUPPORT
/* close VST3 Modules */
for (auto const& nfo : PluginManager::instance().vst3_plugin_info()) {
std::dynamic_pointer_cast<VST3PluginInfo> (nfo)->m.reset ();
}
+#endif // VST3_SUPPORT

DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");

0 comments on commit 5b9d502

Please sign in to comment.