Version in base suite: 1.0.8-1 Base version: purelibc_1.0.8-1 Target version: purelibc_1.0.8-1+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/purelibc/purelibc_1.0.8-1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/purelibc/purelibc_1.0.8-1+deb13u1.dsc changelog | 6 ++ patches/fix_time64.patch | 116 +++++++++++++++++++++++++++++++++++++++++++++++ patches/series | 1 3 files changed, 123 insertions(+) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpzhebc8mj/purelibc_1.0.8-1.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpzhebc8mj/purelibc_1.0.8-1+deb13u1.dsc: no acceptable signature found diff -Nru purelibc-1.0.8/debian/changelog purelibc-1.0.8/debian/changelog --- purelibc-1.0.8/debian/changelog 2024-05-07 20:18:19.000000000 +0000 +++ purelibc-1.0.8/debian/changelog 2026-07-01 13:32:26.000000000 +0000 @@ -1,3 +1,9 @@ +purelibc (1.0.8-1+deb13u1) stable; urgency=medium + + * backport of 1.0.9 fixes. Closes: #1144141 + + -- Renzo Davoli Wed, 01 Jul 2026 15:32:26 +0200 + purelibc (1.0.8-1) unstable; urgency=medium * Team upload. diff -Nru purelibc-1.0.8/debian/patches/fix_time64.patch purelibc-1.0.8/debian/patches/fix_time64.patch --- purelibc-1.0.8/debian/patches/fix_time64.patch 1970-01-01 00:00:00.000000000 +0000 +++ purelibc-1.0.8/debian/patches/fix_time64.patch 2026-07-01 13:32:26.000000000 +0000 @@ -0,0 +1,116 @@ +--- a/stdio.c ++++ b/stdio.c +@@ -218,7 +218,7 @@ + fd=dup2(fdtmp,fd); + else + fd=fdtmp; +- if (fd>=0) ++ if (fd>=0) + newstream=fdopen(fd,modes); + if (isatty(fd)) + setlinebuf(newstream); +@@ -307,11 +307,16 @@ + buf[3]=(stream == NULL)?'X':'-'; + buf[4]=(!_pure_magic(stream))?'X':'-'; + write (2,buf,6);*/ +- if (stream == NULL) +- return -1; ++ if ++#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 39 ++ (0) ++#else ++ (stream == NULL) ++#endif ++ return -1; + else { + int rv=0; +- int (*_fileno)()=dlsym(RTLD_NEXT,"fileno"); ++ int (*_fileno)(FILE *)=dlsym(RTLD_NEXT,"fileno"); + if (_fileno) { + rv=_fileno(stream); + if (rv<0) { +@@ -330,11 +335,16 @@ + buf[3]=(stream == NULL)?'X':'-'; + buf[4]=(!_pure_magic(stream))?'X':'-'; + write (2,buf,6);*/ +- if (stream == NULL) +- return -1; ++ if ++#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 39 ++ (0) ++#else ++ (stream == NULL) ++#endif ++ return -1; + else { + int rv=0; +- int (*_fileno)()=dlsym(RTLD_NEXT,"fileno"); ++ int (*_fileno)(FILE *)=dlsym(RTLD_NEXT,"fileno"); + if (_fileno) { + rv=_fileno(stream); + if (rv<0) { +--- a/syscalls.c ++++ b/syscalls.c +@@ -299,10 +299,11 @@ + + return; + } +-#endif ++#endif // __USE_TIME_BITS64 + + #if __GNUC_PREREQ (2,33) + #ifndef __USE_TIME_BITS64 ++ + int stat(const char* pathname, struct stat* buf_stat) + { + IFNOT64(struct stat64 *buf_stat64 = alloca(sizeof(struct stat64))); +@@ -349,7 +350,34 @@ + + return rv; + } ++ ++#else // ! __USE_TIME_BITS64 ++ ++int stat(const char* pathname,struct stat* buf){ ++#ifdef __USE_NEWSTAT64_STAT ++ return __purelibc_newstat64(AT_FDCWD, pathname, buf, 0); ++#else ++ return _pure_syscall(MAKE_NAME(__NR_, arch_stat64), pathname, buf); + #endif ++} ++ ++int lstat(const char* pathname,struct stat* buf){ ++#ifdef __USE_NEWSTAT64_STAT ++ return __purelibc_newstat64(AT_FDCWD, pathname, buf, AT_SYMLINK_NOFOLLOW); ++#else ++ return _pure_syscall(MAKE_NAME(__NR_l, arch_stat64), pathname, buf); ++#endif ++} ++ ++int fstat(int fildes, struct stat *buf){ ++#ifdef __USE_NEWSTAT64_FSTAT ++ return __purelibc_newstat64(fildes, "", buf, AT_EMPTY_PATH); ++#else ++ return _pure_syscall(MAKE_NAME(__NR_f, arch_stat64), fildes, buf); ++#endif ++} ++ ++#endif // ! __USE_TIME_BITS64 + + int stat64(const char* pathname,struct stat64* buf){ + #ifdef __USE_NEWSTAT64_STAT +@@ -1053,6 +1081,14 @@ + return _pure_syscall(__NR_setresgid,rgid,egid,sgid); + } + ++int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) { ++ return _pure_syscall(__NR_getresuid, ruid, euid, suid); ++} ++ ++int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) { ++ return _pure_syscall(__NR_getresgid, rgid, egid, sgid); ++} ++ + int pipe(int filedes[2]) { + #if defined(__NR_pipe2) && ! defined(__NR_pipe) + return _pure_syscall(__NR_pipe2,filedes, 0); diff -Nru purelibc-1.0.8/debian/patches/series purelibc-1.0.8/debian/patches/series --- purelibc-1.0.8/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ purelibc-1.0.8/debian/patches/series 2026-07-01 13:32:26.000000000 +0000 @@ -0,0 +1 @@ +fix_time64.patch