summaryrefslogtreecommitdiff
path: root/community/wvstreams
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-15 10:29:19 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-15 10:29:19 -0300
commit3ed19e74567434fe0bc82d835513b5b62f151838 (patch)
tree32427be3c933a7d96426b28d9c90eceb6ab8ff3d /community/wvstreams
parentd5be0922f99093b4659507a4c17c664ac5c2f577 (diff)
parent8f1eb849d6de0031d4d91fb6d8780828b1ba924b (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/gambas3/PKGBUILD community-staging/libextractor/PKGBUILD community/haveged/PKGBUILD community/libfm/PKGBUILD core/lvm2/PKGBUILD extra/geeqie/PKGBUILD staging/calligra/PKGBUILD
Diffstat (limited to 'community/wvstreams')
-rw-r--r--community/wvstreams/PKGBUILD12
-rw-r--r--community/wvstreams/wvstreams-4.6.1-gcc47.patch44
2 files changed, 48 insertions, 8 deletions
diff --git a/community/wvstreams/PKGBUILD b/community/wvstreams/PKGBUILD
index 8bd07de60..0f7797cd2 100644
--- a/community/wvstreams/PKGBUILD
+++ b/community/wvstreams/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 74964 2012-08-10 12:12:57Z bluewind $
+# $Id: PKGBUILD 75083 2012-08-13 16:55:40Z bluewind $
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
pkgname=wvstreams
pkgver=4.6.1
-pkgrel=4
+pkgrel=5
pkgdesc="A network programming library written in C++"
arch=('i686' 'x86_64' 'mips64el')
url="http://alumnit.ca/wiki/?page=WvStreams"
@@ -15,7 +15,7 @@ source=(http://wvstreams.googlecode.com/files/${pkgname}-${pkgver}.tar.gz
wvstreams-4.6.1-glibc212.patch wvstreams-4.6.1-gcc47.patch openssl-buildfix.patch)
md5sums=('2760dac31a43d452a19a3147bfde571c'
'5f6e24864209055239cb4e7c9bbd4a41'
- '918be13d35205385a39077403ce36388'
+ '217e5dedd7f1d50588a5a67d637fc8a1'
'df423c68134a09439b3961c34635e0b4')
options=('!makeflags')
@@ -23,7 +23,7 @@ build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p0 -i "$srcdir/wvstreams-4.6.1-glibc212.patch"
- patch -p1 -i "$srcdir/wvstreams-4.6.1-gcc47.patch"
+ patch -p0 -i "$srcdir/wvstreams-4.6.1-gcc47.patch"
patch -p1 -i "$srcdir/openssl-buildfix.patch"
./configure --prefix=/usr \
@@ -33,8 +33,8 @@ build() {
--with-pam \
--with-openssl \
--without-tcl \
- --without-qt || return 1
- make COPTS="$CFLAGS -fPIC" CXXOPTS="$CXXFLAGS -fPIC -fpermissive" VERBOSE=1
+ --without-qt
+ make COPTS="$CFLAGS -fPIC" CXXOPTS="$CXXFLAGS -fPIC -fpermissive -fno-tree-dce -fno-optimize-sibling-calls" VERBOSE=1
}
package() {
diff --git a/community/wvstreams/wvstreams-4.6.1-gcc47.patch b/community/wvstreams/wvstreams-4.6.1-gcc47.patch
index 3d6704832..b284da8f3 100644
--- a/community/wvstreams/wvstreams-4.6.1-gcc47.patch
+++ b/community/wvstreams/wvstreams-4.6.1-gcc47.patch
@@ -1,5 +1,33 @@
---- wvstreams-4.6.1-dist/include/wvuid.h 2012-01-05 10:18:58.713661236 +0100
-+++ wvstreams-4.6.1/include/wvuid.h 2012-01-05 10:27:42.198435328 +0100
+http://bugs.gentoo.org/419563
+http://bugs.gentoo.org/419971
+
+See -gcc47-patch and -magic.patch in Fedora git:
+
+http://pkgs.fedoraproject.org/gitweb/?p=libwvstreams.git;a=tree
+
+--- include/wvtask.h
++++ include/wvtask.h
+@@ -45,7 +45,8 @@
+ typedef void TaskFunc(void *userdata);
+
+ static int taskcount, numtasks, numrunning;
+- int magic_number, *stack_magic;
++ int volatile magic_number;
++ int *stack_magic;
+ WvString name;
+ int tid;
+
+@@ -84,7 +85,7 @@
+ static WvTaskMan *singleton;
+ static int links;
+
+- static int magic_number;
++ static int volatile magic_number;
+ static WvTaskList all_tasks, free_tasks;
+
+ static void get_stack(WvTask &task, size_t size);
+--- include/wvuid.h
++++ include/wvuid.h
@@ -7,6 +7,7 @@
#ifndef __WVUID_H
#define __WVUID_H
@@ -8,3 +36,15 @@
#include "wvstring.h"
#if WIN32
+--- utils/wvtask.cc
++++ utils/wvtask.cc
+@@ -58,7 +58,8 @@
+ int WvTask::taskcount, WvTask::numtasks, WvTask::numrunning;
+
+ WvTaskMan *WvTaskMan::singleton;
+-int WvTaskMan::links, WvTaskMan::magic_number;
++int WvTaskMan::links;
++int volatile WvTaskMan::magic_number;
+ WvTaskList WvTaskMan::all_tasks, WvTaskMan::free_tasks;
+ ucontext_t WvTaskMan::stackmaster_task, WvTaskMan::get_stack_return,
+ WvTaskMan::toplevel;