Your message dated Mon, 11 Apr 2022 08:49:24 +0000
with message-id <[email protected]>
and subject line Bug#1009066: fixed in pcre2 10.39-4
has caused the Debian Bug report #1009066,
regarding pcre2: FTBFS on hurd-i386: error: ‘PATH_MAX’ undeclared
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.)
--
1009066: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009066
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pcre2
Version: 10.39-1
Severity: important
Tags: patch ftbfs
User: [email protected]
Usertags: hurd
This packages fails to build on hurd-i386 as of version 10.39-1;
from the last build log for 10.39-3 [1]:
| gcc -DHAVE_CONFIG_H -I. -I./src "-I./src" -Wdate-time -D_FORTIFY_SOURCE=2
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Dregcomp=PCRE2regcomp -Dregexec=PCRE2regexec
-Dregerror=PCRE2regerror -Dregfree=PCRE2regfree -c -o src/pcre2grep-pcre2grep.o
`test -f 'src/pcre2grep.c' || echo './'`src/pcre2grep.c
| src/pcre2grep.c: In function ‘grep_or_recurse’:
| src/pcre2grep.c:3365:25: error: ‘PATH_MAX’ undeclared (first use in this
function)
| 3365 | char resolvedpath[PATH_MAX];
| | ^~~~~~~~
| src/pcre2grep.c:3365:25: note: each undeclared identifier is reported only
once for each function it appears in
| Makefile:2574: recipe for target 'src/pcre2grep-pcre2grep.o' failed
[1]
https://buildd.debian.org/status/fetch.php?pkg=pcre2&arch=hurd-i386&ver=10.39-3&stamp=1637168178&raw=0
Attached is a simplistic patch.
--- pcre2-10.39.orig/src/pcre2grep.c
+++ pcre2-10.39/src/pcre2grep.c
@@ -3362,19 +3362,25 @@ if (isdirectory(pathname))
#ifdef HAVE_REALPATH
{
- char resolvedpath[PATH_MAX];
+ char *resolvedpath;
BOOL isSame;
size_t rlen;
- if (realpath(childpath, resolvedpath) == NULL)
+ if ((resolvedpath = realpath(childpath, NULL)) == NULL)
continue; /* This path is invalid - we can skip processing this */
isSame = strcmp(pathname, resolvedpath) == 0;
- if (isSame) continue; /* We have a recursion */
+ if (isSame)
+ {
+ free(resolvedpath);
+ continue; /* We have a recursion */
+ }
rlen = strlen(resolvedpath);
- if (rlen++ < sizeof(resolvedpath) - 3)
+ rlen++;
{
BOOL contained;
+ resolvedpath = (char *)realloc(resolvedpath, rlen + 1);
strcat(resolvedpath, "/");
contained = strncmp(pathname, resolvedpath, rlen) == 0;
+ free(resolvedpath);
if (contained) continue; /* We have a recursion */
}
}
--- End Message ---
--- Begin Message ---
Source: pcre2
Source-Version: 10.39-4
Done: Matthew Vernon <[email protected]>
We believe that the bug you reported is fixed in the latest version of
pcre2, 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.
Matthew Vernon <[email protected]> (supplier of updated pcre2 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: Mon, 11 Apr 2022 09:23:48 +0100
Source: pcre2
Binary: libpcre2-8-0 libpcre2-8-0-udeb libpcre2-16-0 libpcre2-32-0
libpcre2-posix3 libpcre2-dev pcre2-utils
Architecture: source
Version: 10.39-4
Distribution: unstable
Urgency: medium
Maintainer: Matthew Vernon <[email protected]>
Changed-By: Matthew Vernon <[email protected]>
Description:
libpcre2-16-0 - New Perl Compatible Regular Expression Library - 16 bit
runtime f
libpcre2-32-0 - New Perl Compatible Regular Expression Library - 32 bit
runtime f
libpcre2-8-0 - New Perl Compatible Regular Expression Library- 8 bit runtime
fil
libpcre2-8-0-udeb - New Perl Compatible Regular Expression Library- 8 bit
runtime fil (udeb)
libpcre2-dev - New Perl Compatible Regular Expression Library - development
file
libpcre2-posix3 - New Perl Compatible Regular Expression Library -
posix-compatible
pcre2-utils - New Perl Compatible Regular Expression Library - utilities
Closes: 1009066
Changes:
pcre2 (10.39-4) unstable; urgency=medium
.
* Backport upstream Hurd build fix (Closes: #1009066)
Checksums-Sha1:
673ea76c273edb09967fc6c0c5c3f9161aa5286b 2286 pcre2_10.39-4.dsc
60adf3ab96e69b9f47990392e199fa86fcae6b84 7715 pcre2_10.39-4.diff.gz
Checksums-Sha256:
976be6a92ccf0598a02c718b0f6276614398f11d7977bfd7057835cc1937cf22 2286
pcre2_10.39-4.dsc
8d4f1a30310deeca495f4dd5e5be3592f35be414c6d974b8ea8a552df7c2f213 7715
pcre2_10.39-4.diff.gz
Files:
6bfc7c0dbb66d58a233b16d918985af5 2286 libs optional pcre2_10.39-4.dsc
42178e0915b940cab173e673549e547f 7715 libs optional pcre2_10.39-4.diff.gz
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAmJT5w8THG1hdHRoZXdA
ZGViaWFuLm9yZwAKCRAS9NIcj2pjyLnvD/9CVe0gSzzOI9dyLWpPeSN++1+JcM+y
hg5+63fqvbclCPSKEEOR9y2CxNH4VGkyslnj6OmMN5pTP9hRUcJ1NvzUoman+rXi
VCWJ8KNMU0xdtnMU6Yn+GgT9Vcexolzfvh2dVpzRdm4w40GO0YL2ewrtTo1P/iu3
dFfb98zd4ft3yMgXEy6V7ZPWy8jlOlAt2OGKX3GibnYegBWcDmYd3NUpNI2zuUAU
eUwsTrhif7MBTDlCn/o9cNv+VKIcrgCvHRFOSVvotxs6ZRyznfW7RMiMLbXcDjox
eYdj1Ob142I3+nVdkUU8PhcxC9CeiAFBeWzRyXZG37BQWttZ+HpFYH3rcDt2Yxeb
w0EHPp3m/g0PeqGdzME0I/uGWHoVaMEK7/Js0T0lkgl+ZxTjgl7SN7U6PCW5+47W
yGwZ3b3vb19GXM2oY3693Sloz2mwRZ7vuSJDFw4WduiWBIhzilAfUQ4sCRPKg7Xk
dMh5kyUO+kf7XhBr40aehvhuJFkDxfC7hNMuooC6ot0p/sYXBeLF76C7lOeeVW7t
gzgJvkX1pGHt1Xng60SVVeM86OtCjQQjNxG/gw1O4CObOW4RKLJFnYJdpHecSKG0
VARRbKZnx310lESYYrdDhZet4gf3low5r9MdOd/oUjXjM7mhBY91e0WAb2NXkRw8
wtS9o4v4kmsWDQ==
=01n5
-----END PGP SIGNATURE-----
--- End Message ---