Skip to content

Commit

Permalink
Revert "Remove drop_lrelease_dependency.patch"
Browse files Browse the repository at this point in the history
This reverts commit 3b6c56c.
  • Loading branch information
barton2526 committed Apr 6, 2022
1 parent 635e035 commit fbf67e5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions depends/packages/qt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ endef
# CROSS_LIBRARY_PATH. See #15277.
define $(package)_preprocess_cmds
rm -f $(BASEDIR)/.qmake.stash && \
patch -p1 -i $($(package)_patch_dir)/drop_lrelease_dependency.patch && \
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch && \
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_x86_64.patch && \
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
Expand Down
20 changes: 20 additions & 0 deletions depends/patches/qt/drop_lrelease_dependency.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
commit 67b3ed7406e1d0762188dbad2c44a06824ba0778
Author: fanquake <fanquake@gmail.com>
Date: Tue Aug 18 15:24:01 2020 +0800

Drop dependency on lrelease

Qts buildsystem insists on using the installed lrelease, but gets
confused about how to find it. Since we manually control the build
order, just drop the dependency.

See #9469

diff --git a/qttranslations/translations/translations.pro b/qttranslations/translations/translations.pro
index 694544c..eff339d 100644
--- a/qttranslations/translations/translations.pro
+++ b/qttranslations/translations/translations.pro
@@ -107,3 +107,2 @@ updateqm.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
silent:updateqm.commands = @echo lrelease ${QMAKE_FILE_IN} && $$updateqm.commands
-updateqm.depends = $$LRELEASE_EXE
updateqm.name = LRELEASE ${QMAKE_FILE_IN}

0 comments on commit fbf67e5

Please sign in to comment.