Skip to content

testing/zot: bump go-sqlite3 to fix LFS64 errors & fix makedepends and basename declaration of unshare

Celeste requested to merge Celeste/aports:upgrade-zot into master

https://build.alpinelinux.org/buildlogs/build-edge-x86_64/testing/zot/zot-2.0.1-r1.log

# github.com/mattn/go-sqlite3
sqlite3-binding.c:38268:42: error: 'pread64' undeclared here (not in a function); did you mean 'pread'?
38268 |   { "pread64",      (sqlite3_syscall_ptr)pread64,    0  },
      |                                          ^~~~~~~
      |                                          pread
sqlite3-binding.c:38286:42: error: 'pwrite64' undeclared here (not in a function); did you mean 'pwrite'?
38286 |   { "pwrite64",     (sqlite3_syscall_ptr)pwrite64,   0  },
      |                                          ^~~~~~~~
      |                                          pwrite
sqlite3-binding.c: In function 'seekAndRead':
sqlite3-binding.c:38272:49: error: unknown type name 'off64_t'; did you mean 'off_t'?
38272 | #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent)
      |                                                 ^~~~~~~
sqlite3-binding.c:41128:11: note: in expansion of macro 'osPread64'
41128 |     got = osPread64(id->h, pBuf, cnt, offset);
      |           ^~~~~~~~~
sqlite3-binding.c:38272:58: error: expected ')' before 'aSyscall'
38272 | #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent)
      |                   ~                                      ^~~~~~~~
sqlite3-binding.c:41128:11: note: in expansion of macro 'osPread64'
41128 |     got = osPread64(id->h, pBuf, cnt, offset);
      |           ^~~~~~~~~
sqlite3-binding.c: In function 'seekAndWriteFd':
sqlite3-binding.c:38290:57: error: unknown type name 'off64_t'; did you mean 'off_t'?
38290 | #define osPwrite64  ((ssize_t(*)(int,const void*,size_t,off64_t))\
      |                                                         ^~~~~~~
sqlite3-binding.c:41257:17: note: in expansion of macro 'osPwrite64'
41257 |   do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
      |                 ^~~~~~~~~~
sqlite3-binding.c:38291:21: error: expected ')' before 'aSyscall'
38291 |                     aSyscall[13].pCurrent)
      |                     ^~~~~~~~
sqlite3-binding.c:41257:17: note: in expansion of macro 'osPwrite64'
41257 |   do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
      |                 ^~~~~~~~~~
sqlite3-binding.c:38290:21: note: to match this '('
38290 | #define osPwrite64  ((ssize_t(*)(int,const void*,size_t,off64_t))\
      |                     ^
sqlite3-binding.c:41257:17: note: in expansion of macro 'osPwrite64'
41257 |   do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
      |                 ^~~~~~~~~~
# github.com/containers/storage/pkg/unshare
unshare.c:20:10: fatal error: linux/limits.h: No such file or directory
   20 | #include <linux/limits.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

After adding linux-headers to makedepends:

# github.com/containers/storage/pkg/unshare
unshare.c: In function 'copy_self_proc_exe':
unshare.c:235:19: warning: implicit declaration of function 'basename' [-Wimplicit-function-declaration]
  235 |         exename = basename(argv[0]);
      |                   ^~~~~~~~
unshare.c:235:17: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  235 |         exename = basename(argv[0]);
      |                 ^
Edited by Celeste

Merge request reports