Your message dated Wed, 12 Dec 2018 11:51:46 +0000
with message-id <e1gx33k-0008qw...@fasolo.debian.org>
and subject line Bug#913179: fixed in libprelude 4.1.0-4.2
has caused the Debian Bug report #913179,
regarding libprelude: FTBFS with glibc 2.28; cherrypicked patches attached
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.)


-- 
913179: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913179
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libprelude
Version: 4.1.0-4.1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu disco ubuntu-patch



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

  * 014-fix-glibc-gnulib.patch: Cherrypick gnulib fixes for glibc 2.28.


This should be fairly self-explanatory.  I cherrypicked the necessary
fixes from gnulib git to fix the libprelude build with glibc 2.28,
please consider including this in Debian before the glibc 2.28 transition
makes this release-critical.

... Adam


-- System Information:
Debian Release: buster/sid
  APT prefers disco
  APT policy: (500, 'disco')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-10-lowlatency (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru libprelude-4.1.0/debian/patches/014-fix-glibc-gnulib.patch 
libprelude-4.1.0/debian/patches/014-fix-glibc-gnulib.patch
--- libprelude-4.1.0/debian/patches/014-fix-glibc-gnulib.patch  1969-12-31 
17:00:00.000000000 -0700
+++ libprelude-4.1.0/debian/patches/014-fix-glibc-gnulib.patch  2018-11-03 
12:04:48.000000000 -0600
@@ -0,0 +1,100 @@
+Description: Cherrypick gnulib fixes for glibc 2.28.
+Author: Adam Conrad <adcon...@ubuntu.com>
+Origin: 
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=4af4a4a71827c0bc5e0ec67af23edef4f15cee8e
+Origin: 
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=74d9d6a293d7462dea8f83e7fc5ac792e956a0ad
+Forwarded: not-needed
+Last-Update: 2018-11-03
+
+--- libprelude-4.1.0.orig/libmissing/fflush.c
++++ libprelude-4.1.0/libmissing/fflush.c
+@@ -33,7 +33,8 @@
+ #undef fflush
+ 
+ 
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
++/* GNU libc, BeOS, Haiku, Linux libc5 */
+ 
+ /* Clear the stream's ungetc buffer, preserving the value of ftello (fp).  */
+ static void
+@@ -72,7 +73,8 @@ clear_ungetc_buffer (FILE *fp)
+ 
+ #endif
+ 
+-#if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */)
++#if ! (defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 
1)
++/* GNU libc, BeOS, Haiku, Linux libc5 */
+ 
+ # if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && 
defined __SNPT
+ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */
+@@ -148,7 +150,8 @@ rpl_fflush (FILE *stream)
+   if (stream == NULL || ! freading (stream))
+     return fflush (stream);
+ 
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
++  /* GNU libc, BeOS, Haiku, Linux libc5 */
+ 
+   clear_ungetc_buffer_preserving_position (stream);
+ 
+--- libprelude-4.1.0.orig/libmissing/fpurge.c
++++ libprelude-4.1.0/libmissing/fpurge.c
+@@ -62,7 +62,8 @@ fpurge (FILE *fp)
+   /* Most systems provide FILE as a struct and the necessary bitmask in
+      <stdio.h>, because they need it for implementing getc() and putc() as
+      fast macros.  */
+-# if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++# if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
++  /* GNU libc, BeOS, Haiku, Linux libc5 */
+   fp->_IO_read_end = fp->_IO_read_ptr;
+   fp->_IO_write_ptr = fp->_IO_write_base;
+   /* Avoid memory leak when there is an active ungetc buffer.  */
+--- libprelude-4.1.0.orig/libmissing/freading.c
++++ libprelude-4.1.0/libmissing/freading.c
+@@ -31,7 +31,8 @@ freading (FILE *fp)
+   /* Most systems provide FILE as a struct and the necessary bitmask in
+      <stdio.h>, because they need it for implementing getc() and putc() as
+      fast macros.  */
+-# if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++# if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
++  /* GNU libc, BeOS, Haiku, Linux libc5 */
+   return ((fp->_flags & _IO_NO_WRITES) != 0
+           || ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0
+               && fp->_IO_read_base != NULL));
+--- libprelude-4.1.0.orig/libmissing/fseeko.c
++++ libprelude-4.1.0/libmissing/fseeko.c
+@@ -47,7 +47,8 @@ fseeko (FILE *fp, off_t offset, int when
+ #endif
+ 
+   /* These tests are based on fpurge.c.  */
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
++  /* GNU libc, BeOS, Haiku, Linux libc5 */
+   if (fp->_IO_read_end == fp->_IO_read_ptr
+       && fp->_IO_write_ptr == fp->_IO_write_base
+       && fp->_IO_save_base == NULL)
+@@ -123,7 +124,8 @@ fseeko (FILE *fp, off_t offset, int when
+           return -1;
+         }
+ 
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, 
Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
++      /* GNU libc, BeOS, Haiku, Linux libc5 */
+       fp->_flags &= ~_IO_EOF_SEEN;
+       fp->_offset = pos;
+ #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
+--- libprelude-4.1.0.orig/libmissing/stdio-impl.h
++++ libprelude-4.1.0/libmissing/stdio-impl.h
+@@ -18,6 +18,12 @@
+    the same implementation of stdio extension API, except that some fields
+    have different naming conventions, or their access requires some casts.  */
+ 
++/* Glibc 2.28 made _IO_IN_BACKUP private.  For now, work around this
++   problem by defining it ourselves.  FIXME: Do not rely on glibc
++   internals.  */
++#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN
++# define _IO_IN_BACKUP 0x100
++#endif
+ 
+ /* BSD stdio derived implementations.  */
+ 
diff -Nru libprelude-4.1.0/debian/patches/series 
libprelude-4.1.0/debian/patches/series
--- libprelude-4.1.0/debian/patches/series      2018-10-28 07:40:00.000000000 
-0600
+++ libprelude-4.1.0/debian/patches/series      2018-11-03 12:04:48.000000000 
-0600
@@ -8,3 +8,4 @@
 011-fix_spelling_error.patch
 012-fix-server_confirm_type.patch
 013-fix-test_rwlock1.patch
+014-fix-glibc-gnulib.patch

--- End Message ---
--- Begin Message ---
Source: libprelude
Source-Version: 4.1.0-4.2

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

Debian distribution maintenance software
pp.
gregor herrmann <gre...@debian.org> (supplier of updated libprelude 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: SHA512

Format: 1.8
Date: Sun,  2 Dec 2018 11:45:27 CET
Source: libprelude
Binary: libprelude-dev libprelude-doc libprelude23 libpreludecpp8 prelude-utils 
libprelude-perl python-prelude python3-prelude ruby-libprelude libprelude-lua
Architecture: source
Version: 4.1.0-4.2
Distribution: unstable
Urgency: medium
Maintainer: Pierre Chifflier <pol...@debian.org>
Changed-By: gregor herrmann <gre...@debian.org>
Description: 
 libprelude-dev - Security Information and Events Management system [ 
Development f
 libprelude-doc - Security Information and Events Management system [ 
Documentation
 libprelude23 - Security Information and Events Management system [ Base library
 libpreludecpp8 - Security Information and Events Management system [ C++ 
library ]
 prelude-utils - Security Information and Events Management system [ Utils ]
 libprelude-perl - Security Information and Events Management system [ Perl 
bindings
 python-prelude - Security Information and Events Management system [ Python2 
bindi
 python3-prelude - Security Information and Events Management system [ Python3 
bindi
 ruby-libprelude - Security Information and Events Management system [ Ruby 
bindings
 libprelude-lua - Security Information and Events Management system [ Lua 
bindings
Closes: 913179
Changes:
 libprelude (4.1.0-4.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Fix "FTBFS with glibc 2.28; cherrypicked patches attached":
     apply patch from Adam Conrad / Ubuntu:
     014-fix-glibc-gnulib.patch: Cherrypick gnulib fixes for glibc 2.28.
     (Closes: #913179)
Checksums-Sha256: 
 5b30567a8f922e7ed0dd445e38328ea678b94a8c5d986cf51b9458214e796959 3303 
libprelude_4.1.0-4.2.dsc
 c318f21009e25639d7ed7f7dcfc27b7425dce2f11a89a8b2fb082bde5187b45a 23420 
libprelude_4.1.0-4.2.debian.tar.xz
 b66c94cae4720976e55305fa012e0b4c30a137d9cbc927f640ae6cd6ab819b42 16471 
libprelude_4.1.0-4.2_sourceonly.buildinfo
Checksums-Sha1: 
 974c0efcb933fc3e3d4012d040e55b2ba1aa4628 3303 libprelude_4.1.0-4.2.dsc
 4aa418df1293985bf2fd738f6abd1781e7566434 23420 
libprelude_4.1.0-4.2.debian.tar.xz
 78a5b7aa5e90bfd22d045dde5d8fdb0787e553d8 16471 
libprelude_4.1.0-4.2_sourceonly.buildinfo
Files: 
 14631fac15973ec834038dbf2072e72e 3303 libs optional libprelude_4.1.0-4.2.dsc
 a4723f4643b234893f93b90c4012513e 23420 libs optional 
libprelude_4.1.0-4.2.debian.tar.xz
 2ad5b495f93a3e79c477e003180993eb 16471 - - 
libprelude_4.1.0-4.2_sourceonly.buildinfo

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

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAlwDt8hfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgZzwxAAqKoXnWYjFfA1zOXv/UPzp+b6p6lK8+S0S3hesT6Q9keVopFiCkxMKBNs
TDmKwufg0WAJqP14sR77PcGtVJ3x24z8wzwIZ0hNm0hcx4cPNdJt7UrWnLa0UnEN
uymqpZA4COKym0OaZ3XAEIkE/lduwIt2sEWjTt+T1qCx3jIl+kBFelPBbcFUsHrk
0AmwHH/h9lfikcNuM11QtD8xwBnl3VLHBnTVteOW0TSxHX6ZsBxDIt4uO0FXvXOI
78Mb3tBKX0srKbXAAR/hH1qIr4bwkLqSnL5EcijkVv7bK3/CXbPLR66ErCwkx3Ei
YGJJb961fKCXpDpXD+3JaoYm9ph0GO1npwBz0STQv13+sjT5f470c1K+MWNLVsZ0
mgA/0ZWRKyGGOrCTJ6s4o2mMfwXBtXnSMpgk8W60UMFY+Q/XYxtL+QcNwqauIBSq
7wYbKM8SSgA4mURM/UGv0g/DKG2p/+F+DOhPkuJeyk4/piyOKeZnGM3oetoUnE4L
LH91q7fjI7CyxplLV0o4vg24Kxe82z73gZA3iNcZx34mFuy4QXgd/6jvyvsSg0CH
lvHYC76QT0iE+LpwznYpCYuc4Gacxd8sovfbOqsB9LpAqZXPy5GdoNQgSum1KaUZ
aKHiWq0Lhr3kaHWhg7azuijMOk71IgnImtCEy62tiVVh6edHCvA=
=cPKd
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to