utime, futimens tests: Avoid test failure on Haiku

2024-09-02 Thread Bruno Haible
On Haiku, I see these test failures: FAIL: test-futimens === ../../gltests/test-futimens.h:123: assertion 'get_stat_atime_ns (&st1) == get_stat_atime_ns (&st2)' failed Abort FAIL test-futimens (exit status: 149) FAIL: test-utime ../../gltes

Re: [PATCH] test-utime: port to noatime file systems

2024-08-14 Thread Bruno Haible
modules/lchown-tests (Depends-on): Likewise. > * modules/stat-time-tests (Depends-on): Likewise. > * modules/utime-tests (Depends-on): Likewise. > * modules/utimens-tests (Depends-on): Likewise. > * modules/utimensat-tests (Depends-on): Likewise. These two module d

Re: [PATCH] test-utime: port to noatime file systems

2024-08-12 Thread Bruno Haible
* modules/fdutimensat-tests (Depends-on): Likewise. * modules/futimens-tests (Depends-on): Likewise. * modules/lchown-tests (Depends-on): Likewise. * modules/stat-time-tests (Depends-on): Likewise. * modules/utime-tests (Depends-on): Likewise. * modules/utimen

Re: [PATCH] test-utime: port to noatime file systems

2024-08-10 Thread Paul Eggert
On 2024-08-10 17:57, Collin Funk wrote: All seem to have Y2K: Yes, and that's the correct value. Thanks to both you and Bruno for reporting it. I installed the attached.From 8fa1fba5dab1a126c25e534867f653359039d177 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 10 Aug 2024 21:47:07 -07

Re: [PATCH] test-utime: port to noatime file systems

