devel/kphone kphone-4.1.0-endian.patch, NONE, 1.1 kphone.spec, 1.9, 1.10
Ignacio Vazquez-Abrams (ivazquez)
fedora-extras-commits at redhat.com
Thu Mar 24 01:57:48 UTC 2005
Author: ivazquez
Update of /cvs/extras/devel/kphone
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22005
Modified Files:
kphone.spec
Added Files:
kphone-4.1.0-endian.patch
Log Message:
First attempt to get it working properly on PPC
kphone-4.1.0-endian.patch:
--- NEW FILE kphone-4.1.0-endian.patch ---
--- kphone/kphone/rtpdataheader.h.orig 2005-03-23 20:50:01.904726865 -0500
+++ kphone/kphone/rtpdataheader.h 2005-03-23 20:52:47.669099809 -0500
@@ -1,25 +1,24 @@
#ifndef RTPDATAHEADER_H
#define RTPDATAHEADER_H
+#include <endian.h>
+
// For 32bit intel machines
typedef short int16;
typedef int int32;
typedef unsigned int u_int32;
typedef unsigned short u_int16;
-#define RTP_BIG_ENDIAN 0
-#define RTP_LITTLE_ENDIAN 1
-
// RTP data header
typedef __attribute__ ((__packed__)) struct {
-#if RTP_BIG_ENDIAN
+#if __BYTE_ORDER == __BIG_ENDIAN
unsigned int version:2; // protocol version
unsigned int p:1; // padding flag
unsigned int x:1; // header extension flag
unsigned int cc:4; // CSRC count
unsigned int m:1; // marker bit
unsigned int pt:7; // payload type
-#elif RTP_LITTLE_ENDIAN
+#elif __BYTE_ORDER == __LITTLE_ENDIAN
unsigned int cc:4; // CSRC count
unsigned int x:1; // header extension flag
unsigned int p:1; // padding flag
@@ -27,7 +26,7 @@
unsigned int pt:7; // payload type
unsigned int m:1; // marker bit
#else
-#error Define one of RTP_LITTLE_ENDIAN or RTP_BIG_ENDIAN
+#error Unusable endianness detected
#endif
unsigned int seq:16; // sequence number
u_int32 ts; // timestamp 32bits
Index: kphone.spec
===================================================================
RCS file: /cvs/extras/devel/kphone/kphone.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- kphone.spec 22 Mar 2005 20:51:59 -0000 1.9
+++ kphone.spec 24 Mar 2005 01:57:46 -0000 1.10
@@ -1,6 +1,6 @@
Name: kphone
Version: 4.1.0
-Release: 9
+Release: 10
Summary: A SIP (Session Initiation Protocol) user agent for Linux
Group: Applications/Communications
@@ -9,6 +9,7 @@
Source0: http://www.wirlab.net/kphone/kphone-4.1.0.tar.gz
Source1: kphone.desktop
Patch0: kphone-4.1.0-po-hacks.patch
+Patch1: kphone-4.1.0-endian.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: qt-devel alsa-lib-devel desktop-file-utils openssl-devel
@@ -22,6 +23,7 @@
%prep
%setup -q -n kphone
%patch -p1 -b .po-hacks
+%patch1 -p1 -b .endian
%build
[ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
@@ -53,6 +55,9 @@
%{_datadir}/pixmaps/*.png
%changelog
+* Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 4.1.0-10
+- First attempt to get it working properly on PPC
+
* Tue Mar 22 2005 Seth Vidal <skvidal at phy.duke.edu> 4.1.0-9
- add openssl-devel to buildreqs
More information about the fedora-extras-commits
mailing list