1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

- Fix thread support [1]

- Fix repcached on amd64 updating to repcached 2.2 [2]
- Bump PORTREVISION

PR:		129631 [1], 129767 [2]
Submitted by:	Artemiev Igor <ai___kliksys.ru> [1],
		Maxim Dounin <mdounin___mdounin.ru> [2]
This commit is contained in:
Marcus Alves Grando 2009-01-27 10:23:43 +00:00
parent 17c1da2774
commit 4b61ee2844
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226959
4 changed files with 46 additions and 4 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= memcached
PORTVERSION= 1.2.6
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.danga.com/memcached/dist/ \
${MASTER_SITE_GENTOO}
@ -38,8 +39,10 @@ PORTDOCS= memory_management.txt protocol.txt
PATCH_SITES+= ${MASTER_SITE_SOURCEFORGE}
PATCH_SITE_SUBDIR= repcached
PATCH_DIST_STRIP+= -p1
PATCHFILES+= repcached-2.1-1.2.6.patch.gz
PATCHFILES+= repcached-2.2-1.2.6.patch.gz
CONFIGURE_ARGS+= --enable-replication --disable-threads
.else
CONFIGURE_ARGS+= --enable-threads
.endif
post-configure:

View File

@ -1,6 +1,6 @@
MD5 (memcached-1.2.6.tar.gz) = 200d22f7ac2d114f74a6904552e9eb70
SHA256 (memcached-1.2.6.tar.gz) = 365c5719997af9477aedf4ff0435fbd83aadf5fa9b1c7a2e0d744f865aac578e
SIZE (memcached-1.2.6.tar.gz) = 217651
MD5 (repcached-2.1-1.2.6.patch.gz) = 7fd13dc69454eeec6bd9fd04833d8d0d
SHA256 (repcached-2.1-1.2.6.patch.gz) = 0e4c0387ac07608d3173f38c1078bb359630577c7afd3f1e3b6f226902d63f1e
SIZE (repcached-2.1-1.2.6.patch.gz) = 16510
MD5 (repcached-2.2-1.2.6.patch.gz) = 4ce1411efae1eac79c69c1c590ecd8fe
SHA256 (repcached-2.2-1.2.6.patch.gz) = 5b848a8c0c5c39df6b92e9521773ecac92185bf516cdd12ddce1408ef7fa8fd5
SIZE (repcached-2.2-1.2.6.patch.gz) = 16682

View File

@ -0,0 +1,29 @@
--- configure.orig 2009-01-27 00:32:17.000000000 -0200
+++ configure 2009-01-27 00:32:52.000000000 -0200
@@ -3668,7 +3668,7 @@
enableval=$enable_dtrace;
fi
-if test "x$enable_dtrace" == "xyes"; then
+if test "x$enable_dtrace" = "xyes"; then
# Extract the first word of "dtrace", so it can be a program name with args.
set dummy dtrace; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -3741,7 +3741,7 @@
enableval=$enable_64bit;
fi
-if test "x$enable_64bit" == "xyes"
+if test "x$enable_64bit" = "xyes"
then
org_cflags=$CFLAGS
CFLAGS=-m64
@@ -5637,7 +5637,7 @@
enableval=$enable_threads;
fi
-if test "x$enable_threads" == "xyes"; then
+if test "x$enable_threads" = "xyes"; then
{ echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; }
if test "${ac_cv_search_pthread_create+set}" = set; then

View File

@ -0,0 +1,10 @@
--- thread.c.orig 2009-01-27 00:34:19.000000000 -0200
+++ thread.c 2009-01-27 00:34:04.000000000 -0200
@@ -644,6 +644,7 @@
perror("Can't allocate thread descriptors");
exit(1);
}
+ memset(threads, 0, sizeof(LIBEVENT_THREAD) * nthreads);
threads[0].base = main_base;
threads[0].thread_id = pthread_self();