diff options
| author | Saul Wold <sgw@linux.intel.com> | 2012-01-04 16:46:27 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-05 11:24:45 +0000 |
| commit | 8b26d1187cd68fa9631ad3c2e73bfeb58b0b9337 (patch) | |
| tree | 74ebe41ef15014c3d74a3c8f91debfb69fc66f4f | |
| parent | 4de7aafbed1d3d6885b188f3bc61d6da5b0659a4 (diff) | |
| download | poky-8b26d1187cd68fa9631ad3c2e73bfeb58b0b9337.tar.gz | |
libxp: fix cast error
(From OE-Core rev: 6de454e0a66e832571b23406fdc4b9c4e65073d0)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch | 42 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb | 4 |
2 files changed, 45 insertions, 1 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch new file mode 100644 index 0000000000..fea18cff0f --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | This patch fixes these new errors: | ||
| 2 | |||
| 3 | | XpNotifyPdm.c:234:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
| 4 | | XpNotifyPdm.c:271:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
| 5 | | XpNotifyPdm.c:286:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
| 6 | |||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 11 | |||
| 12 | Index: libXp-1.0.1/src/XpNotifyPdm.c | ||
| 13 | =================================================================== | ||
| 14 | --- libXp-1.0.1.orig/src/XpNotifyPdm.c | ||
| 15 | +++ libXp-1.0.1/src/XpNotifyPdm.c | ||
| 16 | @@ -231,7 +231,7 @@ XpGetPdmStartParams ( | ||
| 17 | /* | ||
| 18 | * Error - cannot determine or establish a selection_display. | ||
| 19 | */ | ||
| 20 | - return( (Status) NULL ); | ||
| 21 | + return( (Status) 0 ); | ||
| 22 | } | ||
| 23 | |||
| 24 | /* | ||
| 25 | @@ -268,7 +268,7 @@ XpGetPdmStartParams ( | ||
| 26 | XCloseDisplay( *selection_display ); | ||
| 27 | *selection_display = (Display *) NULL; | ||
| 28 | } | ||
| 29 | - return( (Status) NULL ); | ||
| 30 | + return( (Status) 0 ); | ||
| 31 | } | ||
| 32 | |||
| 33 | status = XmbTextListToTextProperty( *selection_display, list, 6, | ||
| 34 | @@ -283,7 +283,7 @@ XpGetPdmStartParams ( | ||
| 35 | XCloseDisplay( *selection_display ); | ||
| 36 | *selection_display = (Display *) NULL; | ||
| 37 | } | ||
| 38 | - return( (Status) NULL ); | ||
| 39 | + return( (Status) 0 ); | ||
| 40 | } | ||
| 41 | |||
| 42 | *type = text_prop.encoding; | ||
diff --git a/meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb b/meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb index a19f561fa7..349dad1c44 100644 --- a/meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb +++ b/meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb | |||
| @@ -10,12 +10,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9504a1264f5ddd4949254a57c0f8d6bb \ | |||
| 10 | file://src/XpPage.c;beginline=2;endline=35;md5=2b7d3d2ba5505b19271cf31b6918997e" | 10 | file://src/XpPage.c;beginline=2;endline=35;md5=2b7d3d2ba5505b19271cf31b6918997e" |
| 11 | 11 | ||
| 12 | DEPENDS += "libxext libxau printproto" | 12 | DEPENDS += "libxext libxau printproto" |
| 13 | PR = "r0" | 13 | PR = "r1" |
| 14 | PE = "1" | 14 | PE = "1" |
| 15 | 15 | ||
| 16 | XORG_PN = "libXp" | 16 | XORG_PN = "libXp" |
| 17 | 17 | ||
| 18 | CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions" | 18 | CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions" |
| 19 | 19 | ||
| 20 | SRC_URI += "file://fix-cast-error.patch" | ||
| 21 | |||
| 20 | SRC_URI[md5sum] = "7ae1d63748e79086bd51a633da1ff1a9" | 22 | SRC_URI[md5sum] = "7ae1d63748e79086bd51a633da1ff1a9" |
| 21 | SRC_URI[sha256sum] = "71d1f260005616d646b8c8788365f2b7d93911dac57bb53b65753d9f9e6443d2" | 23 | SRC_URI[sha256sum] = "71d1f260005616d646b8c8788365f2b7d93911dac57bb53b65753d9f9e6443d2" |