2024-08-10 Thread Collin Funk
Hi Paul, Bruno, Bruno said: > Today, one of the continuous integrations (on Debian 10, with gcc) > fails: My host system (Fedora 40 BTRFS) fails the same three tests but in different places: test-utimens.h:197: assertion 'st2.st_atime == BILLION' failed FAIL test-fdutimensat (exit statu

Re: [PATCH] test-utime: port to noatime file systems

2024-08-09 Thread Bruno Haible
Paul Eggert wrote: > tests/test-utimens.h | 46 +--- Today, one of the continuous integrations (on Debian 10, with gcc) fails: FAIL: test-fdutimensat == test-utimens.h:197: assertion 'st2.st_atime == BILLION' failed Stack trace: 0x594d65

[PATCH] test-utime: port to noatime file systems

2024-08-09 Thread Paul Eggert
Eggert + + test-utime: port to noatime file systems + Problem encountered on Ubuntu 24.04 zfs mounted noatime. + * tests/test-fdutimensat.c (main): + * tests/test-futimens.h (test_futimens): + * tests/test-lutimens.h (test_lutimens): + * tests/test-utime.c

Re: implicit declaration of function 'utime' in trailing slashes test

2021-01-23 Thread Bruno Haible
> >>> conftest.c:491:23: error: implicit declaration of function 'utime' is > >>> invalid in C99 [-Werror,-Wimplicit-function-declaration] > >>> if (!utime ("conftest.tmp/", NULL)) > >>>

Re: implicit declaration of function 'utime' in trailing slashes test

2021-01-23 Thread Tim Rühsen
igure, wget 1.12.1 prints this: checking whether utime handles trailing slashes on files... no config.log contains this: configure:49368: checking whether utime handles trailing slashes on files configure:49414: ccache /usr/bin/clang -o conftest -DNDEBUG -pipe -Os -Werror=implicit-function-declar

Re: utime on macOS

2020-12-04 Thread Bruno Haible
Martin Storsjö wrote: > FAIL: test-utime When I add an autoconf test for the trailing slash handling in utime(), I get: checking whether utime handles trailing slashes on files... no along with checking whether lstat correctly handles trailing slash... no checking whether stat hand

Re: "Cannot utime: No such file or directory" in Docker bind mounted dirs on macOS

2019-07-18 Thread Bruno Haible
Hi Max, > $ docker run -it --rm -v $(pwd):/mnt debian:latest tar xvf /mnt/test.tar -C > /mnt > > The last step fails with: > > tar: gnulib-bug-symlinks/2: Cannot utime: No such file or directory > > The commit that caused this error to occur is > http://git.savan

Re: "Cannot utime: No such file or directory" in Docker bind mounted dirs on macOS

2019-07-18 Thread Paul Eggert
Thanks for reporting the problem. This appears to be due to a bug in the macOS implementation of utimensat; see: https://github.com/rfjakob/gocryptfs/issues/229 I don't use macOS so it'd be helpful if you could check a possible workaround (attached). If this patch doesn't work for you, please

"Cannot utime: No such file or directory" in Docker bind mounted dirs on macOS

2019-07-18 Thread Max Jonas Werner
HI all, when using bind mounts and trying to extract a tar archive containing symlinks to it the extraction fails with "Cannot utime: No such file or directory". This only appears to happen on macOS (I'm using 10.14.5 and Docker Desktop 2.0.0.3). Here are the steps to reproduce

getopt-posix, utime-h: fix Makefile dependencies

2018-08-06 Thread Bruno Haible
2018-08-06 Bruno Haible getopt-posix, utime-h: Ensure the .h file gets regenerated when needed. * modules/getopt-posix (Makefile.am): Add Makefile dependency for getopt.h. * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h. diff --git a

iconv-h, monetary, utime-h: fixes for 'posixcheck'

2018-08-05 Thread Bruno Haible
The modules iconv-h, monetary, utime-h install their header file only conditionally. But that condition needs to evaluate to true if module 'posixcheck' is in use. This series of patches fixes it. 2018-08-05 Bruno Haible utime-h: Generate header file when module 'po

new module 'utime-tests'

2017-04-30 Thread Bruno Haible
And this adds tests for 'utime'. 2017-04-30 Bruno Haible utime-tests: New module. * tests/test-utime.c: New file, based on tests/test-utimens.h. * tests/test-utimens-common.h: Include . * modules/utime-tests: New file. diff --git a/modules/uti

new module 'utime'

2017-04-30 Thread Bruno Haible
This patch add a module 'utime'. The original _utime function on native Windows has a behaviour that depends on the time zone, which is nonsense (see https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00164.html ). 2017-04-29 Bruno Haible utime: New module.

make use of module 'utime-h'

2017-04-30 Thread Bruno Haible
A simple patch to make use of the new module 'utime-h'. 2017-04-29 Bruno Haible Make use of module 'utime-h'. * modules/copy-file (Depends-on): Add utime-h. * lib/copy-file.c: Assume that exists. * m4/copy-file.m4 (gl_COPY_F

new module 'utime-h'

2017-04-30 Thread Bruno Haible
Before implementing an override for the utime() function, we need the header file. This patch provides it. 2017-04-29 Bruno Haible utime-h: New module. * m4/utime_h.m4: New file. * lib/utime.in.h: New file. * modules/utime-h: New file. * doc/posix

Re: utime

2010-03-04 Thread Eric Blake
ll reasonably easy to maintain code for). But I won't write a utime replacement for Solaris, because an interface that only offers 1 second granularity is pointless. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: utime

2010-03-04 Thread Jim Meyering
orrow if no one objects. > > Sounds good to me. > >> +On some old platforms (Sequent), @code{utime (file, NULL)} fails to set the >> +file's timestamp to the current time. > > I'm assuming nobody cares about Sequent any more. If anyone does, it is > in th

Re: utime

2010-03-04 Thread Jim Meyering
Simon Josefsson wrote: > Jim, the utime module says: > > Notice: > This module is obsolete. It can be removed on 2010-01-01. > > Why is it obsolete? Should we remove it now? The code looks useful to > me, but I may be missing something. I cannot find anything in NEWS or

Re: utime

2010-03-04 Thread Simon Josefsson
t; +On some old platforms (Sequent), @code{utime (file, NULL)} fails to set the > +file's timestamp to the current time. I'm assuming nobody cares about Sequent any more. If anyone does, it is in the git history. > On some platforms, this function mis-handles trailing slash: >

utime

2010-03-04 Thread Simon Josefsson
Jim, the utime module says: Notice: This module is obsolete. It can be removed on 2010-01-01. Why is it obsolete? Should we remove it now? The code looks useful to me, but I may be missing something. I cannot find anything in NEWS or doc/posix-functions/utime.texi to explain this either

Re: gzip 1.3.6 (and other recent releases): utime() operation missed or clobbered at output file close

2006-12-05 Thread Paul Eggert
Ronan MELENNEC <[EMAIL PROTECTED]> writes: > --- gzip-1.3.6/lib/utimens.c.orig 2006-09-14 00:38:14.0 +0200 > +++ gzip-1.3.6/lib/utimens.c 2006-12-05 10:25:35.0 +0100 > @@ -93,6 +93,12 @@ >else > t = NULL; > > + /* > + * TO BE REVIEWED (usefulness and portability)

Re: utime module

2006-06-29 Thread Derek R. Price
Paul Eggert wrote: > "Derek R. Price" <[EMAIL PROTECTED]> writes: > >> Since the utime module only switches on the result of >> AC_FUNC_UTIME_NULL, and the Autoconf 2.60 documentation labels >> AC_FUNC_UTIME_NULL as obsolescent for lack of practical porting

Re: utime module

2006-06-29 Thread Paul Eggert
"Derek R. Price" <[EMAIL PROTECTED]> writes: > Since the utime module only switches on the result of > AC_FUNC_UTIME_NULL, and the Autoconf 2.60 documentation labels > AC_FUNC_UTIME_NULL as obsolescent for lack of practical porting targets, > would be okay to remove

utime module

2006-06-29 Thread Derek R. Price
Since the utime module only switches on the result of AC_FUNC_UTIME_NULL, and the Autoconf 2.60 documentation labels AC_FUNC_UTIME_NULL as obsolescent for lack of practical porting targets, would be okay to remove the utime module from GNULIB? This would mean removing lib/utime.c, m4/utime.m4

Re: utimens depends on utime

2005-09-08 Thread Paul Eggert
Sergey Poznyakoff <[EMAIL PROTECTED]> writes: > Hmm, now I see a better solution: to list m4/utimbuf.m4 in Files > section of modules/utimens. Right you are. I installed that. 2005-09-08 Paul Eggert <[EMAIL PROTECTED]> * modules/utimens (Files): Add m4/utimbuf.m4, since m4/ut

Re: utimens depends on utime

2005-09-08 Thread Sergey Poznyakoff
Paul Eggert <[EMAIL PROTECTED]> wrote: > Sergey Poznyakoff <[EMAIL PROTECTED]> writes: > > > The module utimens depends on utime, > > Could you please explain why? Because m4/utimens.m4 AC_REQUIREs gl_CHECK_TYPE_STRUCT_UTIMBUF, which is defined in m4/utimbu

Re: utimens depends on utime

2005-09-08 Thread Paul Eggert
Sergey Poznyakoff <[EMAIL PROTECTED]> writes: > The module utimens depends on utime, Could you please explain why? As I understand it, the utime module is needed only for ancient 4.3BSD-based systems where the utime function mishandles NULL arguments. Such systems are no longer in

utimens depends on utime

2005-09-08 Thread Sergey Poznyakoff
The module utimens depends on utime, however this dependency is not listed in modules/utimens. This can be fixed by the following patch: Index: modules/utimens === RCS file: /cvsroot/gnulib/gnulib/modules/utimens,v retrieving