components/gnome/yelp/patches/03-sparc.patch
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Tue, 23 Aug 2016 11:48:13 -0700
changeset 6671 ff9eef4eda6b
permissions -rw-r--r--
23245363 Move yelp to Userland and update to 3.18.0 PSARC/2016/288 Gnome 3 documentation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6671
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
casting to fix the build error on sparc - restricing it to sparc for now
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
since x86 builds and runs fine as is.
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
Potentially find a better fix
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
--- yelp-3.18.0/libyelp/yelp-man-parser.c	2016-08-22 15:22:25.739238800 -0700
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
+++ yelp-3.18.0/libyelp/yelp-man-parser.c	2016-08-22 15:23:37.092255584 -0700
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
@@ -1362,8 +1362,13 @@
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
     g_regex_match_full (regex, accumulator->str,
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
                         -1, offset, 0, &match_info, NULL);
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
     while (g_match_info_matches (match_info)) {
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
-        offset = inserter ((offset_elt_pair *)pairs->data,
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
+#if defined(__sparc)
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
+        offset = inserter ((offset_elt_pair *)(void *)pairs->data,
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
                            match_info);
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
+#else
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
+	offset = inserter ((offset_elt_pair *)pairs->data,
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
+                           match_info);
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
+#endif
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
 
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    21
         g_match_info_free (match_info);
ff9eef4eda6b 23245363 Move yelp to Userland and update to 3.18.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22