Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / clean / chroot-build-support-do-not-rebuild-equal-timestamps.patch
blob3e0fbe6b996dfe460bfec7bf3559e53d3f3112cb
1 The clean command line compiler clm checks modules for freshness by comparing timestamps.
2 However, in chroot builds all files installed have the same timestamp. This leads to clm
3 trying to rebuild the library modules distributed with the Clean install every time a user
4 compiles any file. This patch changes the freshness check to use less than instead of less
5 than or equal to in order to avoid this.
7 --- clean-upstream/src/tools/clm/clm.c 2010-12-10 06:12:17.000000000 -0430
8 +++ clean/src/tools/clm/clm.c 2010-12-25 10:29:09.840675925 -0430
9 @@ -250,7 +250,7 @@
10 || (t1.dwHighDateTime==t2.dwHighDateTime && (unsigned)(t1.dwLowDateTime)<=(unsigned)(t2.dwLowDateTime)))
11 #else
12 typedef unsigned long FileTime;
13 -# define FILE_TIME_LE(t1,t2) (t1<=t2)
14 +# define FILE_TIME_LE(t1,t2) (t1<t2)
15 #endif
17 typedef struct project_node {