pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/poppler Fix poppler-glib build.
details: https://anonhg.NetBSD.org/pkgsrc/rev/78eb8c1357fd
branches: trunk
changeset: 372575:78eb8c1357fd
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sun Dec 10 16:02:59 2017 +0000
description:
Fix poppler-glib build.
The gtkdoc.py patch used a mixture of tabs and spaces, which was rejected
by the Python interpreter. Also (with Python 3.6 as default), there was an
uncaught TypeError, which I added to the existing except clause.
diffstat:
print/poppler/distinfo | 4 ++--
print/poppler/patches/patch-gtkdoc.py | 21 ++++++++++++++++++---
2 files changed, 20 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r 9b2f03254e6c -r 78eb8c1357fd print/poppler/distinfo
--- a/print/poppler/distinfo Sun Dec 10 15:58:36 2017 +0000
+++ b/print/poppler/distinfo Sun Dec 10 16:02:59 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.123 2017/12/08 07:48:11 spz Exp $
+$NetBSD: distinfo,v 1.124 2017/12/10 16:02:59 bsiegert Exp $
SHA1 (poppler-0.61.1.tar.xz) = 70a3440e0ac9957cee94ff6a56a173f3377b02ba
RMD160 (poppler-0.61.1.tar.xz) = 62fa0f917e31e0c733228ea9289b4493a0fc29a8
SHA512 (poppler-0.61.1.tar.xz) = 780ebf07ad757635f3f71c7b1f61ad0849526f99f0dc514c3290c4e8db7000a68dfe50c17253d4c086aec5c5390055102478eba96699088179822f3be5ce278d
Size (poppler-0.61.1.tar.xz) = 1433696 bytes
SHA1 (patch-aq) = da845661ef7f7aca3072dbeebde0444b4d8f01aa
-SHA1 (patch-gtkdoc.py) = 22f12d2eabfa0bff78dc88f87cd6d7bf536c8056
+SHA1 (patch-gtkdoc.py) = b9bf7a8c2288bdec314c795317e2a4e1aac21913
diff -r 9b2f03254e6c -r 78eb8c1357fd print/poppler/patches/patch-gtkdoc.py
--- a/print/poppler/patches/patch-gtkdoc.py Sun Dec 10 15:58:36 2017 +0000
+++ b/print/poppler/patches/patch-gtkdoc.py Sun Dec 10 16:02:59 2017 +0000
@@ -1,14 +1,29 @@
-$NetBSD: patch-gtkdoc.py,v 1.1 2017/12/08 07:48:11 spz Exp $
+$NetBSD: patch-gtkdoc.py,v 1.2 2017/12/10 16:02:59 bsiegert Exp $
--- gtkdoc.py.orig 2017-11-12 18:14:32.000000000 +0000
+++ gtkdoc.py
+@@ -196,12 +196,12 @@ class GTKDoc(object):
+ if stdout:
+ try:
+ sys.stdout.write(stdout.encode("utf-8"))
+- except UnicodeDecodeError:
++ except (TypeError, UnicodeDecodeError):
+ sys.stdout.write(stdout)
+ if stderr:
+ try:
+ sys.stderr.write(stderr.encode("utf-8"))
+- except UnicodeDecodeError:
++ except (TypeError, UnicodeDecodeError):
+ sys.stderr.write(stderr)
+
+ if process.returncode != 0:
@@ -223,6 +223,9 @@ class GTKDoc(object):
return
def copy_file_replacing_existing(src, dest):
+ if src == dest:
-+ self.logger.debug('copy_file_replacing_existing not copying to itself: %s', src)
-+ return
++ self.logger.debug('copy_file_replacing_existing not copying to itself: %s', src)
++ return
if os.path.isdir(src):
self.logger.debug('skipped directory %s', src)
return
Home |
Main Index |
Thread Index |
Old Index