Your message dated Wed, 17 Nov 2021 17:21:18 +0000
with message-id <e1mnocy-000edx...@fasolo.debian.org>
and subject line Bug#986770: fixed in shapetools 1.4pl6-15
has caused the Debian Bug report #986770,
regarding shapetools: FTBFS with glibc 2.32
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 ow...@bugs.debian.org
immediately.)


-- 
986770: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986770
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: shapetools
Version: 1.4pl6-14
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch

Hi,

shapetools currently FTBFS against glibc 2.32, which is used in the
development release of Ubuntu (and should be in Debian soon).

This is because it uses sys_errlist instead of strerror(), which is also
supported in earlier versions of glibc.

In Ubuntu, the attached patch was applied to achieve the following:

  * Use strerror() instead of sys_errlist to fix FTBFS with glibc 2.32.

Thanks for considering the patch.

Logan
diff -u shapetools-1.4pl6/src/atfs/aferror.c 
shapetools-1.4pl6/src/atfs/aferror.c
--- shapetools-1.4pl6/src/atfs/aferror.c
+++ shapetools-1.4pl6/src/atfs/aferror.c
@@ -272,7 +272,7 @@
 
   switch (af_errno) {
   case AF_ESYSERR:
-    sprintf (errMsg, "%s: %s", string, sys_errlist[errno]);
+    sprintf (errMsg, "%s: %s", string, strerror(errno));
     break;
   case AF_EMISC:
     sprintf (errMsg, "%s: %s", string, diagstr);
diff -u shapetools-1.4pl6/src/atfs/atfsrepair.c 
shapetools-1.4pl6/src/atfs/atfsrepair.c
--- shapetools-1.4pl6/src/atfs/atfsrepair.c
+++ shapetools-1.4pl6/src/atfs/atfsrepair.c
@@ -495,7 +495,7 @@
     lockInfo.l_pid = (pid_t)0;
     if (fcntl (fileno(inFile), F_GETLK, &lockInfo) == -1) {
       fprintf (stderr, "->   Error:\tCannot get lock info for %s -- fcntl 
failed (%s)!\n",
-              arFilename, sys_errlist[errno]);
+              arFilename, strerror(errno));
       fclose (inFile);
       cleanup ();
     }
@@ -525,7 +525,7 @@
     lockInfo.l_pid = (pid_t)0;
     if (fcntl (fileno(inFile), F_SETLK, &lockInfo) == -1) {
       fprintf (stderr, "->   Error:\tCannot unlock %s -- fcntl failed (%s)!\n",
-              arFilename, sys_errlist[errno]);
+              arFilename, strerror(errno));
       fclose (inFile);
       cleanup ();
     }
@@ -1437,7 +1437,7 @@
            if (modeConfirmed) {
              if (chmod (attrArPath, atfsIbuf.st_mode) == -1)
                fprintf (stderr, "Error:\tCannot change protection of '%s': 
%s\n",
-                        attrArPath, sys_errlist[errno]);
+                        attrArPath, strerror(errno));
            }
          }
          if (atfsIbuf.st_gid != subIbuf.st_gid) {
@@ -1454,7 +1454,7 @@
              if (chown (attrArPath, atfsIbuf.st_uid, atfsIbuf.st_gid) == -1)
                if (chown (attrArPath, geteuid(), atfsIbuf.st_gid) == -1) {
                  fprintf (stderr, "Error:\tCannot change Owner/Group of '%s': 
%s\n",
-                          attrArPath, sys_errlist[errno]);
+                          attrArPath, strerror(errno));
                }
          }
        }
diff -u shapetools-1.4pl6/src/atfs/cacheadm.c 
shapetools-1.4pl6/src/atfs/cacheadm.c
--- shapetools-1.4pl6/src/atfs/cacheadm.c
+++ shapetools-1.4pl6/src/atfs/cacheadm.c
@@ -132,7 +132,7 @@
        retCode += setCacheSize (argv[i+optind]);
       }
       else {
-       fprintf (stderr, "  Error -- %s: %s\n", argv[i+optind], 
sys_errlist[errno]);
+       fprintf (stderr, "  Error -- %s: %s\n", argv[i+optind], 
strerror(errno));
       }
     }
   }
diff -u shapetools-1.4pl6/src/shape/parser.h 
shapetools-1.4pl6/src/shape/parser.h
--- shapetools-1.4pl6/src/shape/parser.h
+++ shapetools-1.4pl6/src/shape/parser.h
@@ -39,5 +39,5 @@
 extern char *sys_errlist[] ;   /* ... these strings by myself */
 #endif
-#define fatal_perror(string)    fatal(sys_errlist[errno], string)
+#define fatal_perror(string)    fatal(strerror(errno), string)
 
 
diff -u shapetools-1.4pl6/src/vc/rcs2atfs/utils.c 
shapetools-1.4pl6/src/vc/rcs2atfs/utils.c
--- shapetools-1.4pl6/src/vc/rcs2atfs/utils.c
+++ shapetools-1.4pl6/src/vc/rcs2atfs/utils.c
@@ -387,16 +387,16 @@
        switch (errno) {
          case EACCES:
            if (! recursive) {
-               error(sys_errlist[errno], fname) ;
+               error(strerror(errno), fname) ;
            }
            return f_error ;
          case EFAULT:
-           fatal(sys_errlist[errno], MUSTNOT) ;
+           fatal(strerror(errno), MUSTNOT) ;
          case ENOENT:
            /* can be RCS working file without busy version */
            return f_plain ;
          default:
-           error(sys_errlist[errno], fname) ;
+           error(strerror(errno), fname) ;
        }
     }
 
