Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 574472 | Differences between
and this patch

Collapse All | Expand All

(-)a/lxqt-base/liblxqt/files/liblxqt-0.10.0-grep223.patch (+35 lines)
Line 0 Link Here
1
From 082321a1a513b5fb694ca60e368eddd57b58f433 Mon Sep 17 00:00:00 2001
2
From: Palo Kisa <palo.kisa@gmail.com>
3
Date: Fri, 12 Feb 2016 08:11:41 +0100
4
Subject: [PATCH] TranslateDesktop: Use -a switch in grep commands
5
6
As of grep v2.23 some translation files are considered as binary (maybe because of some locale settings)
7
and then the created .desktop file is malformed. So we force the grep to handle all provided input
8
files as text.
9
10
closes lxde/lxqt#957
11
---
12
 cmake/modules/LXQtTranslateDesktop.cmake | 6 +++---
13
 1 file changed, 3 insertions(+), 3 deletions(-)
14
15
diff --git a/cmake/modules/LXQtTranslateDesktop.cmake b/cmake/modules/LXQtTranslateDesktop.cmake
16
index e770b63..217400a 100644
17
--- a/cmake/modules/LXQtTranslateDesktop.cmake
18
+++ b/cmake/modules/LXQtTranslateDesktop.cmake
19
@@ -71,13 +71,13 @@ function(lxqt_translate_desktop _RESULT)
20
         if (_translations)
21
             list(SORT _translations)
22
             add_custom_command(OUTPUT ${_outFile}
23
-                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
24
-                COMMAND grep -h ${_pattern} ${_translations} >> ${_outFile}
25
+                COMMAND grep -v -a "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
26
+                COMMAND grep -h -a ${_pattern} ${_translations} >> ${_outFile}
27
                 COMMENT "Generating ${_fileName}${_fileExt}"
28
             )
29
         else()
30
             add_custom_command(OUTPUT ${_outFile}
31
-                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
32
+                COMMAND grep -v -a "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
33
                 COMMENT "Generating ${_fileName}${_fileExt}"
34
             )
35
         endif()
(-)a/lxqt-base/liblxqt/liblxqt-0.10.0.ebuild (+2 lines)
Lines 32-37 DEPEND="${RDEPEND} Link Here
32
	dev-qt/linguist-tools:5
32
	dev-qt/linguist-tools:5
33
"
33
"
34
34
35
PATCHES=( "${FILESDIR}/${P}-grep223.patch" )
36
35
pkg_pretend() {
37
pkg_pretend() {
36
	if [[ ${MERGE_TYPE} != binary ]]; then
38
	if [[ ${MERGE_TYPE} != binary ]]; then
37
		[[ $(gcc-version) < 4.8 ]] && \
39
		[[ $(gcc-version) < 4.8 ]] && \

Return to bug 574472