[Parted-maintainers] Bug#676590: parted: FTBFS in sid: variable 'buf' set but not used
Samuel Thibault
sthibault at debian.org
Fri Jun 8 00:22:06 UTC 2012
Package: parted
Version: 2.3-9.1
Severity: serious
Justification: FTBFS
Tags: patch
Hello,
parted currently FTBFS in sid:
../../lib/regex_internal.c:738:20: error: variable 'buf' set but not used [-Werror=unused-but-set-variable]
This is indeed a bug, which was fixed in upstream gnulib, here is the
corresponding patch, why I intend to NMU along the hurd patch.
Samuel
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.4 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages parted depends on:
ii libblkid1 2.20.1-4
ii libc6 2.13-32
ii libdevmapper1.02.1 2:1.02.67-2
ii libparted0debian1 2.3-9.1
ii libreadline6 6.2-8
ii libtinfo5 5.9-7
ii libuuid1 2.20.1-4
parted recommends no packages.
Versions of packages parted suggests:
ii parted-doc 2.3-9.1
-- no debconf information
--
Samuel Thibault <samuel.thibault at fnac.net>
* B kicks DW (non mais franchement)
* DW was kicked
-+- #ens-mim - comment ça hopeless ? -+-
-------------- next part --------------
--- regex_internal.c.orig 2012-06-08 02:15:54.083227641 +0200
+++ regex_internal.c 2012-06-08 02:20:44.364702306 +0200
@@ -738,16 +738,18 @@
unsigned char buf[6];
size_t mbclen;
+ const unsigned char *pp = p;
if (BE (pstr->trans != NULL, 0))
{
int i = mlen < 6 ? mlen : 6;
while (--i >= 0)
buf[i] = pstr->trans[p[i]];
+ pp = buf;
}
/* XXX Don't use mbrtowc, we know which conversion
to use (UTF-8 -> UCS4). */
memset (&cur_state, 0, sizeof (cur_state));
- mbclen = __mbrtowc (&wc2, (const char *) p, mlen,
+ mbclen = __mbrtowc (&wc2, (const char *) pp, mlen,
&cur_state);
if (raw + offset - p <= mbclen
&& mbclen < (size_t) -2)
More information about the Parted-maintainers
mailing list