[Nix-dev] Moving symlinks
Vladimír Čunát
vcunat at gmail.com
Sun May 12 15:15:18 CEST 2013
Hi.
I don't have a clue what the hell is going on below. I'll be very glad
if someone helps me.
I have:
$ ls -l
/nix/store/jb1gpyx64q1n4h63vxm2jnpdjw0pswa0-mesa-noglu-9.1.1/lib/libdricore*
1182 **/libdricore9.1.1.la
24 **/libdricore9.1.1.so -> libdricore9.1.1.so.1.0.0
24 **/libdricore9.1.1.so.1 -> libdricore9.1.1.so.1.0.0
4261464 **/libdricore9.1.1.so.1.0.0
Now in the build process I run mv $out/lib/libdricore* $drivers/lib/
(I double-checked hashes that I *only* changed the postInstall phase):
$ ls -l
/nix/store/faahr0gq1fapzi7292wyy6hhakwxxqw0-mesa-noglu-9.1.1-drivers/lib/libdricore*
1190 **/libdricore9.1.1.la
19846112 **/libdricore9.1.1.so
24 **/libdricore9.1.1.so.1 -> libdricore9.1.1.so.1.0.0
19741293 **/libdricore9.1.1.so.1.0.0
Not only some links seem to be dereferenced when moving (which
contradicts mv specification) but also the sizes of the so-files are
different now! It really looks like a serious bug in coreutils or even
kernel (e.g. btrfs), unless I'm being completely dumb ATM.
Thanks,
Vlada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3251 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130512/8a1b7750/attachment.bin
More information about the nix-dev
mailing list