Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163416 - mtimes not preserved when using binpkg
Summary: mtimes not preserved when using binpkg
Status: RESOLVED DUPLICATE of bug 181021
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 16162
Blocks:
  Show dependency tree
 
Reported: 2007-01-23 10:59 UTC by Tom Willaert
Modified: 2007-06-06 03:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Willaert 2007-01-23 10:59:53 UTC
When a binary package is created using emerge -buildpkg or quickpkg and later installed with emerge --usepkgonly, the timestamps on the new installation don't match those on the old installation. Apparantly, the timestamp is assigned during emerge and not taken from the archive.

Currently I'm trying to use binary packages to create multiple gentoo guests on a vserver and then hardlinking the installed files to save space. Since the timestamps are different this is impossible.

Reproducible: Always

Steps to Reproduce:
1. emerge -b somepackage (emerge -b zlib)
2. check timestamp of one of the emerged files (ls -al /usr/lib/libz.so --> 11:50)
3. emerge -K somepackage (emerge -K zlib)
4. verify the timestamp of the emerged file has changed (ls -al /usr/lib/libz.so --> 11:51)

Actual Results:  
dfa / # emerge -b zlib
Calculating dependencies... done!

>>> Emerging (1 of 1) sys-libs/zlib-1.2.3-r1 to /
 * zlib-1.2.3.tar.bz2 MD5 ;-) ...                                                           ... <compilation> ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/zlib-1.2.3-r1

>>> Install zlib-1.2.3-r1 into /var/tmp/portage/zlib-1.2.3-r1/image/ category sys-libs
...
>>> Completed installing zlib-1.2.3-r1 into /var/tmp/portage/zlib-1.2.3-r1/image/
...
>>> Merging sys-libs/zlib-1.2.3-r1 to /
...
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> sys-libs/zlib-1.2.3-r1 merged.

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 5 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.

dfa / # ls -al /usr/lib/libz.so
-rwxr-xr-x 1 root root 320 Jan 23 11:50 /usr/lib/libz.so
dfa / # emerge -K zlib
Calculating dependencies... done!

>>> Emerging (1 of 1) sys-libs/zlib-1.2.3-r1 to /
>>> Extracting info
>>> Extracting zlib-1.2.3-r1
>>> Merging sys-libs/zlib-1.2.3-r1 to /
...
>>> Safely unmerging already-installed instance...
...
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> sys-libs/zlib-1.2.3-r1 merged.

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 5 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.

dfa / # ls -al /usr/lib/libz.so
-rwxr-xr-x 1 root root 320 Jan 23 11:51 /usr/lib/libz.so
dfa / #


Expected Results:  
Timestamp should have been 11:50 after emerge -K
Comment 1 Zac Medico gentoo-dev 2007-06-06 03:49:58 UTC

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