MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0014020 | CMake | CMake | public | 2013-03-16 14:48 | 2013-11-04 09:33 | |||||
| Reporter | Modestas Vainius | |||||||||
| Assigned To | Brad King | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||
| Status | closed | Resolution | fixed | |||||||
| Platform | amd64 | OS | Debian GNU/Linux | OS Version | sid | |||||
| Product Version | CMake 2.8.10.2 | |||||||||
| Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | |||||||
| Summary | 0014020: cmake -E touch truncates time to seconds | |||||||||
| Description | When using "cmake -E touch" on an existing file, the modification time is truncated at the precision of a second. This can be seen e.g. on an ext4 filesystem. | |||||||||
| Steps To Reproduce | How to reproduce (file1 is used with "touch", and file2 is used with "cmake -E touch"): # In an empty directory... $ ls -l total 0 # Create the two files: file1 and file2 $ touch file1 ; cmake -E touch file2 ; ls -l --full-time -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:00:57.827669619 +0100 file1 -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:00:57.831669779 +0100 file2 # Note that the times look good here (file1 < file2) # Touch the two files again $ touch file1 ; cmake -E touch file2 ; ls -l --full-time -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:01:01.595819478 +0100 file1 -rw-r----- 1 xxxx xxxx 0 2013-02-03 02:01:01.000000000 +0100 file2 Now, the modification time of file2 is *before* that of file1, but file2 was touched *after* file1. | |||||||||
| Additional Information | Relayed from Debian bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699657 [^] What is more, I have easily reproduced it with 2.8.11-rc1. | |||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | https://public.kitware.com/Bug/file/4689/0001-Touch-with-better-than-1s-resolution-if-possible.patch | |||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2013-03-16 14:48 | Modestas Vainius | New Issue | ||||||||
| 2013-03-16 19:36 | Brad King | Note Added: 0032649 | ||||||||
| 2013-03-16 20:56 | Brad King | Note Added: 0032651 | ||||||||
| 2013-03-18 11:22 | Brad King | File Added: 0001-Touch-with-better-than-1s-resolution-if-possible.patch | ||||||||
| 2013-03-18 11:23 | Brad King | Note Added: 0032659 | ||||||||
| 2013-03-18 11:23 | Brad King | Status | new => backlog | |||||||
| 2013-03-18 13:38 | Brad King | Relationship added | related to 0014023 | |||||||
| 2013-05-30 15:44 | irwin | Note Added: 0033156 | ||||||||
| 2013-05-31 16:38 | Brad King | Assigned To | => Brad King | |||||||
| 2013-05-31 16:38 | Brad King | Status | backlog => assigned | |||||||
| 2013-05-31 16:38 | Brad King | Target Version | => CMake 2.8.12 | |||||||
| 2013-06-03 10:48 | Brad King | Note Added: 0033207 | ||||||||
| 2013-06-03 10:52 | Brad King | Note Added: 0033208 | ||||||||
| 2013-06-03 10:52 | Brad King | Status | assigned => resolved | |||||||
| 2013-06-03 10:52 | Brad King | Resolution | open => fixed | |||||||
| 2013-06-03 10:52 | Brad King | Fixed in Version | => CMake 2.8.12 | |||||||
| 2013-11-04 09:33 | Robert Maynard | Note Added: 0034354 | ||||||||
| 2013-11-04 09:33 | Robert Maynard | Status | resolved => closed | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||