[xrdp] fix check for big endian arches (#905411)
Dan Horák
sharkcz at fedoraproject.org
Tue Jan 29 11:42:23 UTC 2013
commit bec09a0d781997e311306eb0a99418858975cba9
Author: Dan Horák <dan at danny.cz>
Date: Tue Jan 29 12:42:16 2013 +0100
fix check for big endian arches (#905411)
xrdp-endian.patch | 17 +++++++++++++++++
xrdp.spec | 9 ++++++++-
2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/xrdp-endian.patch b/xrdp-endian.patch
new file mode 100644
index 0000000..d825dd7
--- /dev/null
+++ b/xrdp-endian.patch
@@ -0,0 +1,17 @@
+diff -up xrdp-HEAD-a9cfc23/common/arch.h.endian xrdp-HEAD-a9cfc23/common/arch.h
+--- xrdp-HEAD-a9cfc23/common/arch.h.endian 2010-11-04 16:52:27.000000000 +0100
++++ xrdp-HEAD-a9cfc23/common/arch.h 2013-01-29 12:31:13.000000000 +0100
+@@ -24,10 +24,12 @@
+ #if !defined(ARCH_H)
+ #define ARCH_H
+
++#include <endian.h>
++
+ #if !(defined(L_ENDIAN) || defined(B_ENDIAN))
+ /* check endianess */
+ #if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \
+- defined(__hppa__)
++ defined(__hppa__) || (BYTE_ORDER == BIG_ENDIAN)
+ #define B_ENDIAN
+ #else
+ #define L_ENDIAN
diff --git a/xrdp.spec b/xrdp.spec
index 6fc7ab2..5d87cd4 100644
--- a/xrdp.spec
+++ b/xrdp.spec
@@ -1,7 +1,7 @@
Summary: Open source remote desktop protocol (RDP) server
Name: xrdp
Version: 0.6.0
-Release: 0.6%{?dist}
+Release: 0.7%{?dist}
License: GPLv2+ with exceptions
Group: Applications/Internet
URL: http://xrdp.sourceforge.net/
@@ -10,6 +10,9 @@ Source0: http://server1.xrdp.org/xrdp/xrdp-HEAD-a9cfc23.tar.gz
Patch0: xrdp-pam-auth.patch
Patch1: xrdp-use-xinitrc-in-startwm-sh.patch
Patch2: xrdp-pam_session.patch
+# https://sourceforge.net/tracker/?group_id=112022&atid=665248
+# https://bugzilla.redhat.com/show_bug.cgi?id=905411
+Patch3: xrdp-endian.patch
Source1: xrdp.service
Source2: xrdp-sesman.service
@@ -44,6 +47,7 @@ terminal server / remote desktop clients.
%patch0 -p2
%patch1 -p2
%patch2 -p1
+%patch3 -p1 -b .endian
# remove unused modules from xrdp login combobox
%{__sed} -i -e '/\[xrdp2\]/,$d' xrdp/xrdp.ini
@@ -183,6 +187,9 @@ fi
%attr(0600,root,root) %verify(not size md5 mtime) %{_sysconfdir}/xrdp/rsakeys.ini
%changelog
+* Tue Jan 29 2013 Dan Horák <dan[at]danny.cz> - 0.6.0-0.7
+- fix check for big endian arches (#905411)
+
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.0-0.6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list