aboutsummaryrefslogtreecommitdiffstats
path: root/testing/motif/06-cast-size_t-to-int.patch
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2014-06-21 14:40:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-23 06:41:47 +0000
commit96d9a81946ebca7dcaa1a8ae9712ee477a156606 (patch)
tree88ef61a0abbd1c78ae5f5314997e1420e23cefe8 /testing/motif/06-cast-size_t-to-int.patch
parentd28d72a16f7697a518150bf27feb26ac317bce28 (diff)
downloadaports-96d9a81946ebca7dcaa1a8ae9712ee477a156606.tar.bz2
aports-96d9a81946ebca7dcaa1a8ae9712ee477a156606.tar.xz
Add motif
Manually sending, since git send-email is being recalcitrant. This will allow me to package nedit and a number of other things. From 3077415e704bee5da76d1000e66bb8e25c0248cf Mon Sep 17 00:00:00 2001 From: Isaac Dunham <ibid.ag@gmail.com> Date: Thu, 19 Jun 2014 05:41:45 +0000 Subject: [PATCH] Add Motif. Motif is an X intrinsics based toolkit which was once widely used. This version is built with Xft support, but not PNG, JPEG, or Xprint. The patches are snarfed from Debian; not all are needed.
Diffstat (limited to 'testing/motif/06-cast-size_t-to-int.patch')
-rw-r--r--testing/motif/06-cast-size_t-to-int.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/motif/06-cast-size_t-to-int.patch b/testing/motif/06-cast-size_t-to-int.patch
new file mode 100644
index 0000000000..b5ce9c643a
--- /dev/null
+++ b/testing/motif/06-cast-size_t-to-int.patch
@@ -0,0 +1,17 @@
+Description: To prevent build failure during building with Hardening options
+ enabled due to "format '%d' expects argument of type 'int', but argument 5 has
+ type 'size_t'", the fifth argument is cast to integer on the input.
+Author: Paul Gevers <elbrus@debian.org>
+Updated: 13-01-2013
+
+--- a/tools/wml/wmloutkey.c
++++ b/tools/wml/wmloutkey.c
+@@ -627,7 +627,7 @@
+ fprintf (outfil, " {%s, %s, %d, %s, \"%s\"},\n",
+ tkclass,
+ tksym,
+- strlen(tokstg),
++ (int)strlen(tokstg),
+ tktoken,
+ tokstg);
+ if ( (int)strlen(tokstg) > *maxlen )