[arch-commits] Commit in thrift/repos (6 files)
Anatol Pomozov
anatolik at archlinux.org
Sun Dec 21 13:10:02 UTC 2014
Date: Sunday, December 21, 2014 @ 14:10:02
Author: anatolik
Revision: 124301
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
thrift/repos/community-testing-i686/
thrift/repos/community-testing-i686/PKGBUILD
(from rev 124300, thrift/trunk/PKGBUILD)
thrift/repos/community-testing-i686/fix_cglib_compile_options.patch
(from rev 124300, thrift/trunk/fix_cglib_compile_options.patch)
thrift/repos/community-testing-x86_64/
thrift/repos/community-testing-x86_64/PKGBUILD
(from rev 124300, thrift/trunk/PKGBUILD)
thrift/repos/community-testing-x86_64/fix_cglib_compile_options.patch
(from rev 124300, thrift/trunk/fix_cglib_compile_options.patch)
----------------------------------------------------------+
community-testing-i686/PKGBUILD | 72 +++++++++++++
community-testing-i686/fix_cglib_compile_options.patch | 39 +++++++
community-testing-x86_64/PKGBUILD | 72 +++++++++++++
community-testing-x86_64/fix_cglib_compile_options.patch | 39 +++++++
4 files changed, 222 insertions(+)
Copied: thrift/repos/community-testing-i686/PKGBUILD (from rev 124300, thrift/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2014-12-21 13:10:02 UTC (rev 124301)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+# Contributor: Byron Clark <byron at theclarkfamily.name>
+
+# This package contains only thrift compiler and C/C++ libraries
+# for all the language binding one should use corresponding language-specific package manager:
+# CPAN for perl, gem for ruby, pip for python etc... Or better to create arch packages that install
+# the binding from the language specific managers python2-thrift, perl-thrift, ruby-thrift, ...
+
+pkgname=thrift
+pkgver=0.9.2
+pkgrel=2
+pkgdesc='Scalable cross-language services framework for IPC/RPC'
+arch=(i686 x86_64)
+url='http://thrift.apache.org/'
+license=(APACHE)
+depends=(gcc-libs openssl boost)
+makedepends=(qt4 boost libevent emacs-nox)
+optdepends=(
+ 'qt4: TQTcpServer support'
+)
+source=(http://www.apache.org/dist/thrift/$pkgver/thrift-$pkgver.tar.gz
+ fix_cglib_compile_options.patch)
+sha1sums=('02f78b158da795ea89a26ce41964fbe562cc4235'
+ '96650c499ab45824be04070d868114205fb4538c')
+
+prepare() {
+ cd thrift-$pkgver
+ patch -p1 < ../fix_cglib_compile_options.patch
+}
+
+build() {
+ cd thrift-$pkgver
+
+ ./configure --prefix=/usr \
+ --with-cpp \
+ --with-c_glib \
+ --with-qt4 \
+ --with-libevent \
+ --with-csharp \
+ --without-haskell \
+ --without-php \
+ --without-ruby \
+ --without-python \
+ --without-erlang \
+ --without-perl \
+ --without-java \
+ --without-c_sharp \
+ --without-d \
+ --without-php \
+ --without-go \
+ --without-lua \
+ --without-nodejs
+
+ make
+
+ emacs -Q --batch -f batch-byte-compile contrib/thrift.el
+}
+
+check() {
+ cd thrift-$pkgver
+ make check
+}
+
+package() {
+ cd thrift-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -m0644 -D contrib/thrift.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/thrift.vim
+ install -m0644 -D contrib/thrift.el "$pkgdir"/usr/share/emacs/site-lisp/thrift.el
+ install -m0644 -D contrib/thrift.elc "$pkgdir"/usr/share/emacs/site-lisp/thrift.elc
+}
Copied: thrift/repos/community-testing-i686/fix_cglib_compile_options.patch (from rev 124300, thrift/trunk/fix_cglib_compile_options.patch)
===================================================================
--- community-testing-i686/fix_cglib_compile_options.patch (rev 0)
+++ community-testing-i686/fix_cglib_compile_options.patch 2014-12-21 13:10:02 UTC (rev 124301)
@@ -0,0 +1,39 @@
+commit 4bf97c196aba9e50289333c15336ad109fc87f2d
+Author: Anatol Pomozov <anatol.pomozov at gmail.com>
+Date: Mon Nov 24 11:12:52 2014 -0800
+
+ Do not drop CFLAGS from c_glib compilation
+
+ CFLAGS contains important flags. Dropping it introduces e.g. such issues:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=13979
+
+ Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+ This closes #284
+
+diff --git a/lib/c_glib/Makefile.am b/lib/c_glib/Makefile.am
+index 88e2d73..4e0aa88 100755
+--- a/lib/c_glib/Makefile.am
++++ b/lib/c_glib/Makefile.am
+@@ -24,11 +24,7 @@ pkgconfigdir = $(libdir)/pkgconfig
+ lib_LTLIBRARIES = libthrift_c_glib.la
+ pkgconfig_DATA = thrift_c_glib.pc
+
+-common_cflags = -g -Wall -W -Isrc -I src/thrift/c_glib $(GLIB_CFLAGS)
+-common_ldflags = -g -Wall -W $(GLIB_LDFLAGS) @GCOV_LDFLAGS@
+-
+-# this removes optimizations and adds coverage flags
+-CFLAGS = @GCOV_CFLAGS@
++AM_CFLAGS = -Isrc -I src/thrift/c_glib
+
+ # Define the source files for the module
+
+@@ -54,7 +50,7 @@ libthrift_c_glib_la_SOURCES = src/thrift/c_glib/thrift.c \
+ src/thrift/c_glib/server/thrift_server.c \
+ src/thrift/c_glib/server/thrift_simple_server.c
+
+-libthrift_c_glib_la_CFLAGS = $(common_cflags)
++libthrift_c_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
+
+ include_thriftdir = $(includedir)/thrift/c_glib
+ include_thrift_HEADERS = \
Copied: thrift/repos/community-testing-x86_64/PKGBUILD (from rev 124300, thrift/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2014-12-21 13:10:02 UTC (rev 124301)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+# Contributor: Byron Clark <byron at theclarkfamily.name>
+
+# This package contains only thrift compiler and C/C++ libraries
+# for all the language binding one should use corresponding language-specific package manager:
+# CPAN for perl, gem for ruby, pip for python etc... Or better to create arch packages that install
+# the binding from the language specific managers python2-thrift, perl-thrift, ruby-thrift, ...
+
+pkgname=thrift
+pkgver=0.9.2
+pkgrel=2
+pkgdesc='Scalable cross-language services framework for IPC/RPC'
+arch=(i686 x86_64)
+url='http://thrift.apache.org/'
+license=(APACHE)
+depends=(gcc-libs openssl boost)
+makedepends=(qt4 boost libevent emacs-nox)
+optdepends=(
+ 'qt4: TQTcpServer support'
+)
+source=(http://www.apache.org/dist/thrift/$pkgver/thrift-$pkgver.tar.gz
+ fix_cglib_compile_options.patch)
+sha1sums=('02f78b158da795ea89a26ce41964fbe562cc4235'
+ '96650c499ab45824be04070d868114205fb4538c')
+
+prepare() {
+ cd thrift-$pkgver
+ patch -p1 < ../fix_cglib_compile_options.patch
+}
+
+build() {
+ cd thrift-$pkgver
+
+ ./configure --prefix=/usr \
+ --with-cpp \
+ --with-c_glib \
+ --with-qt4 \
+ --with-libevent \
+ --with-csharp \
+ --without-haskell \
+ --without-php \
+ --without-ruby \
+ --without-python \
+ --without-erlang \
+ --without-perl \
+ --without-java \
+ --without-c_sharp \
+ --without-d \
+ --without-php \
+ --without-go \
+ --without-lua \
+ --without-nodejs
+
+ make
+
+ emacs -Q --batch -f batch-byte-compile contrib/thrift.el
+}
+
+check() {
+ cd thrift-$pkgver
+ make check
+}
+
+package() {
+ cd thrift-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -m0644 -D contrib/thrift.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/thrift.vim
+ install -m0644 -D contrib/thrift.el "$pkgdir"/usr/share/emacs/site-lisp/thrift.el
+ install -m0644 -D contrib/thrift.elc "$pkgdir"/usr/share/emacs/site-lisp/thrift.elc
+}
Copied: thrift/repos/community-testing-x86_64/fix_cglib_compile_options.patch (from rev 124300, thrift/trunk/fix_cglib_compile_options.patch)
===================================================================
--- community-testing-x86_64/fix_cglib_compile_options.patch (rev 0)
+++ community-testing-x86_64/fix_cglib_compile_options.patch 2014-12-21 13:10:02 UTC (rev 124301)
@@ -0,0 +1,39 @@
+commit 4bf97c196aba9e50289333c15336ad109fc87f2d
+Author: Anatol Pomozov <anatol.pomozov at gmail.com>
+Date: Mon Nov 24 11:12:52 2014 -0800
+
+ Do not drop CFLAGS from c_glib compilation
+
+ CFLAGS contains important flags. Dropping it introduces e.g. such issues:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=13979
+
+ Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+ This closes #284
+
+diff --git a/lib/c_glib/Makefile.am b/lib/c_glib/Makefile.am
+index 88e2d73..4e0aa88 100755
+--- a/lib/c_glib/Makefile.am
++++ b/lib/c_glib/Makefile.am
+@@ -24,11 +24,7 @@ pkgconfigdir = $(libdir)/pkgconfig
+ lib_LTLIBRARIES = libthrift_c_glib.la
+ pkgconfig_DATA = thrift_c_glib.pc
+
+-common_cflags = -g -Wall -W -Isrc -I src/thrift/c_glib $(GLIB_CFLAGS)
+-common_ldflags = -g -Wall -W $(GLIB_LDFLAGS) @GCOV_LDFLAGS@
+-
+-# this removes optimizations and adds coverage flags
+-CFLAGS = @GCOV_CFLAGS@
++AM_CFLAGS = -Isrc -I src/thrift/c_glib
+
+ # Define the source files for the module
+
+@@ -54,7 +50,7 @@ libthrift_c_glib_la_SOURCES = src/thrift/c_glib/thrift.c \
+ src/thrift/c_glib/server/thrift_server.c \
+ src/thrift/c_glib/server/thrift_simple_server.c
+
+-libthrift_c_glib_la_CFLAGS = $(common_cflags)
++libthrift_c_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
+
+ include_thriftdir = $(includedir)/thrift/c_glib
+ include_thrift_HEADERS = \
More information about the arch-commits
mailing list