only in patch2:
unchanged:
--- shapetools-1.4pl6.orig/src/vc/rcs2atfs/main.c
+++ shapetools-1.4pl6/src/vc/rcs2atfs/main.c
@@ -98,12 +98,12 @@
     if (use_pipe) {
        /* open pipe to Bourne Shell */
        if ((out = popen(BOURNE_SHELL, "w")) == NULL) {
-           fatal(POPEN_SHELL, sys_errlist[errno]) ;
+           fatal(POPEN_SHELL, strerror(errno)) ;
        }
     } else {
        /* open output file for script */
        if ((out = fopen(shellscript, "w")) == NULL) {
-           fatal(sys_errlist[errno], shellscript) ;
+           fatal(strerror(errno), shellscript) ;
        }
        /* insert some header into shell script (#!/bin/sh etc.) */
        fprintf(out, SCRIPT_HEADER, "rcs2atfs-1.9") ;
@@ -228,7 +228,7 @@
     basedir = strip_last(rdir) ; /* may be NULL */
     
     if ((dirp = opendir(rdir)) == NULL) {
-       warning(sys_errlist[errno], rdir) ;
+       warning(strerror(errno), rdir) ;
        free(rdir) ;
        return ;
     }

--- End Message ---
--- Begin Message ---
Source: shapetools
Source-Version: 1.4pl6-15
Done: Matthias Klose <d...@debian.org>

We believe that the bug you reported is fixed in the latest version of
shapetools, 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 986...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <d...@debian.org> (supplier of updated shapetools 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 17 Nov 2021 17:58:03 +0100
Source: shapetools
Architecture: source
Version: 1.4pl6-15
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <d...@debian.org>
Changed-By: Matthias Klose <d...@debian.org>
Closes: 986770
Changes:
 shapetools (1.4pl6-15) unstable; urgency=medium
 .
   * Fix build failure with glibc 2.32 (Logan Rosen). Closes: #986770.
   * Bump debhelper and standards versions.
Checksums-Sha1:
 75814c771ab39b14e1d5e0c4110c1bd3191ad255 1834 shapetools_1.4pl6-15.dsc
 9536d5174fc4c5d7279a298aa1a7f30ebd94d0ab 107862 shapetools_1.4pl6-15.diff.gz
 e4fac377830c37a2852a65a2b8f26bfd6b6379ed 5812 
shapetools_1.4pl6-15_source.buildinfo
Checksums-Sha256:
 f27a3ceee7080250a862fc4b8e2ee339cef35b9539e89e856b4600a059784b24 1834 
shapetools_1.4pl6-15.dsc
 6e514d0aec0c23df2a33cf59db57c982e5183e9ed2900b0091be67998134a898 107862 
shapetools_1.4pl6-15.diff.gz
 365dfcbba4625bc76cf51efe385d8de16ec032179c538361822078d8ddc7bf0f 5812 
shapetools_1.4pl6-15_source.buildinfo
Files:
 6963a13fe8e3752f05c226210767e55f 1834 devel optional shapetools_1.4pl6-15.dsc
 4a423c59f963ef2f2132f1fad42f1cb5 107862 devel optional 
shapetools_1.4pl6-15.diff.gz
 e7eebebd7cae1546629673c23e5173ed 5812 devel optional 
shapetools_1.4pl6-15_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmGVNX4QHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9YuQD/4hb5CMK805bZGeDgNuNVKC2aQhtvgOU95/
z0FSho3FHWLDRs/MP02OisXyxWFeUMNjrKVGz21hC9M+yasQqZrQ1Ju9gCR9V8Wy
5HO6bYsmnFuUnlQtFzyY2HqMof4Yippjw9AC4nfVuNSjjnn+g25NqcfIHx7/FFiU
FwRadX9UBbCjFIn25aEDIXw0tNefKnGVWDT9niWqDYOr3iSdM/8c6+ZGfdn4Qc6h
pJoYs7h4WGL9Bf7A2BYWE3vNrqe9fYYsoXwRUCFFmJB0oew+mAsF5F+yTOsNayFr
ZYjmplW+wJEjvOafuq6nKSwzhsKlVu/TF/z9GTTd0PmEJcF+S0W8zxkaEdmKcc3F
KU8ekBqlscBaLhx3tK1DqpaEkQNSSgFS4N703Nj8vrsTqFKXfN0DzJOuO1H6U6MK
U3l7N8WD94AJiel2PK8Mu4cID9ud83I3/nl4RNdEBH9vytX1vMpaDC6ic8Z/zfzB
FTi5yzFlFE+eG3oGswXGNccIpB10lxuZR+ChGXm4BWMC3LohvbjdsKKdctwBNlTF
2Mo+FZGA9ILs9NgX3VykxiKyigr+5aR2sbenT5zOB089ytOnouhqllxCt5PjmrLa
T62Kr1+Dk+MNyI87LDYA61aZJpMSQtYF/zRFdu5d6Wt6aPFOyA+uf5LVIA9cEz69
WVEAfpi0Mw==
=BsUl
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to