Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some Packages Install Files With Bespoke Creation Times
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10655
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jul 27, 2024 8:51 pm    Post subject: Some Packages Install Files With Bespoke Creation Times Reply with quote

I happened to notice that the app-misc/pax-utils build process messes with the creation times of its compiled executables. pax-utils sets the creation time of some of its compiled executables but not all to the creation time of the C source code that contains main().

Although this messes up something that I'm trying to do, it's obviously intentional—and not a bug. What's the rationale? For source code that's installed as-is, I can understand, but for generated executables? Could it be that the program's timestamp is used as sort of an implicit version number for the utility?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9607
Location: beyond the rim

PostPosted: Sun Jul 28, 2024 4:24 am    Post subject: Reply with quote

Do you mean ctime? That isn't the "creation" timestamp, but the time when file metadata was modified (while mtime refers to when the files actual data was changed). Otherwise you have to be more specific what you mean.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10655
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Jul 28, 2024 2:53 pm    Post subject: Reply with quote

Ah. Thank you for the precision. Upon further study...just forget I asked. The files I was looking at in /usr/bin weren't generated executables but scripts that were being passed through the build process unchanged.

In the process of realizing that I was wrong, I have learned that Portage handles the merge process in an extremely careful and conservative fashion. For instance, even generated executables, which are demonstrably new files with new Inodes in the working directory, do not become new files with new Inodes in the live filesystem if they don't need to be. The times associated with the live filesystem files also seem to be carefully curated.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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