Files
Radium_Nix/build_system_fixes.patch
T

87 lines
3.9 KiB
Diff

--- source/build_linux_common.sh.orig 2025-10-30 18:28:15.000000000 +0100
+++ source/build_linux_common.sh 2026-01-05 14:38:13.999781422 +0100
@@ -147,9 +147,9 @@
#export QT_CFLAGS="-DQT_STATIC -DQT3_SUPPORT -I$RQTDIR/include/Qt3Support -I$RQTDIR/include/QtCore -I$RQTDIR/include/QtGui -I$RQTDIR/include/QtNetwork -I$RQTDIR/include/QtSql -I$RQTDIR/include/QtOpenGL -Ibin/packages/qhttpserver-master/src"
#export QT_LDFLAGS="$RQTDIR/lib/libQt3Support.a $RQTDIR/lib/libQtSql.a $RQTDIR/lib/libQtOpenGL.a $RQTDIR/lib/libQtGui.a $RQTDIR/lib/libQtNetwork.a $RQTDIR/lib/libQtCore.a -lSM -lICE -lfreetype -lfontconfig -lXrender -lpng -lglib-2.0 -lgobject-2.0"
-QT_INCLUDE_PATH=`$QMAKE -query QT_INSTALL_HEADERS`
-export QT_UI_CFLAGS="-I $QT_INCLUDE_PATH/QtUiTools" # Doing this instead of using pkg since there are bugs in the dependencies of the pkg file in some versions of Qt. (same with the lib file below)
-export QT_UI_LDFLAGS="`$QMAKE -query QT_INSTALL_LIBS`/libQt5UiTools.a"
+#QT_INCLUDE_PATH=`$QMAKE -query QT_INSTALL_HEADERS`
+#export QT_UI_CFLAGS="-I $QT_INCLUDE_PATH/QtUiTools" # Doing this instead of using pkg since there are bugs in the dependencies of the pkg file in some versions of Qt. (same with the lib file below)
+#export QT_UI_LDFLAGS="`$QMAKE -query QT_INSTALL_LIBS`/libQt5UiTools.a"
#One of these:
--- source/configuration.sh.orig 2026-01-05 12:10:37.393648921 +0100
+++ source/configuration.sh 2026-01-05 14:41:36.490185173 +0100
@@ -239,13 +239,14 @@
handle_failure "Not empty"
fi
- A=$($PKGqt --libs-only-L Qt5Core | xargs)
- B="-L$($QMAKE -query QT_INSTALL_PREFIX)/lib"
- if [ "$A" != "$B" ] ; then
- handle_failure "$PKGqt and $QMAKE doesn't seem to point to the same Qt:\n" \
- "PKG: \"$A\".\n" \
- "${QMAKE}: \"$B\""
- fi
+ A=$($PKGqt --libs-only-L Qt5Core | xargs)
+ B="-L$($QMAKE -query QT_INSTALL_PREFIX)/lib"
+ if [ "$A" != "$B" ] ; then
+ printf "$PKGqt and $QMAKE don't seem to point to the same Qt.\nBut we don't give a shit on NixOS.\n"
+# handle_failure "$PKGqt and $QMAKE doesn't seem to point to the same Qt:\n" \
+# "PKG: \"$A\".\n" \
+# "${QMAKE}: \"$B\""
+ fi
else
if ! is_set QMAKE_LIBS_ONLY_L_SHOULD_BE_EMPTY ; then
if [ "$($QMAKE -query QT_INSTALL_PREFIX)" != "/usr" ] ; then
--- source/Makefile.Qt.orig 2026-01-05 12:12:34.852622893 +0100
+++ source/Makefile.Qt 2026-01-05 12:12:42.535293687 +0100
@@ -305,7 +305,7 @@
WARNINGS_AS_ERRORS ?= 1
-WERROR=""
+WERROR=
ifeq ($(WARNINGS_AS_ERRORS), 1)
WERROR = -Werror
--- source/bin/packages/visualization.patch.orig 2026-01-05 12:29:07.853820367 +0100
+++ source/bin/packages/visualization.patch 2026-01-05 14:49:55.207100350 +0100
@@ -120,3 +120,14 @@
}
void stop(){
+--- Visualization-Library-master/CMakeLists.txt.orig 2026-01-05 14:47:57.797898038 +0100
++++ Visualization-Library-master/CMakeLists.txt 2026-01-05 14:48:15.249865375 +0100
+@@ -24,7 +24,7 @@
+ project(Visualization_Library_SDK-${VLVERSION_MAJOR}.${VLVERSION_MINOR})
+
+ # Must be called after project!
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 3.5)
+
+ ################################################################################
+ # Global Build Settings
--- source/bin/packages/build.sh.orig 2026-01-05 12:14:03.963801383 +0100
+++ source/bin/packages/build.sh 2026-01-12 06:20:42.586497821 +0100
@@ -86,6 +86,7 @@
tar xvzf faust-2.81.2.tar.gz
mv faust-2.81.2 faust
cd faust
+ patch -p1 <../faust_llvm_21.patch
rm -fr libraries
tar xvzf ../faustlibraries_2024_01_05.tar.gz
mv faustlibraries libraries
@@ -149,7 +150,7 @@
build_libpds() {
- NOWARNS="-Wno-return-mismatch -Wno-implicit-function-declaration -Wno-int-conversion -Wno-implicit-int"
+ NOWARNS="-Wno-return-mismatch -Wno-implicit-function-declaration -Wno-int-conversion -Wno-implicit-int -Wno-format-security"
rm -fr libpd-master
tar xvzf libpd-master.tar.gz