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

Bug#738567: uses futimens, which is supported only on linux-any



Package: apt
Version: 0.9.15.1
Severity: serious
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

The apt 0.9.15.1 started to use futimens instead of previous utime.

The futimens() is not supported on kfreebsd.
The kfreebsd does have:

int utime(const char *filename, const struct utimbuf *times);
int utimes(const char *filename, const struct timeval times[2]);
int futimes(int fd, const struct timeval tv[2]);

but it does not have

int futimens(int fd, const struct timespec times[2]);

We cannot directly provide futimens in user space only,
as it have to also support special values like UTIME_NOW and UTIME_OMIT.

The hurd is also affected, see
https://lists.debian.org/debian-hurd/2014/02/msg00026.html

Please could you switch to futimes() ?
It seems that the subsecond part is set to zero in all apt cases,
so there is no difference between nanosecond and microsecond precision at all.

The futimes() is currently supported (at least) on linux, kfreebsd, hurd.

Thanks in advance

			Petr


Reply to: