Commit 1125046
authored
Fix the lib not overwritten issue in docker build #33
Fix the lib not overwritten issue in docker build, to fix the wrong libcrypto.so.1.1 in docker images.
The timestamp in the changelog will be used if SOURCE_DATE_EPOCH not specified, we have some patches, but not change the timestamp, so need to increase it.
See https://reproducible-builds.org/specs/source-date-epoch/
When the timestamp and the file size are the same, the old files will not be overwritten, even use "dpkg -i --force-all" in docker build. But if we install it manually, not by docker build, then it works fine.
The PR only changes the timestamp of the libs.
Before change:
# ls /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
-rw-r--r-- 1 root root 3076992 Jun 24 20:22 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
After change:
# ls -l /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
-rw-r--r-- 1 root root 3076992 Jun 25 20:22 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.12 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments