rpms/libosip2/devel libosip2-2.2.2-x64.patch, NONE, 1.1 libosip2.spec, 1.7, 1.8
Ignacio Vazquez-Abrams (ivazquez)
fedora-extras-commits at redhat.com
Thu Feb 23 19:11:04 UTC 2006
Author: ivazquez
Update of /cvs/extras/rpms/libosip2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2002
Modified Files:
libosip2.spec
Added Files:
libosip2-2.2.2-x64.patch
Log Message:
Fix for AMD64
libosip2-2.2.2-x64.patch:
--- NEW FILE libosip2-2.2.2-x64.patch ---
--- libosip2-2.2.2/src/osipparser2/osip_parser_cfg.c.x64 2006-02-23 13:29:36.000000000 -0500
+++ libosip2-2.2.2/src/osipparser2/osip_parser_cfg.c 2006-02-23 13:31:48.000000000 -0500
@@ -32,8 +32,15 @@
* Anyway, this mechanism improves the search time (from binary seach (log(n)) to 1).
*/
-#define HASH_TABLE_SIZE 150 /* set this to the hash table size, 150 is the first size
- where no conflicts occur */
+#ifndef HASH_TABLE_SIZE
+#ifdef __amd64__
+#define HASH_TABLE_SIZE 450
+#else
+#define HASH_TABLE_SIZE 150 /* set this to the hash table size, 150 is the
+ first size where no conflicts occur */
+#endif
+#endif
+
static int hdr_ref_table[HASH_TABLE_SIZE]; /* the hashtable contains indices to the pconfig table */
/*
@@ -146,6 +153,10 @@
} else
{
/* oops, conflict!-> change the hash table or use another hash function size */
+
+ OSIP_TRACE (osip_trace
+ (__FILE__, __LINE__, OSIP_ERROR, NULL,
+ "conflict with current hashtable size\n"));
return -1;
}
}
Index: libosip2.spec
===================================================================
RCS file: /cvs/extras/rpms/libosip2/devel/libosip2.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- libosip2.spec 14 Feb 2006 05:01:33 -0000 1.7
+++ libosip2.spec 23 Feb 2006 19:11:03 -0000 1.8
@@ -1,6 +1,6 @@
Name: libosip2
Version: 2.2.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: oSIP is an implementation of SIP
@@ -8,6 +8,7 @@
License: LGPL
URL: http://www.gnu.org/software/osip/
Source0: http://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
+Patch: libosip2-2.2.2-x64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@@ -40,6 +41,7 @@
%prep
%setup -q
+%patch -p1 -b .x64
%build
%configure --disable-static
@@ -72,6 +74,9 @@
%{_mandir}/man1/*
%changelog
+* Thu Feb 23 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.2-3
+- Fix for AMD64
+
* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 2.2.2-2
- Rebuild for Fedora Extras 5
More information about the scm-commits
mailing list