Merge pull request #291426 from trofi/qlcplus-gcc-13-fix

qlcplus: fix `gcc-13` build (drop `-Werror`)
This commit is contained in:
Mario Rodas 2024-03-01 23:21:58 -05:00 committed by GitHub
commit 1f9bcee228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,16 +29,20 @@ mkDerivation rec {
qmakeFlags = [ "INSTALLROOT=$(out)" ];
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
postPatch = ''
patchShebangs .
sed -i -e '/unix:!macx:INSTALLROOT += \/usr/d' \
-e "s@\$\$LIBSDIR/qt4/plugins@''${qtPluginPrefix}@" \
-e "s@/etc/udev/rules.d@''${out}/lib/udev/rules.d@" \
variables.pri
# Fix gcc-13 build failure by removing blanket -Werror.
fgrep Werror variables.pri
substituteInPlace variables.pri --replace-fail "QMAKE_CXXFLAGS += -Werror" ""
'';
enableParallelBuilding = true;
postInstall = ''
ln -sf $out/lib/*/libqlcplus* $out/lib
'';