Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with files modification time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
stdcall
n00b
n00b


Joined: 02 Oct 2008
Posts: 2
Location: Russia/Krasnoyarsk

PostPosted: Sat Oct 18, 2008 7:08 am    Post subject: problem with files modification time Reply with quote

Hi everyone! When i installed gentoo on my pc, system clock time was incorrect, so now some files on my computer got incorrect time stamps. When i try to rebuild some packages, i got make warnings about modification time of some files in the future and make cannot finish its work. Please help me with your solutions.
p.s. sorry for my english
Back to top
View user's profile Send private message
a.b.
Apprentice
Apprentice


Joined: 23 Mar 2008
Posts: 218
Location: Anus Mundi, Germany

PostPosted: Sat Oct 18, 2008 8:35 am    Post subject: Reply with quote

I doubt wrong time stamps make compiling fail, especially since portage uses a new copy of the source everytime. However, this would give all files on your computer the current time as timestamp:
Code:
find / -exec touch {} \;

Maybe this breaks things that rely on timestamps, I doubt it, though.
Back to top
View user's profile Send private message
button
n00b
n00b


Joined: 24 Dec 2007
Posts: 65
Location: Croatia

PostPosted: Sat Oct 18, 2008 8:37 am    Post subject: Reply with quote

Anything that I might think of is touching files giving you trouble. In addition, you can search the filesystem with find to find all files with timestamp in the future, and pipe the output to 'touch' command.
Code:

man touch
man find

http://wooledge.org:8000/UsingFind

EDIT: a.b. was faster :lol:
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Oct 18, 2008 1:01 pm    Post subject: Reply with quote

Moved from Gentoo Chat to Other Things Gentoo.
support question, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum