logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

mes-libc.patch (1028B)


  1. SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  3. SPDX-License-Identifier: bzip2-1.0.6
  4. mes libc has no time support, so we remove that.
  5. It also does not have fch{own,mod}, which we don't care about in the bootstrap
  6. anyway, so we can null-op those calls.
  7. diff -r -N -U3 bzip2.c bzip2.c
  8. --- bzip2-1.0.8/bzip2.c 2019-07-13 18:50:05.000000000 +0100
  9. +++ bzip2-1.0.8/bzip2.c 2021-01-14 14:11:40.160213521 +0000
  10. @@ -1051,12 +1051,9 @@
  11. {
  12. # if BZ_UNIX
  13. IntNative retVal;
  14. - struct utimbuf uTimBuf;
  15. - uTimBuf.actime = fileMetaInfo.st_atime;
  16. - uTimBuf.modtime = fileMetaInfo.st_mtime;
  17. - retVal = utime ( dstName, &uTimBuf );
  18. + retVal = 0;
  19. ERROR_IF_NOT_ZERO ( retVal );
  20. # endif
  21. }
  22. diff -r -N -U3 utime.h utime.h
  23. --- bzip2-1.0.8/utime.h 1970-01-01 01:00:00.000000000 +0100
  24. +++ bzip2-1.0.8/utime.h 2021-01-14 18:11:11.253825037 +0000
  25. @@ -0,0 +1,2 @@
  26. +#define fchown(filedes, owner, group) 0
  27. +#define fchmod(filedes, mode) 0