diff options
author | 2020-11-25 21:38:03 +0100 | |
---|---|---|
committer | 2020-12-17 16:13:44 +0000 | |
commit | 5d4c54036480b5b41317fe2227bc13cff104ecf5 (patch) | |
tree | 0f93cecebf78115cbbebd299c7120db44ac9b834 /media-sound/supercollider/files | |
parent | net-wireless/gqrx: bump, drop old (diff) | |
download | gentoo-5d4c54036480b5b41317fe2227bc13cff104ecf5.tar.gz gentoo-5d4c54036480b5b41317fe2227bc13cff104ecf5.tar.bz2 gentoo-5d4c54036480b5b41317fe2227bc13cff104ecf5.zip |
media-sound/supercollider: Bump to 3.11.2
Closes: https://bugs.gentoo.org/755719
Signed-off-by: Simon van der Veldt <simon.vanderveldt@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18407
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/supercollider/files')
-rw-r--r-- | media-sound/supercollider/files/supercollider-3.11.2-fewer-qt-deps.patch | 129 | ||||
-rw-r--r-- | media-sound/supercollider/files/supercollider-3.11.2-fix-libscsynth-linker-issue.patch | 299 |
2 files changed, 428 insertions, 0 deletions
diff --git a/media-sound/supercollider/files/supercollider-3.11.2-fewer-qt-deps.patch b/media-sound/supercollider/files/supercollider-3.11.2-fewer-qt-deps.patch new file mode 100644 index 000000000000..a156a105f875 --- /dev/null +++ b/media-sound/supercollider/files/supercollider-3.11.2-fewer-qt-deps.patch @@ -0,0 +1,129 @@ +From 063f9a48300b0c1d0132f6e0448ca724ad9e7474 Mon Sep 17 00:00:00 2001 +From: Hector Martin <marcan@marcan.st> +Date: Mon, 1 Jun 2020 18:43:08 +0900 +Subject: [PATCH] Remove spurious Qt dependencies + +--- + QtCollider/CMakeLists.txt | 10 +++------- + QtCollider/widgets/QcCanvas.h | 2 -- + README_LINUX.md | 6 +++--- + README_RASPBERRY_PI.md | 2 +- + editors/sc-ide/CMakeLists.txt | 13 +++---------- + 5 files changed, 10 insertions(+), 23 deletions(-) + +diff --git a/QtCollider/CMakeLists.txt b/QtCollider/CMakeLists.txt +index de38afb90..6b9437b9c 100644 +--- a/QtCollider/CMakeLists.txt ++++ b/QtCollider/CMakeLists.txt +@@ -7,19 +7,15 @@ option(SC_USE_QTWEBENGINE "Build with Qt WebEngine." ON) + set( + QT_COMPONENTS + Core +- Widgets ++ Gui + Network + PrintSupport +- OpenGL +- Quick +- Qml +- Sql + Svg ++ Widgets + ) + + set (QT_COLLIDER_LIBS +- Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network Qt5::PrintSupport +- Qt5::Quick Qt5::Qml Qt5::Sql Qt5::OpenGL Qt5::Svg ++ Qt5::Core Qt5::Gui Qt5::Network Qt5::PrintSupport Qt5::Svg Qt5::Widgets + ${MATH_LIBRARY}) + + if(SC_USE_QTWEBENGINE) +diff --git a/QtCollider/widgets/QcCanvas.h b/QtCollider/widgets/QcCanvas.h +index 3acb00fc2..ff230b813 100644 +--- a/QtCollider/widgets/QcCanvas.h ++++ b/QtCollider/widgets/QcCanvas.h +@@ -28,9 +28,7 @@ + #include <QBasicTimer> + #include <QTime> + #include <QPalette> +-#include <QGLWidget> + +-// using QcCanvasBase = QGLWidget; + using QcCanvasBase = QWidget; + + class QcCanvas : public QcCanvasBase { +diff --git a/README_LINUX.md b/README_LINUX.md +index 0e9577637..7b728a9ba 100644 +--- a/README_LINUX.md ++++ b/README_LINUX.md +@@ -78,7 +78,7 @@ Depending on your Debian flavor and version, your distribution's PPA may be stuc + + If this displays version 5.7 or later, installing Qt is easy: + +- sudo apt-get install qt5-default qt5-qmake qttools5-dev qttools5-dev-tools qtdeclarative5-dev qtwebengine5-dev libqt5svg5-dev libqt5websockets5-dev ++ sudo apt-get install qt5-default qt5-qmake qttools5-dev qttools5-dev-tools qtwebengine5-dev libqt5svg5-dev libqt5websockets5-dev + + If you are on Ubuntu 14.04 (Trusty) or 16.04 (Xenial), check the next section. Otherwise, you will have to use the official Qt installer. Sorry. + +@@ -90,13 +90,13 @@ On Xenial: + + sudo apt-add-repository ppa:beineri/opt-qt-5.11.0-xenial + sudo apt-get update +- sudo apt-get install qt511base qt511location qt511declarative qt511tools qt511webchannel qt511xmlpatterns qt511svg qt511webengine qt511websockets ++ sudo apt-get install qt511base qt511location qt511tools qt511webchannel qt511xmlpatterns qt511svg qt511webengine qt511websockets + + On Trusty, only Qt 5.10 and below are available: + + sudo apt-add-repository ppa:beineri/opt-qt-5.10.1-trusty + sudo apt-get update +- sudo apt-get install qt510base qt510location qt510declarative qt510tools qt510webchannel qt510xmlpatterns qt510svg qt510webengine qt510websockets ++ sudo apt-get install qt510base qt510location qt510tools qt510webchannel qt510xmlpatterns qt510svg qt510webengine qt510websockets + + [Stephan Binner's Launchpad PPAs]: https://launchpad.net/~beineri + +diff --git a/README_RASPBERRY_PI.md b/README_RASPBERRY_PI.md +index 0e89e26fc..7835fd25d 100644 +--- a/README_RASPBERRY_PI.md ++++ b/README_RASPBERRY_PI.md +@@ -42,7 +42,7 @@ Install required libraries: + # For GUI builds: + sudo apt-get install libjack-jackd2-dev libsndfile1-dev libasound2-dev libavahi-client-dev \ + libreadline-dev libfftw3-dev libxt-dev libudev-dev libncurses5-dev cmake git qttools5-dev qttools5-dev-tools \ +- qtdeclarative5-dev libqt5svg5-dev qjackctl ++ qtbase5-dev libqt5svg5-dev qjackctl + # For GUI-less builds: + sudo apt-get install libsamplerate0-dev libsndfile1-dev libasound2-dev libavahi-client-dev \ + libreadline-dev libfftw3-dev libudev-dev libncurses5-dev cmake git +diff --git a/editors/sc-ide/CMakeLists.txt b/editors/sc-ide/CMakeLists.txt +index 2ff4de774..5f9c1e64b 100644 +--- a/editors/sc-ide/CMakeLists.txt ++++ b/editors/sc-ide/CMakeLists.txt +@@ -6,22 +6,15 @@ set(QT_IDE_COMPONENTS + Concurrent + Core + LinguistTools +- # OpenGL +- PrintSupport +- Qml +- Quick +- Sql ++ Network + Widgets + ) + + set(QT_IDE_LIBRARIES + Qt5::Concurrent + Qt5::Core +- # Qt5::OpenGL +- Qt5::PrintSupport +- Qt5::Qml +- Qt5::Quick +- Qt5::Sql ++ Qt5::Network ++ Qt5::Widgets + ) + + if(SC_USE_QTWEBENGINE) +-- +2.26.2 + diff --git a/media-sound/supercollider/files/supercollider-3.11.2-fix-libscsynth-linker-issue.patch b/media-sound/supercollider/files/supercollider-3.11.2-fix-libscsynth-linker-issue.patch new file mode 100644 index 000000000000..d703b6073706 --- /dev/null +++ b/media-sound/supercollider/files/supercollider-3.11.2-fix-libscsynth-linker-issue.patch @@ -0,0 +1,299 @@ +From 9563fb5e73425a2ee0370162178964cceb559d5d Mon Sep 17 00:00:00 2001 +From: David Runge <dave@sleepmap.de> +Date: Mon, 16 Nov 2020 12:00:22 +0100 +Subject: [PATCH] Backport #5014 for 3.11.2 + +Backport the linker error patches +(https://github.com/supercollider/supercollider/pull/5014) for 3.11.2. +--- + common/SC_Apple.hpp | 14 ------ + common/SC_Apple.mm | 60 ------------------------- + common/SC_AppleEventLoop.hpp | 34 ++++++++++++++ + common/SC_AppleEventLoop.mm | 80 +++++++++++++++++++++++++++++++++ + common/SC_EventLoop.hpp | 3 +- + server/scsynth/CMakeLists.txt | 8 +++- + server/supernova/CMakeLists.txt | 9 +++- + 7 files changed, 131 insertions(+), 77 deletions(-) + create mode 100644 common/SC_AppleEventLoop.hpp + create mode 100644 common/SC_AppleEventLoop.mm + +diff --git a/common/SC_Apple.hpp b/common/SC_Apple.hpp +index 958d097f36..c7e53e9fcc 100644 +--- a/common/SC_Apple.hpp ++++ b/common/SC_Apple.hpp +@@ -23,19 +23,5 @@ namespace SC { namespace Apple { + + void disableAppNap(); + +-namespace EventLoop { +- +-// Setup the main application. This function must be called in the +-// main thread and before any other calls to Cocoa methods. +-void setup(); +-// Run the event loop. This function must be called in the main thread. +-// It blocks until the event loop finishes. +-void run(); +-// Ask the event loop to stop and terminate the program. +-// This function can be called from any thread. +-void quit(); +- +-} // EventLoop +- + } // namespace Apple + } // namespace SC +diff --git a/common/SC_Apple.mm b/common/SC_Apple.mm +index a4e10a66cd..dbb7ddbb7d 100644 +--- a/common/SC_Apple.mm ++++ b/common/SC_Apple.mm +@@ -42,65 +42,5 @@ void disableAppNap() { + } + } + +-namespace EventLoop { +- +-static std::atomic_bool g_running; +- +-void setup() { +- // The following code would transform the process into a foreground application. +- // For now it's the plugin's responsibility to do this (early or lazily) +- // because we don't want to always show an icon in the docker. +- // ProcessSerialNumber psn = { 0, kCurrentProcess }; +- // TransformProcessType(&psn, kProcessTransformToForegroundApplication); +- +- // Create NSApplication +- [NSApplication sharedApplication]; +-} +- +-void run() { +-#if 0 +- // this doesn't work... +- [NSApp run]; +-#else +- // Kudos to https://www.cocoawithlove.com/2009/01/demystifying-nsapplication-by.html +- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; +- +- [NSApp finishLaunching]; +- g_running = true; +- +- while (g_running) { +- [pool release]; +- pool = [[NSAutoreleasePool alloc] init]; +- NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask +- untilDate:[NSDate distantFuture] +- inMode:NSDefaultRunLoopMode +- dequeue:YES]; +- if (event) { +- [NSApp sendEvent:event]; +- [NSApp updateWindows]; +- } +- } +- [pool release]; +-#endif +-} +- +-void quit() { +- // break from event loop instead of [NSApp terminate:nil] +- g_running = false; +- // send dummy event to wake up event loop +- NSEvent* event = [NSEvent otherEventWithType:NSApplicationDefined +- location:NSMakePoint(0, 0) +- modifierFlags:0 +- timestamp:0 +- windowNumber:0 +- context:nil +- subtype:0 +- data1:0 +- data2:0]; +- [NSApp postEvent:event atStart:NO]; +-} +- +-} // EventLoop +- + } // namespace Apple + } // namespace SC +diff --git a/common/SC_AppleEventLoop.hpp b/common/SC_AppleEventLoop.hpp +new file mode 100644 +index 0000000000..6f19bb2818 +--- /dev/null ++++ b/common/SC_AppleEventLoop.hpp +@@ -0,0 +1,34 @@ ++/************************************************************************ ++ * ++ * Copyright 2019 Christof Ressi <info@christofressi.com> ++ * ++ * This program is free software: you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation, either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see <http://www.gnu.org/licenses/>. ++ * ++ ************************************************************************/ ++ ++#pragma once ++ ++namespace SC { namespace Apple { namespace EventLoop { ++ ++// Setup the main application. This function must be called in the ++// main thread and before any other calls to Cocoa methods. ++void setup(); ++// Run the event loop. This function must be called in the main thread. ++// It blocks until the event loop finishes. ++void run(); ++// Ask the event loop to stop and terminate the program. ++// This function can be called from any thread. ++void quit(); ++ ++}}} // namespace SC::Apple::EventLoop +diff --git a/common/SC_AppleEventLoop.mm b/common/SC_AppleEventLoop.mm +new file mode 100644 +index 0000000000..cfcf42ddfe +--- /dev/null ++++ b/common/SC_AppleEventLoop.mm +@@ -0,0 +1,80 @@ ++/************************************************************************ ++ * ++ * Copyright 2019 Christof Ressi <info@christofressi.com> ++ * ++ * This program is free software: you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation, either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see <http://www.gnu.org/licenses/>. ++ * ++ ************************************************************************/ ++ ++#include "SC_AppleEventLoop.hpp" ++#include <atomic> ++ ++#import <Cocoa/Cocoa.h> ++ ++namespace SC { namespace Apple { namespace EventLoop { ++ ++static std::atomic_bool g_running; ++ ++void setup() { ++ // The following code would transform the process into a foreground application. ++ // For now it's the plugin's responsibility to do this (early or lazily) ++ // because we don't want to always show an icon in the docker. ++ // ProcessSerialNumber psn = { 0, kCurrentProcess }; ++ // TransformProcessType(&psn, kProcessTransformToForegroundApplication); ++ ++ // Create NSApplication ++ [NSApplication sharedApplication]; ++} ++ ++void run() { ++ // this doesn't work... ++ // [NSApp run]; ++ // Kudos to https://www.cocoawithlove.com/2009/01/demystifying-nsapplication-by.html ++ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; ++ ++ [NSApp finishLaunching]; ++ g_running = true; ++ ++ while (g_running) { ++ [pool release]; ++ pool = [[NSAutoreleasePool alloc] init]; ++ NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask ++ untilDate:[NSDate distantFuture] ++ inMode:NSDefaultRunLoopMode ++ dequeue:YES]; ++ if (event) { ++ [NSApp sendEvent:event]; ++ [NSApp updateWindows]; ++ } ++ } ++ [pool release]; ++} ++ ++void quit() { ++ // break from event loop instead of [NSApp terminate:nil] ++ g_running = false; ++ // send dummy event to wake up event loop ++ NSEvent* event = [NSEvent otherEventWithType:NSApplicationDefined ++ location:NSMakePoint(0, 0) ++ modifierFlags:0 ++ timestamp:0 ++ windowNumber:0 ++ context:nil ++ subtype:0 ++ data1:0 ++ data2:0]; ++ [NSApp postEvent:event atStart:NO]; ++} ++ ++}}} // namespace SC::Apple::EventLoop +diff --git a/common/SC_EventLoop.hpp b/common/SC_EventLoop.hpp +index 1d62b4de89..6e58208cc0 100644 +--- a/common/SC_EventLoop.hpp ++++ b/common/SC_EventLoop.hpp +@@ -2,7 +2,7 @@ + + #include <functional> + #ifdef __APPLE__ +-# include "SC_Apple.hpp" ++# include "SC_AppleEventLoop.hpp" + # include <thread> + #endif + +@@ -21,6 +21,7 @@ class EventLoop { + SC::Apple::EventLoop::setup(); + #endif + } ++ + // Run the event loop until 'waitFunction' returns. + static void run(std::function<void()> waitFunction) { + #ifdef __APPLE__ +diff --git a/server/scsynth/CMakeLists.txt b/server/scsynth/CMakeLists.txt +index fa8daf12aa..c60ae72ffc 100644 +--- a/server/scsynth/CMakeLists.txt ++++ b/server/scsynth/CMakeLists.txt +@@ -230,7 +230,13 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux") + target_link_libraries(libscsynth rt) + endif() + +-add_executable(scsynth scsynth_main.cpp) ++add_executable(scsynth ++ scsynth_main.cpp ++ ++ # these files contain code only used in main() ++ ${CMAKE_SOURCE_DIR}/common/SC_ServerBootDelayWarning.cpp ++ $<$<BOOL:${APPLE}>: ${CMAKE_SOURCE_DIR}/common/SC_AppleEventLoop.mm > ++ ) + target_link_libraries(scsynth libscsynth) + + if (PTHREADS_FOUND) +diff --git a/server/supernova/CMakeLists.txt b/server/supernova/CMakeLists.txt +index 923a3aa4e4..ce8388e475 100644 +--- a/server/supernova/CMakeLists.txt ++++ b/server/supernova/CMakeLists.txt +@@ -182,7 +182,14 @@ if(WIN32) + endif() + + +-add_executable(supernova server/main.cpp ${supernova_headers}) ++add_executable(supernova ++ server/main.cpp ++ ${supernova_headers} ++ ++ # these files contain code only used in main() ++ ${CMAKE_SOURCE_DIR}/common/SC_ServerBootDelayWarning.cpp ++ $<$<BOOL:${APPLE}>: ${CMAKE_SOURCE_DIR}/common/SC_AppleEventLoop.mm > ++ ) + target_link_libraries(supernova libsupernova) + + if(WIN32) |