Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

timestamps in rpmbuild

80 views
Skip to first unread message

Victor Eijkhout

unread,
Feb 23, 2011, 1:18:19 PM2/23/11
to

My spec file ends with (note the "ls" on the first line):

%%%%%%%%%
ls -l $RPM_BUILD_ROOT/%{slepc_install_dir}/nehalem-shared/lib/

# 3.1 is the default module

rm -f $RPM_BUILD_ROOT/%{modulefileroot}/.version
ln -s %{modulefileroot}/.version.%{version}
$RPM_BUILD_ROOT/%{modulefileroot}/.\
version

%install

%files -n %{name}-%{version}-%{comp_fam_ver}-%{mpi_fam_ver}
%defattr(755,root,install)
%{slepc_install_dir}
%{modulefileroot}
%%%%%%%%%%%%

and the corresponding output is (note the timestamps in the output of
ls):

%%%%%%%%%%%%
-rw-r--r-- 1 root root 2349060 Feb 22 20:25 libslepc.a
-rwxr-xr-x 1 root root 2338444 Feb 22 20:25 libslepc.so
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.25527
Processing files: slepc-3.1-intel11_1-mvapich2_1_4-3.1-1
Provides: libslepc.so()(64bit)
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHav\
ePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit)
libdl.so.2()(64bit) \
libgcc_s.so.1()(64bit) libibumad.so.1()(64bit) libibverbs.so.1()(64bit)
libifco\
re.so.5()(64bit) libifport.so.5()(64bit) libimf.so()(64bit)
libintlc.so.5()(64b\
it) libirc.so()(64bit) libm.so.6()(64bit) libmpich.so.1.1()(64bit)
libmpichcxx.\
so.1.1()(64bit) libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit) li\
bpthread.so.0(GLIBC_2.3.2)(64bit) librdmacm.so.1()(64bit)
librt.so.1()(64bit) l\
ibstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit)
libsvml.so()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/slepc-3.1-bu\
ildroot
Wrote:
/home/build/rpms/RPMS/x86_64/slepc-3.1-intel11_1-mvapich2_1_4-3.1-1.x86_
\
64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.35703
%%%%%%%%%%%%

but if I look at the actual files that are installed:

%%%%%%%%%%%%%
build$ cd nehalem-shared/lib/
build$ ls -l
total 4568
-rwxr-xr-x 1 root install 2327676 Feb 22 20:29 libslepc.a*
-rwxr-xr-x 1 root install 2338444 Feb 22 20:25 libslepc.so*
%%%%%%%%%%%%%

the timestamp on the .a file has changed. Why?

--
Victor Eijkhout -- eijkhout at tacc utexas edu

0 new messages