CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
openrdate: use correct leap datafile
authorVictor Martinez <pitillo@ono.com>
Wed, 4 Oct 2017 02:45:08 +0000 (04:45 +0200)
committerVictor Martinez <pitillo@ono.com>
Wed, 4 Oct 2017 02:45:08 +0000 (04:45 +0200)
openrdate/.md5sum
openrdate/Pkgfile
openrdate/ntpleaps.patch [new file with mode: 0644]

index 90e4fb6a880780363952c7692cee5c8be2d39021..34aa263c79e3f8e7a31a873a79f409acb16ebb68 100644 (file)
@@ -1,2 +1,3 @@
+30591f4d63ae9ff02ef97775e6d85a82  ntpleaps.patch
 ad9bd58e1fb7babc74d0a0a16a1248a2  openrdate-1.2.tar.gz
 c212d60bdabec86c27d82b1a19223aa0  rdate
index 934462e98e31d06670cfa56324047de9aa0486bc..7889e02e6ae4936828bb1d87fef81d70435c6d08 100644 (file)
@@ -4,12 +4,14 @@
 
 name=openrdate
 version=1.2
-release=2
+release=3
 source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.gz/$name-$version.tar.gz 
-        rdate)
+        rdate ntpleaps.patch)
 
 build() {
   cd $name-$version
+  # FS1462
+  patch -p1 -i $SRC/ntpleaps.patch
   ./configure --prefix=/usr \
               --build=arm-unknown-linux-gnueabi
   make
diff --git a/openrdate/ntpleaps.patch b/openrdate/ntpleaps.patch
new file mode 100644 (file)
index 0000000..f94e563
--- /dev/null
@@ -0,0 +1,12 @@
+diff -rupN openrdate-1.2-orig/src/ntpleaps.c openrdate-1.2/src/ntpleaps.c
+--- openrdate-1.2-orig/src/ntpleaps.c  2008-03-19 19:21:29.000000000 +0100
++++ openrdate-1.2/src/ntpleaps.c       2017-08-27 14:41:55.618929195 +0200
+@@ -125,7 +125,7 @@ ntpleaps_read(void)
+       u_int64_t s;
+       u_int64_t *l;
+-      fd = open("/usr/share/zoneinfo/right/UTC", O_RDONLY | O_NDELAY);
++      fd = open("/usr/share/zoneinfo-leaps/UTC", O_RDONLY | O_NDELAY);
+       if (fd == -1)
+               return (-1);