[packages/xorg-lib-libXp] - fix cast from pointer to integer of different size on 64bit archs - rel 2
baggins
baggins at pld-linux.org
Fri Dec 7 13:21:10 CET 2012
commit 7b3ef9391ea0f57c364de5f4ff76541addb1debe
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Dec 7 13:20:50 2012 +0100
- fix cast from pointer to integer of different size on 64bit archs
- rel 2
xorg-lib-libXp-64bit.patch | 29 +++++++++++++++++++++++++++++
xorg-lib-libXp.spec | 4 +++-
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/xorg-lib-libXp.spec b/xorg-lib-libXp.spec
index adaa217..1c7cce4 100644
--- a/xorg-lib-libXp.spec
+++ b/xorg-lib-libXp.spec
@@ -2,11 +2,12 @@ Summary: X Print Client library
Summary(pl.UTF-8): Biblioteka kliencka X Print
Name: xorg-lib-libXp
Version: 1.0.1
-Release: 1
+Release: 2
License: MIT
Group: X11/Libraries
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXp-%{version}.tar.bz2
# Source0-md5: 7ae1d63748e79086bd51a633da1ff1a9
+Patch0: %{name}-64bit.patch
URL: http://xorg.freedesktop.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
@@ -64,6 +65,7 @@ Pakiet zawiera statyczną bibliotekę libXp.
%prep
%setup -q -n libXp-%{version}
+%patch0 -p1
%build
%{__libtoolize}
diff --git a/xorg-lib-libXp-64bit.patch b/xorg-lib-libXp-64bit.patch
new file mode 100644
index 0000000..e505aaf
--- /dev/null
+++ b/xorg-lib-libXp-64bit.patch
@@ -0,0 +1,29 @@
+--- libXp-1.0.1/src/XpNotifyPdm.c.orig 2012-12-07 13:18:49.200544973 +0100
++++ libXp-1.0.1/src/XpNotifyPdm.c 2012-12-07 13:19:41.927209780 +0100
+@@ -231,7 +231,7 @@
+ /*
+ * Error - cannot determine or establish a selection_display.
+ */
+- return( (Status) NULL );
++ return( (Status) 0 );
+ }
+
+ /*
+@@ -268,7 +268,7 @@
+ XCloseDisplay( *selection_display );
+ *selection_display = (Display *) NULL;
+ }
+- return( (Status) NULL );
++ return( (Status) 0 );
+ }
+
+ status = XmbTextListToTextProperty( *selection_display, list, 6,
+@@ -283,7 +283,7 @@
+ XCloseDisplay( *selection_display );
+ *selection_display = (Display *) NULL;
+ }
+- return( (Status) NULL );
++ return( (Status) 0 );
+ }
+
+ *type = text_prop.encoding;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xorg-lib-libXp.git/commitdiff/7b3ef9391ea0f57c364de5f4ff76541addb1debe
More information about the pld-cvs-commit
mailing list