Bug 1225186

Summary: binutils ar adds files to libraries with a date of "Jan 1 01:00 1970"
Product: [Fedora] Fedora Reporter: Paul <redhat>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: jakub, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-26 19:08:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul 2015-05-26 18:58:46 UTC
I upgraded to Fedora 22 an hour ago and saw this bug with "ar" which happens everytime

Steps to Reproduce:

echo "void func(){}" > s.c
rm -f lib.a s.o
/usr/bin/gcc -c s.c
/usr/bin/ar rv lib.a s.o
/usr/bin/ar tv lib.a
/usr/bin/ls -l

Actual results:
/usr/bin/ar: creating lib.a
a - s.o
rw-r--r-- 0/0   1224 Jan  1 01:00 1970 s.o
total 16
-rw-r-----. 1 pas pas 1366 May 26 19:48 lib.a
-rw-r-----. 1 pas pas   14 May 26 19:48 s.c
-rw-r-----. 1 pas pas 1224 May 26 19:48 s.o

Expected results:
I'd expect to see the s.o file in lib.a have a time of 19:48

Additional info:
Using binutils-2.25-5.fc22.x86_64

I've put this with a priority of High, if it's my mistake then ignore me, but if it's a real bug it should be urgent.

Workaround
I'm actually using Makefiles so after I build a libaray, I'm using "make -t" which touches all the targets in the library with the current time

Comment 1 Paul 2015-05-26 19:08:19 UTC
This appears to be a duplicate of bug 1195883, bye bye everybodies compilation enviroments.

*** This bug has been marked as a duplicate of bug 1195883 ***