Control: tags 913179 + pending

Dear maintainer,

I've prepared an NMU for libprelude (versioned as 4.1.0-4.2) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards.


-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
diff -Nru libprelude-4.1.0/debian/changelog libprelude-4.1.0/debian/changelog
--- libprelude-4.1.0/debian/changelog	2018-10-28 14:42:45.000000000 +0100
+++ libprelude-4.1.0/debian/changelog	2018-12-02 11:37:24.000000000 +0100
@@ -1,3 +1,13 @@
+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)
+
+ -- gregor herrmann <[email protected]>  Sun, 02 Dec 2018 11:37:24 +0100
+
 libprelude (4.1.0-4.1) unstable; urgency=medium
 
   * Non-maintainer upload.
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	1970-01-01 01:00:00.000000000 +0100
+++ libprelude-4.1.0/debian/patches/014-fix-glibc-gnulib.patch	2018-12-02 11:37:19.000000000 +0100
@@ -0,0 +1,100 @@
+Description: Cherrypick gnulib fixes for glibc 2.28.
+Author: Adam Conrad <[email protected]>
+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 14:40:00.000000000 +0100
+++ libprelude-4.1.0/debian/patches/series	2018-12-02 11:37:19.000000000 +0100
@@ -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

Attachment: signature.asc
Description: Digital Signature

Reply via email to