~ubuntu-branches/ubuntu/oneiric/drizzle/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/debian-changes-2010.12.05-0ubuntu3

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-12-12 00:08:08 UTC
  • Revision ID: james.westby@ubuntu.com-20101212000808-avl48vyb2c9v06v4
Tags: 2010.12.05-0ubuntu3
Fixed how we were linking libpcre (LP: #688819)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Upstream changes introduced in version 2010.12.05-0ubuntu3
 
2
 This patch has been created by dpkg-source during the package build.
 
3
 Here's the last changelog entry, hopefully it gives details on why
 
4
 those changes were made:
 
5
 .
 
6
 drizzle (2010.12.05-0ubuntu3) natty; urgency=low
 
7
 .
 
8
   * Fixed how we were linking libpcre (LP: #688819)
 
9
 .
 
10
 The person named in the Author field signed this changelog entry.
 
11
Author: Monty Taylor <mordred@inaugust.com>
 
12
Bug-Ubuntu: https://bugs.launchpad.net/bugs/688819
 
13
 
 
14
---
 
15
The information above should follow the Patch Tagging Guidelines, please
 
16
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
17
are templates for supplementary fields that you might want to add:
 
18
 
 
19
Origin: <vendor|upstream|other>, <url of original patch>
 
20
Bug: <url in upstream bugtracker>
 
21
Bug-Debian: http://bugs.debian.org/<bugnumber>
 
22
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
 
23
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
24
Reviewed-By: <name and email of someone who approved the patch>
 
25
Last-Update: <YYYY-MM-DD>
 
26
 
 
27
--- /dev/null
 
28
+++ drizzle-2010.12.05/config/link-warning.h
 
29
@@ -0,0 +1,64 @@
 
30
+/* 
 
31
+ * 
 
32
+ * Copyright (c) 2009 Monty Taylor
 
33
+ * All rights reserved.
 
34
+ *
 
35
+ * Redistribution and use in source and binary forms, with or without
 
36
+ * modification, are permitted provided that the following conditions are
 
37
+ * met:
 
38
+ *
 
39
+ *     * Redistributions of source code must retain the above copyright
 
40
+ * notice, this list of conditions and the following disclaimer.
 
41
+ *
 
42
+ *     * Redistributions in binary form must reproduce the above
 
43
+ * copyright notice, this list of conditions and the following disclaimer
 
44
+ * in the documentation and/or other materials provided with the
 
45
+ * distribution.
 
46
+ *
 
47
+ *     * The names of its contributors may not be used to endorse or
 
48
+ * promote products derived from this software without specific prior
 
49
+ * written permission.
 
50
+ *
 
51
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
52
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
53
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
54
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 
55
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
56
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 
57
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
58
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
59
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
60
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
61
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
62
+ *
 
63
+ */
 
64
+
 
65
+/* GL_LINK_WARNING("literal string") arranges to emit the literal string as
 
66
+   a linker warning on most glibc systems.
 
67
+   We use a linker warning rather than a preprocessor warning, because
 
68
+   #warning cannot be used inside macros.  */
 
69
+
 
70
+#ifndef GL_LINK_WARNING
 
71
+  /* This works on platforms with GNU ld and ELF object format.
 
72
+     Testing __GLIBC__ is sufficient for asserting that GNU ld is in use.
 
73
+     Testing __ELF__ guarantees the ELF object format.
 
74
+     Testing __GNUC__ is necessary for the compound expression syntax.  */
 
75
+# if defined __GLIBC__ && defined __ELF__ && defined __GNUC__
 
76
+#  define GL_LINK_WARNING(message) \
 
77
+     GL_LINK_WARNING1 (__FILE__, __LINE__, message)
 
78
+#  define GL_LINK_WARNING1(file, line, message) \
 
79
+     GL_LINK_WARNING2 (file, line, message)  /* macroexpand file and line */
 
80
+#  define GL_LINK_WARNING2(file, line, message) \
 
81
+     GL_LINK_WARNING3 (file ":" #line ": warning: " message)
 
82
+#  define GL_LINK_WARNING3(message) \
 
83
+     ({ static const char warning[sizeof (message)]            \
 
84
+          __attribute__ ((__unused__,                          \
 
85
+                          __section__ (".gnu.warning"),                \
 
86
+                          __aligned__ (1)))                    \
 
87
+          = message "\n";                                      \
 
88
+        (void)0;                                               \
 
89
+     })
 
90
+# else
 
91
+#  define GL_LINK_WARNING(message) ((void) 0)
 
92
+# endif
 
93
+#endif