Your message dated Fri, 18 Sep 2015 22:20:17 +0000
with message-id <[email protected]>
and subject line Bug#783292: fixed in klibc 2.0.4-3
has caused the Debian Bug report #783292,
regarding klibc: wrongly defined struct stat on ppc64/ppc64el
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
783292: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783292
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: klibc
Version: 2.0.4-2
Severity: important
Tags: patch
The struct stat is incorrectly defined on ppc64 and ppc64el, causing
the resume binary to fail working correctly and thus hibernation to
work. The patch below gives more explanation and fixes the issue.
>From 5a53f821db8bc887c472d2e5b58986db88b25a11 Mon Sep 17 00:00:00 2001
From: Aurelien Jarno <[email protected]>
Date: Sat, 25 Apr 2015 14:16:16 +0200
Subject: [PATCH] ppc64: fix struct stat
On ppc64 the struct stat defined by klibc matches the kernel one.
However it contains implicit padding before the st_rdev field due to the
64-bit alignement. For internal reasons, klibc defines st_rdev as a pair
of 32-bit values (using the __stdev64 macro). They only need to be
32-bit aligned and as a consequence st->st_rdev is incorrectly defined.
The solution is to add an explicit padding in the structure. This fixes
the resume binary on ppc64 BE and LE, and probably other things.
Signed-off-by: Aurelien Jarno <[email protected]>
---
usr/include/arch/ppc64/klibc/archstat.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/usr/include/arch/ppc64/klibc/archstat.h
b/usr/include/arch/ppc64/klibc/archstat.h
index 918d810..0bbbff3 100644
--- a/usr/include/arch/ppc64/klibc/archstat.h
+++ b/usr/include/arch/ppc64/klibc/archstat.h
@@ -12,6 +12,7 @@ struct stat {
mode_t st_mode;
uid_t st_uid;
gid_t st_gid;
+ unsigned int __pad1;
__stdev64 (st_rdev);
off_t st_size;
unsigned long st_blksize;
--
2.1.4
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: ppc64el (ppc64le)
Kernel: Linux 3.16.0-4-powerpc64le (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- End Message ---
--- Begin Message ---
Source: klibc
Source-Version: 2.0.4-3
We believe that the bug you reported is fixed in the latest version of
klibc, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ben Hutchings <[email protected]> (supplier of updated klibc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 18 Sep 2015 23:39:49 +0200
Source: klibc
Binary: libklibc-dev libklibc klibc-utils
Architecture: source
Version: 2.0.4-3
Distribution: unstable
Urgency: medium
Maintainer: maximilian attems <[email protected]>
Changed-By: Ben Hutchings <[email protected]>
Description:
klibc-utils - small utilities built with klibc for early boot
libklibc - minimal libc subset for use with initramfs
libklibc-dev - kernel headers used during the build of klibc
Closes: 355809 745660 777217 778299 783292 789683
Changes:
klibc (2.0.4-3) unstable; urgency=medium
.
* Fix issues that prevent a reproducible build:
- Install headers with consistent mode
- dash: mkbuiltins: Fix sort order harder
* debian/watch: Look for xz-compressed tarballs (Closes: #778299)
and use HTTP-S
* Remove udebs as they are no longer used (see #653840)
* [klibc] Add pread and pwrite 32bit syscall wrappers for parisc
(Closes: #745660)
* [klibc] ppc64: fix struct stat (Closes: #783292)
* debian/control: Add Build-Conflicts: ccache (Closes: #777217)
* gzip: Fix silent fallback to decompression (Closes: #355809)
* [klibc] mips/setjmp.S: don't save and restore floating-point registers
(Closes: #789683)
* debian/rules: Fix mips* architecture mapping (fixes FTBFS on mips, mipsel)
* debian/control: Change Vcs-Git, Vcs-Browser and Homepage to canonical
HTTP-S URLs
* debian/control: Bump Standards-Version to 3.9.6; no changes required
Checksums-Sha1:
e3980235af4fdbf1f3997ed2ecdca7ac16d70687 2016 klibc_2.0.4-3.dsc
7014ca77ba72b09f0990e15861c4e6adbd76117d 27752 klibc_2.0.4-3.debian.tar.xz
Checksums-Sha256:
84e55aa492876dbd7e4895f891eaa380fceea2b47b84326a403d8136537f29b0 2016
klibc_2.0.4-3.dsc
242887655f400e6ef94faf0aba4dceb688bf51b6666c91b7828dbacaef8344c3 27752
klibc_2.0.4-3.debian.tar.xz
Files:
b1ee0ac220903bce26c9c2197a5a1374 2016 libs optional klibc_2.0.4-3.dsc
f052a909205dd0d4379f6cc8b4909321 27752 libs optional
klibc_2.0.4-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIVAwUBVfyJB+e/yOyVhhEJAQqACxAA0wGk3v9n//cSrpoQHGgysN4sZQpkJJWd
6h9wmJpeMQqKV3q3IH0Km4GGgbdSI3zsTMzptajybXkThXvG4RWCTI0og7t4ddjX
dr7VUMeunGEraPgfWe2atHHidW+boKSXaK/a5QckIZJX92rLBGoW1RBWFrC9xk8A
wm2UwcG5cdp2CHT7J6zfzWa+PmfE16dPPOsU25pwbkX1ULnc3gzXdrS6HmDI0NcC
SXZPzTe/6SO6UOsYT+BQJzb1LtDYOoweN5a0QMPUCNBjuoMPb7gWIGTa8Txh5MR5
tJwxeuj5EcV9MbgOUh2lFi/YfEbPaiMkUCreEJLWuRjiuQnoGkRcT/F/Ih35ycEt
HFD4sSdhNxiINHHUX2EPy4xQrEDHc1mz/5+LOiXsEOR6WGE82ifc3QClYVQKpxF+
OLW+VLIV4+WLHd4jq09o6NIo7WJLxvYVwdOlRWMcUt2Kq82oCk+qlp8+unnjI/U8
2P1/EvYJjvftZcJQcdvebc2R/w/gXmcJtqK2nWF+mRegoCm2ZgmnJPnnZegFp9Wv
47KvDha5sshCllj60QdWdjBDWDpzEkYrNlZuk9M2SKcioK9v+6/g1u9I1XhZHUTz
eQWaVAgFeJw4a3QAocw6NjWzybbEMxQ9v2wBs6FV6JKGAvrlzuY8FzSkBEKXaz5d
9XeBqFew4MI=
=Nxtg
-----END PGP SIGNATURE-----
--- End Message ---