diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/rlog |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/rlog')
-rw-r--r-- | community/rlog/ChangeLog | 3 | ||||
-rw-r--r-- | community/rlog/PKGBUILD | 25 | ||||
-rw-r--r-- | community/rlog/rlog-section.patch | 74 |
3 files changed, 102 insertions, 0 deletions
diff --git a/community/rlog/ChangeLog b/community/rlog/ChangeLog new file mode 100644 index 000000000..811f87d4f --- /dev/null +++ b/community/rlog/ChangeLog @@ -0,0 +1,3 @@ +2007-06-28 tardo <tardo@nagi-fanboi.net> +* Built for x86_64 + diff --git a/community/rlog/PKGBUILD b/community/rlog/PKGBUILD new file mode 100644 index 000000000..5479d9d03 --- /dev/null +++ b/community/rlog/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org> +# Contributor: Sven Kauber <celeon@gmail.com> + +pkgname=rlog +pkgver=1.4 +pkgrel=3 +pkgdesc="A flexible message logging facility for C++ programs and libraries" +arch=('i686' 'x86_64') +url="http://arg0.net/wiki/rlog" +license=('LGPL') +depends=('gcc-libs') +options=('!libtool') +source=(http://rlog.googlecode.com/files/$pkgname-$pkgver.tar.gz \ + $pkgname-section.patch) +md5sums=('c29f74e0f50d66b20312d049b683ff82' + '69644989e07ceb5c265dfc0c6f770810') + +build() +{ + cd $srcdir/$pkgname-$pkgver + patch -Np1 -i $srcdir/$pkgname-section.patch || return 1 + ./configure --prefix=/usr + make || return 1 + make DESTDIR=$pkgdir/ install +} diff --git a/community/rlog/rlog-section.patch b/community/rlog/rlog-section.patch new file mode 100644 index 000000000..b22dfc2b7 --- /dev/null +++ b/community/rlog/rlog-section.patch @@ -0,0 +1,74 @@ +diff -ruN rlog-1.4.orig/rlog/common.h rlog-1.4/rlog/common.h +--- rlog-1.4.orig/rlog/common.h 2008-06-15 07:49:52.000000000 +0200 ++++ rlog-1.4/rlog/common.h 2008-06-23 19:29:16.000000000 +0200 +@@ -52,7 +52,6 @@ + + # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X))) + # define HAVE_PRINTF_ATTR 1 +-# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") )) + + #if __GNUC__ >= 3 + # define expect(foo, bar) __builtin_expect((foo),bar) +@@ -77,7 +76,6 @@ + */ + # define PRINTF(FMT,X) + # define HAVE_PRINTF_ATTR 0 +-# define RLOG_SECTION + + /*! + */ +diff -ruN rlog-1.4.orig/rlog/common.h.in rlog-1.4/rlog/common.h.in +--- rlog-1.4.orig/rlog/common.h.in 2008-06-15 05:10:13.000000000 +0200 ++++ rlog-1.4/rlog/common.h.in 2008-06-23 19:28:28.000000000 +0200 +@@ -52,7 +52,6 @@ + + # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X))) + # define HAVE_PRINTF_ATTR 1 +-# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") )) + + #if __GNUC__ >= 3 + # define expect(foo, bar) __builtin_expect((foo),bar) +@@ -77,7 +76,6 @@ + */ + # define PRINTF(FMT,X) + # define HAVE_PRINTF_ATTR 0 +-# define RLOG_SECTION + + /*! + */ +diff -ruN rlog-1.4.orig/rlog/rlog-c99.h rlog-1.4/rlog/rlog-c99.h +--- rlog-1.4.orig/rlog/rlog-c99.h 2008-06-15 05:56:57.000000000 +0200 ++++ rlog-1.4/rlog/rlog-c99.h 2008-06-23 19:28:37.000000000 +0200 +@@ -22,7 +22,7 @@ + @internal + */ + #define _rMessageDef(ID, COMPONENT) \ +- static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \ ++ static rlog::PublishLoc ID = {& ID ## _enabled, \ + &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \ + __FUNCTION__, __LINE__, 0}; + +diff -ruN rlog-1.4.orig/rlog/rlog-novariadic.h rlog-1.4/rlog/rlog-novariadic.h +--- rlog-1.4.orig/rlog/rlog-novariadic.h 2008-06-15 05:10:13.000000000 +0200 ++++ rlog-1.4/rlog/rlog-novariadic.h 2008-06-23 19:28:45.000000000 +0200 +@@ -35,7 +35,7 @@ + + #define _rMessageDef(ID, COMPONENT) \ + static bool ID ## _enabled = true; \ +- static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \ ++ static rlog::PublishLoc ID = {& ID ## _enabled, \ + &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \ + __FUNCTION__, __LINE__, 0} + +diff -ruN rlog-1.4.orig/rlog/rlog-prec99.h rlog-1.4/rlog/rlog-prec99.h +--- rlog-1.4.orig/rlog/rlog-prec99.h 2008-06-15 05:59:05.000000000 +0200 ++++ rlog-1.4/rlog/rlog-prec99.h 2008-06-23 19:28:06.000000000 +0200 +@@ -18,7 +18,7 @@ + + #define _rMessageDef(ID, COMPONENT) \ + static bool ID ## _enabled = true; \ +- static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \ ++ static rlog::PublishLoc ID = {& ID ## _enabled, \ + &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \ + __FUNCTION__, __LINE__, 0}; + |