aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2013-03-31 17:25:11 +0200
committerAndreas Enge <andreas@enge.fr>2013-03-31 17:27:37 +0200
commit14ecc0effca4d7447510bc67a774f897ac03ab87 (patch)
tree379c5245378a19f0a5de6855777047882c320822 /gnu/packages/patches
parent141ccae8a737ba89eeb3d7f749270c5eda73d8b7 (diff)
downloadgnu-guix-14ecc0effca4d7447510bc67a774f897ac03ab87.tar
gnu-guix-14ecc0effca4d7447510bc67a774f897ac03ab87.tar.gz
gnu: Add xpdf.
* gnu/packages/pdf.scm (xpdf): New variable. * gnu/packages/patches/xpdf-constchar.patch: New file. * Makefile.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/xpdf-constchar.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/packages/patches/xpdf-constchar.patch b/gnu/packages/patches/xpdf-constchar.patch
new file mode 100644
index 0000000000..95dbe73c71
--- /dev/null
+++ b/gnu/packages/patches/xpdf-constchar.patch
@@ -0,0 +1,15 @@
+This patch circumvents an error with 'const char *' to 'char *' conversion,
+see http://gnats.netbsd.org/45562 .
+
+diff -u a/xpdf/XPDFViewer.cc b/xpdf/XPDFViewer.cc
+--- a/xpdf/XPDFViewer.cc 2011-08-15 23:08:53.000000000 +0200
++++ b/xpdf/XPDFViewer.cc 2013-03-31 15:13:21.000000000 +0200
+@@ -1803,7 +1803,7 @@
+ menuPane = XmCreatePulldownMenu(toolBar, "zoomMenuPane", args, n);
+ for (i = 0; i < nZoomMenuItems; ++i) {
+ n = 0;
+- s = XmStringCreateLocalized(zoomMenuInfo[i].label);
++ s = XmStringCreateLocalized((char *) zoomMenuInfo[i].label);
+ XtSetArg(args[n], XmNlabelString, s); ++n;
+ XtSetArg(args[n], XmNuserData, (XtPointer)i); ++n;
+ sprintf(buf, "zoom%d", i);