[PATCH] Fix test_command_exec test (t-command)

2020-08-27 Thread Sören Tempel
Hello, Hope this is the right please to sent patches for dpkg. I am currently trying to get the dpkg test suite to pass for our Alpine Linux dpkg package. While doing so I noticed a mistake in the test_command_exec() function from t-command.c, the function doesn't set arg0 correctly. This causes t

Re: [PATCH] Fix test_command_exec test (t-command)

2020-08-27 Thread Sören Tempel
Hi, Noticed one more thing: dpkg uses '%ld' to print values of the time_t type. This does, however, not work on 32-Bit Alpine Linux architectures (which use musl libc) as musl libc recently switched to a 64-Bit (long long int) time_t on 32-bit arches. This causes dpkg test failures on Alpine 32-bi

Re: dpkg: error: info database format (2)

2020-08-27 Thread Guillem Jover
On Sun, 2020-08-23 at 08:25:11 +0300, sam wrote: > I have been having below error with below command. > > $ sudo apt-get update && sudo apt-get upgrade > > Do you want to continue? [Y/n] y > dpkg: error: info database format (2) is bogus or too new; try getting a > newer dpkg > E: Sub-process /us

Re: [PATCH] Fix test_command_exec test (t-command)

2020-08-27 Thread Guillem Jover
Hi! On Thu, 2020-08-27 at 23:00:43 +0200, Sören Tempel wrote: > Noticed one more thing: dpkg uses '%ld' to print values of the time_t > type. This does, however, not work on 32-Bit Alpine Linux architectures > (which use musl libc) as musl libc recently switched to a 64-Bit (long > long int) time_