Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pc6001vx: fix test #158668

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Formula/p/pc6001vx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

fails_with gcc: "5" # ffmpeg is compiled with GCC

def install

Check warning on line 25 in Formula/p/pc6001vx.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --build-bottle pc6001vx` failed on Linux!

==> Fetching pc6001vx ==> Downloading https://eighttails.up.seesaa.net/bin/PC6001VX_4.2.5_src.tar.gz Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/dfcc54aa44bfaf33602790424d6dac0bffc0f9ce63be13ab0ba958d8a5eafbfa--PC6001VX_4.2.5_src.tar.gz ==> Verifying checksum for 'dfcc54aa44bfaf33602790424d6dac0bffc0f9ce63be13ab0ba958d8a5eafbfa--PC6001VX_4.2.5_src.tar.gz' /usr/bin/env tar --extract --no-same-owner --file /home/linuxbrew/.cache/Homebrew/downloads/dfcc54aa44bfaf33602790424d6dac0bffc0f9ce63be13ab0ba958d8a5eafbfa--PC6001VX_4.2.5_src.tar.gz --directory /tmp/d20240101-35910-4fc7wy /usr/bin/env cp -pR /tmp/d20240101-35910-4fc7wy/PC6001VX_4.2.5_src/. /tmp/pc6001vx-20240101-35910-l8ul97/PC6001VX_4.2.5_src ==> qmake PREFIX=/home/linuxbrew/.linuxbrew/Cellar/pc6001vx/4.2.5 QMAKE_CXXFLAGS= CONFIG+=no_include_pwd .. Info: creating stash file /tmp/pc6001vx-20240101-35910-l8ul97/PC6001VX_4.2.5_src/build/.qmake.stash ==> make uic ../src/Qt/configdialog.ui uic ../src/Qt/systeminfodialog.ui uic ../src/Qt/virtualkeytabwidget.ui compiling ../src/Qt/wavfile.cpp compiling ../src/Qt/SingleApplication/singleapplication.cpp compiling ../src/Qt/SingleApplication/singleapplication_p.cpp compiling ../src/Qt/audiooutputwrapper.cpp compiling ../src/Qt/colorbutton.cpp compiling ../src/Qt/configdialog.cpp compiling ../src/Qt/cthread.cpp compiling ../src/Qt/emulationadaptor.cpp compiling ../src/Qt/keypanel.cpp compiling ../src/Qt/keypanelbutton.cpp compiling ../src/Qt/keystatewatcher.cpp compiling ../src/Qt/mainwidget.cpp compiling ../src/Qt/normalvirtualkeyboardscene.cpp compiling ../src/Qt/osdQt.cpp compiling ../src/Qt/p6vxapp.cpp compiling ../src/Qt/p6vxcommon.cpp compiling ../src/Qt/pc6001v.cpp compiling ../src/Qt/qtel6.cpp ../src/Qt/p6vxapp.cpp: In member function ‘void P6VXApp::inhibitScreenSaver()’: ../src/Qt/p6vxapp.cpp:1234:76: error: ‘QX11Application’ is not a member of ‘QNativeInterface’; did you mean ‘QWaylandApplication’? 1234 | if (auto *x11App = qApp->nativeInterface<QNativeInterface::QX11Application>()){ | ^~~~~~~~~~~~~~~ | QWaylandApplication ../src/Qt/p6vxapp.cpp:1234:92: error: no matching function for call to ‘QApplication::nativeInterface<<expression error> >()’ 1234 | if (auto *x11App = qApp->nativeInterface<QNativeInterface::QX11Application>()){ In file included from /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtCore/qcoreapplication.h:16, from /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtCore/qapplicationstatic.h:9, from /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtCore/QtCore:28, from /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtWidgets/QtWidgetsDepends:3, from /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtWidgets/QtWidgets:3, from ../src/Qt/p6vxapp.cpp:1: /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtCore/qnativeinterface.h:136:22: note: candidate: ‘template<class NativeInterface, class TypeInfo, class BaseType, typename std::enable_if<TypeInfo::isCompatibleWith<QApplication>, bool>::type <anonymous> > NativeInterface* QApplication::nativeInterface() const’ 136 | NativeInterface *nativeInterface() const \ | ^~~~~~~~~~~~~~~ /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtWidgets/qapplication.h:125:5: note: in expansion of macro ‘QT_DECLARE_NATIVE_INTERFACE_ACCESSOR’ 125 | QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QApplication) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtCore/qnativeinterface.h:136:22: note: template argument deduction/substitution failed: 136 | NativeInterface *nativeInterface() const \ | ^~~~~~~~~~~~~~~ /home/linuxbrew/.linuxbrew/Cellar/qt/6.6.1/include/QtWidgets/qapplication.h:125:5: note: in expansion of macro ‘QT_DECLARE_NATIVE_INTERFACE_ACCE
mkdir "build" do
system "qmake", "PREFIX=#{prefix}",
"QMAKE_CXXFLAGS=#{ENV.cxxflags}",
Expand All @@ -36,6 +36,9 @@
end

test do
# locales aren't set correctly within the testing environment
ENV["LC_ALL"] = "en_US.UTF-8"
ENV["LANG"] = "en_US.UTF-8"
user_config_dir = testpath/".pc6001vx4"
user_config_dir.mkpath
pid = fork do
Expand Down
Loading