[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r5926 - in glibc-package/trunk/debian: . patches patches/hurd-i386



Author: sthibault
Date: 2014-02-09 20:15:35 +0000 (Sun, 09 Feb 2014)
New Revision: 5926

Added:
   glibc-package/trunk/debian/patches/hurd-i386/tg-futimens.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
Fix apt 0.9.15.1

  * patches/hurd-i386/tg-futimens.diff: New patch to add futimens support for
    apt 0.9.15.1.


Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2014-02-08 15:24:46 UTC (rev 5925)
+++ glibc-package/trunk/debian/changelog	2014-02-09 20:15:35 UTC (rev 5926)
@@ -1,10 +1,12 @@
-eglibc (2.17-98) UNRELEASED; urgency=low
+eglibc (2.17-98~1) UNRELEASED; urgency=low
 
   !!! PLEASE MOVE ALL MAJOR DEVELOPMENT TO THE 2.18 BRANCH OR UPSTREAM !!!
 
   [ Samuel Thibault ]
   * patches/hurd-i386/tg-ifaddrs_v6.diff: Add missing initialization of sa_len
     fields.
+  * patches/hurd-i386/tg-futimens.diff: New patch to add futimens support for
+    apt 0.9.15.1.
 
  -- Aurelien Jarno <aurel32@debian.org>  Fri, 29 Nov 2013 18:11:34 +0100
 

Added: glibc-package/trunk/debian/patches/hurd-i386/tg-futimens.diff
===================================================================
--- glibc-package/trunk/debian/patches/hurd-i386/tg-futimens.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/tg-futimens.diff	2014-02-09 20:15:35 UTC (rev 5926)
@@ -0,0 +1,69 @@
+From: Samuel Thibault <samuel.thibault@ens-lyon.org>
+Subject: [PATCH] Add futimens support
+
+* sysdeps/mach/hurd/futimens.c: New file.
+
+Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+---
+ sysdeps/mach/hurd/futimens.c | 50 ++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 50 insertions(+)
+
+diff --git a/sysdeps/mach/hurd/futimens.c b/sysdeps/mach/hurd/futimens.c
+new file mode 100644
+index 0000000..218779d
+--- /dev/null
++++ b/sysdeps/mach/hurd/futimens.c
+@@ -0,0 +1,50 @@
++/* futimes -- change access and modification times of open file.  Hurd version.
++   Copyright (C) 2002-2014 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++
++   The GNU C Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public
++   License as published by the Free Software Foundation; either
++   version 2.1 of the License, or (at your option) any later version.
++
++   The GNU C Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Lesser General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with the GNU C Library; if not, see
++   <http://www.gnu.org/licenses/>.  */
++
++#include <sys/time.h>
++#include <errno.h>
++#include <stddef.h>
++#include <hurd.h>
++#include <hurd/fd.h>
++
++/* Change the access time of FD to TSP[0] and
++   the modification time of FD to TSP[1].  */
++int
++__futimens (int fd, const struct timespec tsp[2])
++{
++  time_value_t atime, mtime;
++  error_t err;
++
++  if (tsp == NULL)
++    {
++      /* Setting the number of microseconds to `-1' tells the
++         underlying filesystems to use the current time.  */
++      atime.microseconds = mtime.microseconds = -1;
++    }
++  else
++    {
++      atime.seconds = tsp[0].tv_sec;
++      atime.microseconds = tsp[0].tv_nsec / 1000;
++      mtime.seconds = tsp[1].tv_sec;
++      mtime.microseconds = tsp[1].tv_nsec / 1000;
++    }
++
++  err = HURD_DPORT_USE (fd, __file_utimes (port, atime, mtime));
++  return err ? __hurd_dfail (fd, err) : 0;
++}
++weak_alias (__futimens, futimens)
+-- 
+tg: (9a079e2..) futimens (depends on: baseline)

Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series	2014-02-08 15:24:46 UTC (rev 5925)
+++ glibc-package/trunk/debian/patches/series	2014-02-09 20:15:35 UTC (rev 5926)
@@ -138,6 +138,7 @@
 hurd-i386/cvs-libpthread-tls.diff
 hurd-i386/cvs-libpthread-userstack.diff
 hurd-i386/tg-libc_getspecific.diff
+hurd-i386/tg-futimens.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff


Reply to: