texlive[47209] Build/source/libs/poppler: poppler-src/goo/gfile:

commits+mojca at tug.org commits+mojca at tug.org
Sun Apr 1 02:40:06 CEST 2018


Revision: 47209
          http://tug.org/svn/texlive?view=revision&revision=47209
Author:   mojca
Date:     2018-04-01 02:40:06 +0200 (Sun, 01 Apr 2018)
Log Message:
-----------
poppler-src/goo/gfile: Adapt patches for time.h

The patch for missing time.h only worked for NetBSD,
but the same problem is present on other platforms like OpenBSD.

Sanitize the patch and merge with another one.

https://bugs.freedesktop.org/show_bug.cgi?id=105766

Modified Paths:
--------------
    trunk/Build/source/libs/poppler/TLpatches/ChangeLog
    trunk/Build/source/libs/poppler/TLpatches/patch-03-time
    trunk/Build/source/libs/poppler/poppler-src/goo/gfile.cc
    trunk/Build/source/libs/poppler/poppler-src/goo/gfile.h

Removed Paths:
-------------
    trunk/Build/source/libs/poppler/TLpatches/patch-04-ctime

Modified: trunk/Build/source/libs/poppler/TLpatches/ChangeLog
===================================================================
--- trunk/Build/source/libs/poppler/TLpatches/ChangeLog	2018-04-01 00:23:45 UTC (rev 47208)
+++ trunk/Build/source/libs/poppler/TLpatches/ChangeLog	2018-04-01 00:40:06 UTC (rev 47209)
@@ -1,3 +1,8 @@
+2018-04-01  Mojca Miklavec <mojca.miklavec.lists at gmail.com>
+
+	* patch-03-time: Adapted.
+	* patch-04-ctime: Removed.
+
 2018-03-20  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* patch-05-w32: Added to compile gfile.cc on Windows.

Modified: trunk/Build/source/libs/poppler/TLpatches/patch-03-time
===================================================================
--- trunk/Build/source/libs/poppler/TLpatches/patch-03-time	2018-04-01 00:23:45 UTC (rev 47208)
+++ trunk/Build/source/libs/poppler/TLpatches/patch-03-time	2018-04-01 00:40:06 UTC (rev 47209)
@@ -1,13 +1,55 @@
-$ diff -u gfile.h.orig gfile.h 
---- gfile.h.orig	2018-03-26 11:43:40.479917632 +0200
-+++ gfile.h	2018-03-26 11:41:51.965590455 +0200
-@@ -52,6 +52,9 @@
- #elif defined(MACOS)
- #  include <ctime.h>
+https://bugs.freedesktop.org/show_bug.cgi?id=105766
+
+diff -ur poppler-0.63.0/goo/gfile.cc poppler-src/goo/gfile.cc
+--- poppler-0.63.0/goo/gfile.cc
++++ poppler-src/goo/gfile.cc
+@@ -34,9 +34,7 @@
+ 
+ #include <config.h>
+ 
+-#ifdef _WIN32
+-#  include <time.h>
+-#else
++#ifndef _WIN32
+ #  if defined(MACOS)
+ #    include <sys/stat.h>
+ #  elif !defined(ACORN)
+@@ -44,7 +42,6 @@
+ #    include <sys/stat.h>
+ #    include <fcntl.h>
+ #  endif
+-#  include <time.h>
+ #  include <limits.h>
+ #  include <string.h>
+ #  if !defined(VMS) && !defined(ACORN) && !defined(MACOS)
+diff -ur poppler-0.63.0/goo/gfile.h poppler-src/goo/gfile.h
+--- poppler-0.63.0/goo/gfile.h
++++ poppler-src/goo/gfile.h
+@@ -37,6 +37,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stddef.h>
++#include <time.h>
+ extern "C" {
+ #if defined(_WIN32)
+ #  include <sys/stat.h>
+@@ -49,8 +50,6 @@
+ #    include <windows.h>
+ #  endif
+ #elif defined(ACORN)
+-#elif defined(MACOS)
+-#  include <ctime.h>
  #else
-+#  if defined(__NetBSD__)
-+#   include <time.h>
-+#  endif
  #  include <unistd.h>
  #  include <sys/types.h>
- #  if defined(VMS)
+diff -ur poppler-0.63.0/poppler/Form.h poppler-src/poppler/Form.h
+--- poppler-0.63.0/poppler/Form.h
++++ poppler-src/poppler/Form.h
+@@ -33,6 +33,7 @@
+ 
+ #include <set>
+ #include <vector>
++#include <ctime>
+ 
+ class GooString;
+ class Array;

Deleted: trunk/Build/source/libs/poppler/TLpatches/patch-04-ctime
===================================================================
--- trunk/Build/source/libs/poppler/TLpatches/patch-04-ctime	2018-04-01 00:23:45 UTC (rev 47208)
+++ trunk/Build/source/libs/poppler/TLpatches/patch-04-ctime	2018-04-01 00:40:06 UTC (rev 47209)
@@ -1,14 +0,0 @@
-	To make time_t work on FreeBSD 11.1, per Mojca.
-	http://tug.org/pipermail/tlbuild/2018q1/003931.html
-
-diff -ur poppler-0.63.0/poppler/Form.h poppler-src/poppler/Form.h
---- poppler-0.63.0/poppler/Form.h	Mon Mar 19 03:23:49 2018
-+++ poppler-src/poppler/Form.h	Mon Mar 19 06:18:51 2018
-@@ -33,6 +33,7 @@
- 
- #include <set>
- #include <vector>
-+#include <ctime>
- 
- class GooString;
- class Array;

Modified: trunk/Build/source/libs/poppler/poppler-src/goo/gfile.cc
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/goo/gfile.cc	2018-04-01 00:23:45 UTC (rev 47208)
+++ trunk/Build/source/libs/poppler/poppler-src/goo/gfile.cc	2018-04-01 00:40:06 UTC (rev 47209)
@@ -34,9 +34,7 @@
 
 #include <config.h>
 
-#ifdef _WIN32
-#  include <time.h>
-#else
+#ifndef _WIN32
 #  if defined(MACOS)
 #    include <sys/stat.h>
 #  elif !defined(ACORN)
@@ -44,7 +42,6 @@
 #    include <sys/stat.h>
 #    include <fcntl.h>
 #  endif
-#  include <time.h>
 #  include <limits.h>
 #  include <string.h>
 #  if !defined(VMS) && !defined(ACORN) && !defined(MACOS)

Modified: trunk/Build/source/libs/poppler/poppler-src/goo/gfile.h
===================================================================
--- trunk/Build/source/libs/poppler/poppler-src/goo/gfile.h	2018-04-01 00:23:45 UTC (rev 47208)
+++ trunk/Build/source/libs/poppler/poppler-src/goo/gfile.h	2018-04-01 00:40:06 UTC (rev 47209)
@@ -37,6 +37,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>
+#include <time.h>
 extern "C" {
 #if defined(_WIN32)
 #  include <sys/stat.h>
@@ -49,12 +50,7 @@
 #    include <windows.h>
 #  endif
 #elif defined(ACORN)
-#elif defined(MACOS)
-#  include <ctime.h>
 #else
-#  if defined(__NetBSD__)
-#   include <time.h>
-#  endif
 #  include <unistd.h>
 #  include <sys/types.h>
 #  if defined(VMS)



More information about the tex-live-commits mailing list