]> git.pld-linux.org Git - packages/systemd.git/commitdiff
- get timezone info from /etc/sysconfig/timezone systemd-196 auto/th/systemd-196-3
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Dec 2012 10:52:01 +0000 (11:52 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Dec 2012 10:52:01 +0000 (11:52 +0100)
- rel 3

systemd.spec
target-pld.patch

index d2daac7e42ea654baeb09dcce46e5b8fa295b40f..5c805eeddebcc3e5a239944893de9a5a7772ab72 100644 (file)
@@ -1,6 +1,4 @@
 # TODO:
-# - restore sysconfig/timezone support in target-pld patch
-#   [now systemd expects /etc/localtime to be symlink to /usr/share/zoneinfo/... unconditionally]
 # - pldize vconsole setup:
 #      http://cgit.freedesktop.org/systemd/systemd/tree/src/vconsole/vconsole-setup.c
 # - initrd needs love (does not build and is probably completly unusable in current form)
@@ -43,7 +41,7 @@ Summary(pl.UTF-8):    systemd - zarządca systemu i usług dla Linuksa
 Name:          systemd
 # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
 Version:       196
-Release:       2
+Release:       3
 Epoch:         1
 License:       GPL v2+
 Group:         Base
index 47a3e83620d1ac49594fd6f0316ca96904b0e8ab..eee49c23ecfa61cb0cbd971e8a54dd2312929806 100644 (file)
@@ -157,6 +157,24 @@ index 298cb4e..cec3974 100644
          const char *verb = args[0];
          unsigned f = 1, t = 1;
          LookupPaths paths;
+--- systemd-196/src/timedate/timedated.c~      2012-10-16 23:35:40.589269718 +0200
++++ systemd-196/src/timedate/timedated.c       2012-12-21 11:46:13.545086335 +0100
+@@ -175,6 +175,15 @@
+                 }
+         }
++#ifdef TARGET_PLD
++      r = parse_env_file("/etc/sysconfig/timezone", NEWLINE,
++                         "TIMEZONE", &tz.zone,
++                         NULL);
++      if (r < 0) {
++              if (r != -ENOENT)
++                      log_warning("Failed to read /etc/sysconfig/timezone: %s", strerror(-r));
++      }
++#endif
+ #ifdef HAVE_DEBIAN
+         r = read_one_line_file("/etc/timezone", &tz.zone);
+         if (r < 0) {
 diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c
 index 9196789..1d1a916 100644
 --- a/src/vconsole/vconsole-setup.c
This page took 0.38608 seconds and 4 git commands to generate.