Your message dated Tue, 03 Sep 2019 05:38:42 +0000
with message-id <[email protected]>
and subject line Bug#939296: Removed package(s) from unstable
has caused the Debian Bug report #815193,
regarding razorqt: please make the build reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
815193: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815193
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: razorqt
Version: 0.5.2-4
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: locale
X-Debbugs-Cc: [email protected]
Hi!
While working on the "reproducible builds" effort [1], we have noticed
that razorqt could not be built reproducibly.
While generating .desktop files, grep misdetects the input as binary
data when a non-UTF8 locale is used.
This leads to the embedding of lines like this into the files:
"Binary file
/build/razorqt-0.5.2/razorqt-resources/sys/translations/razor_zh_TW.desktop
matches"
The attached patch fixes this by telling grep to treat the input as
text.
Regards,
Reiner
[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/series b/debian/patches/series
index a7bfb4b..becb3b3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
lightdm3.patch
libstatgrab-0.90.patch
+unicode-grep.patch
diff --git a/debian/patches/unicode-grep.patch b/debian/patches/unicode-grep.patch
new file mode 100644
index 0000000..7356279
--- /dev/null
+++ b/debian/patches/unicode-grep.patch
@@ -0,0 +1,22 @@
+Author: Reiner Herrmann <[email protected]>
+Description: Fix misdetection as binary input when LC_ALL=C
+
+--- a/cmake/RazorTranslate.cmake
++++ b/cmake/RazorTranslate.cmake
+@@ -238,13 +238,13 @@
+ set(_pattern "'\\[.*]\\s*='")
+ if (_translations)
+ add_custom_command(OUTPUT ${_outFile}
+- COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
+- COMMAND grep --no-filename ${_pattern} ${_translations} >> ${_outFile}
++ COMMAND grep -a -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
++ COMMAND grep -a --no-filename ${_pattern} ${_translations} >> ${_outFile}
+ COMMENT "Generating ${_fileName}${_fileExt}"
+ )
+ else()
+ add_custom_command(OUTPUT ${_outFile}
+- COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
++ COMMAND grep -a -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
+ COMMENT "Generating ${_fileName}${_fileExt}"
+ )
+ endif()
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Version: 0.5.2-4+rm
Dear submitter,
as the package razorqt has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/939296
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---