Kaz Kylheku wrote:
> On 2016-05-16, Geoff Clare <ge...@clare.See-My-Signature.invalid> wrote:
>> Janis Papanagnou wrote:
>>
>>> On 13.05.2016 14:26, Geoff Clare wrote:
>>
>>>> $ ls -l $(command -v grep)
>>>> -r-xr-xr-x 3 root bin 22060 Feb 19 2013 /usr/xpg4/bin/grep
>>>>
>>>> I wouldn't call 2013 "really ancient".
>>>
>>> Erm.., "Feb 19 2013" is the date of the installation, not the age of the
>>> tool.
>>
>> Well, you learn something new every day. Must be to do with the new
>> packaging system in Solaris 11. I'm sure Solaris releases up to 10
>> preserved the timestamp of system binaries as they were installed,
>> instead of setting them to the current time.
>
> What is the difference between "timestamp .. as they were installed" and
> "date of the installation"?
I had assumed that Feb 19, 2013 was the date the binaries were built
by Oracle, and that the installation process preserved that timestamp.
After Janis's comment, I poked around a bit and realised that Feb 19,
2013 was the date the system in question was updated from Solaris 11 to
11.1. This means the binaries must have had their timestamp set to the
current time as they were installed (by the update process).
>> What still puzzles me is that shell scripts are not treated the same:
>>
>> $ ls -l /usr/xpg4/bin/batch
>> -r-xr-xr-x 1 root bin 417 Oct 21 2011 /usr/xpg4/bin/batch
>> $ file /usr/xpg4/bin/batch
>> /usr/xpg4/bin/batch: executable /usr/bin/sh script
>>
>> So this is not just a simple matter of the installation doing an
>> extraction from an archive/package file without preserving timestamps.
>
> These files are not built. They probably sit verbatim in a version control
> system, and the installation perhaps takes the timestamp derived from
> their version control timestamp.
Having poked around some more, I think the explanation is that the
original Solaris 11 installation preserved timestamps, but the update
from 11 to 11.1 did not. So the files with the Oct 21, 2011 timestamp
are ones that were not included in the 11.1 update. In /usr/xpg4/bin
it just happened that the binaries were updated in 11.1 and the scripts
were not. There are some binaries with the 2011 date in /usr/bin.
--
Geoff Clare <
net...@gclare.org.uk>