fix check for big endian arches (#905411)

This commit is contained in:
Dan Horák 2013-01-29 12:42:16 +01:00
parent a8eba7d583
commit bec09a0d78
2 changed files with 25 additions and 1 deletions

17
xrdp-endian.patch Normal file
View File

@ -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

View File

@ -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@lists.fedoraproject.org> - 0.6.0-0.6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild