diff --git a/audio/ardour/files/patch-gtk2_ardour-connection_editor.cc b/audio/ardour/files/patch-gtk2_ardour-connection_editor.cc new file mode 100644 index 000000000000..ef5ee05e01e8 --- /dev/null +++ b/audio/ardour/files/patch-gtk2_ardour-connection_editor.cc @@ -0,0 +1,23 @@ +--- gtk2_ardour/connection_editor.cc.orig ++++ gtk2_ardour/connection_editor.cc +@@ -502,9 +502,9 @@ ConnectionEditor::display_connection_sta + frame_label += _("\""); + port_frame.set_label (frame_label); + +- for (slist::iterator i = port_displays.begin(); i != port_displays.end(); ) { ++ for (boost::container::slist::iterator i = port_displays.begin(); i != port_displays.end(); ) { + +- slist::iterator tmp; ++ boost::container::slist::iterator tmp; + + tmp = i; + tmp++; +@@ -612,7 +612,7 @@ ConnectionEditor::connection_port_button + + tview->set_name ("ConnectionEditorPortListSelected"); + +- for (slist::iterator i = port_displays.begin(); i != port_displays.end(); ++i) { ++ for (boost::container::slist::iterator i = port_displays.begin(); i != port_displays.end(); ++i) { + + Widget *child = (*i)->get_child(); + diff --git a/audio/ardour/files/patch-gtk2_ardour-connection_editor.h b/audio/ardour/files/patch-gtk2_ardour-connection_editor.h new file mode 100644 index 000000000000..e27a2add3c35 --- /dev/null +++ b/audio/ardour/files/patch-gtk2_ardour-connection_editor.h @@ -0,0 +1,25 @@ +--- gtk2_ardour/connection_editor.h.orig ++++ gtk2_ardour/connection_editor.h +@@ -20,12 +20,7 @@ + #ifndef __ardour_gtk_connection_editor_h__ + #define __ardour_gtk_connection_editor_h__ + +-#if __GNUC__ >= 3 +-#include +-using __gnu_cxx::slist; +-#else +-#include +-#endif ++#include + + #include + #include +@@ -116,7 +111,7 @@ class ConnectionEditor : public ArdourDi + Gtk::Button add_port_button; + + Glib::Mutex port_display_lock; +- slist port_displays; ++ boost::container::slist port_displays; + + Gtk::Button ok_button; + Gtk::Button cancel_button; diff --git a/audio/ardour/files/patch-gtk2_ardour-io_selector.cc b/audio/ardour/files/patch-gtk2_ardour-io_selector.cc new file mode 100644 index 000000000000..ae4681ad9c3f --- /dev/null +++ b/audio/ardour/files/patch-gtk2_ardour-io_selector.cc @@ -0,0 +1,39 @@ +--- gtk2_ardour/io_selector.cc.orig ++++ gtk2_ardour/io_selector.cc +@@ -389,9 +389,9 @@ IOSelector::display_ports () + limit = io->n_outputs(); + } + +- for (slist::iterator i = port_displays.begin(); i != port_displays.end(); ) { ++ for (boost::container::slist::iterator i = port_displays.begin(); i != port_displays.end(); ) { + +- slist::iterator tmp; ++ boost::container::slist::iterator tmp; + + tmp = i; + ++tmp; +@@ -632,13 +632,13 @@ IOSelector::connection_button_release (G + void + IOSelector::select_next_treeview () + { +- slist::iterator next; ++ boost::container::slist::iterator next; + + if (port_displays.empty() || port_displays.size() == 1) { + return; + } + +- for (slist::iterator i = port_displays.begin(); i != port_displays.end(); ++i) { ++ for (boost::container::slist::iterator i = port_displays.begin(); i != port_displays.end(); ++i) { + + if ((*i)->get_name() == "IOSelectorPortListSelected") { + +@@ -681,7 +681,7 @@ IOSelector::select_treeview (TreeView* t + gtk_widget_queue_draw (ccol->button); + } + +- for (slist::iterator i = port_displays.begin(); i != port_displays.end(); ++i) { ++ for (boost::container::slist::iterator i = port_displays.begin(); i != port_displays.end(); ++i) { + if (*i == tview) { + continue; + } diff --git a/audio/ardour/files/patch-gtk2_ardour-io_selector.h b/audio/ardour/files/patch-gtk2_ardour-io_selector.h new file mode 100644 index 000000000000..37f4ec456b9e --- /dev/null +++ b/audio/ardour/files/patch-gtk2_ardour-io_selector.h @@ -0,0 +1,25 @@ +--- gtk2_ardour/io_selector.h.orig ++++ gtk2_ardour/io_selector.h +@@ -20,12 +20,7 @@ + #ifndef __ardour_ui_io_selector_h__ + #define __ardour_ui_io_selector_h__ + +-#if __GNUC__ >= 3 +-#include +-using __gnu_cxx::slist; +-#else +-#include +-#endif ++#include + + #include + +@@ -110,7 +105,7 @@ class IOSelector : public Gtk::VBox { + Gtk::ScrolledWindow port_display_scroller; + + Glib::Mutex port_display_lock; +- slist port_displays; ++ boost::container::slist port_displays; + void display_ports (); + + void rescan (); diff --git a/audio/ardour/files/patch-libs-ardour-ardour-io.h b/audio/ardour/files/patch-libs-ardour-ardour-io.h new file mode 100644 index 000000000000..46a5278b8483 --- /dev/null +++ b/audio/ardour/files/patch-libs-ardour-ardour-io.h @@ -0,0 +1,13 @@ +--- libs/ardour/ardour/io.h.orig ++++ libs/ardour/ardour/io.h +@@ -288,6 +288,10 @@ class IO : public PBD::StatefulDestructi + XMLNode *pending_state_node; + int ports_became_legal (); + ++ static bool connecting_is_legal() { ++ return connecting_legal; ++ } ++ + private: + mutable Glib::Mutex io_lock; + diff --git a/audio/ardour/files/patch-libs-ardour-session.cc b/audio/ardour/files/patch-libs-ardour-session.cc index 094032b82973..c676a43c79bb 100644 --- a/audio/ardour/files/patch-libs-ardour-session.cc +++ b/audio/ardour/files/patch-libs-ardour-session.cc @@ -162,6 +162,15 @@ r->insert (r->end(), new_routes.begin(), new_routes.end()); resort_routes_using (r); } +@@ -2150,7 +2149,7 @@ Session::add_routes (RouteList& new_rout + } + } + +- if (_control_out && IO::connecting_legal) { ++ if (_control_out && IO::connecting_is_legal()) { + + vector cports; + uint32_t ni = _control_out->n_inputs(); @@ -2198,14 +2197,14 @@ Session::add_diskstream (boost::shared_p } diff --git a/audio/ardour/files/patch-libs-surfaces-mackie-mackie_control_protocol.cc b/audio/ardour/files/patch-libs-surfaces-mackie-mackie_control_protocol.cc new file mode 100644 index 000000000000..8d26956665a4 --- /dev/null +++ b/audio/ardour/files/patch-libs-surfaces-mackie-mackie_control_protocol.cc @@ -0,0 +1,29 @@ +--- libs/surfaces/mackie/mackie_control_protocol.cc.orig ++++ libs/surfaces/mackie/mackie_control_protocol.cc +@@ -64,8 +64,6 @@ using namespace sigc; + using namespace Mackie; + using namespace PBD; + +-using boost::shared_ptr; +- + #include "i18n.h" + + MackieMidiBuilder builder; +@@ -200,7 +198,7 @@ MackieControlProtocol::port_for_id( uint + // predicate for sort call in get_sorted_routes + struct RouteByRemoteId + { +- bool operator () ( const shared_ptr & a, const shared_ptr & b ) const { ++ bool operator () ( const boost::shared_ptr & a, const boost::shared_ptr & b ) const { + return a->remote_control_id() < b->remote_control_id(); + } + +@@ -680,7 +678,7 @@ MackieControlProtocol::create_ports() + } + } + +-shared_ptr ++boost::shared_ptr + MackieControlProtocol::master_route() + { + boost::shared_ptr mo = session->master_out ();