uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
18
pkgs/desktops/plasma-5/plasma-desktop/tzdir.patch
Normal file
18
pkgs/desktops/plasma-5/plasma-desktop/tzdir.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
Index: plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
||||
===================================================================
|
||||
--- plasma-desktop-5.8.5.orig/kcms/dateandtime/helper.cpp
|
||||
+++ plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
||||
@@ -181,7 +181,12 @@ int ClockHelper::tz( const QString& sele
|
||||
|
||||
val = selectedzone;
|
||||
#else
|
||||
- QString tz = "/usr/share/zoneinfo/" + selectedzone;
|
||||
+ QString tzdir = QString::fromLocal8Bit(qgetenv("TZDIR"));
|
||||
+ QString tz = tzdir + "/" + selectedzone;
|
||||
+ if (tzdir.isEmpty()) {
|
||||
+ // Standard Linux path
|
||||
+ tz = "/usr/share/zoneinfo/" + selectedzone;
|
||||
+ }
|
||||
|
||||
if (QFile::exists(tz)) { // make sure the new TZ really exists
|
||||
QFile::remove(QStringLiteral("/etc/localtime"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue