summaryrefslogtreecommitdiff
path: root/community/rlog
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/rlog
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/rlog')
-rw-r--r--community/rlog/PKGBUILD30
-rw-r--r--community/rlog/rlog-section.patch74
2 files changed, 104 insertions, 0 deletions
diff --git a/community/rlog/PKGBUILD b/community/rlog/PKGBUILD
new file mode 100644
index 000000000..48bf0832c
--- /dev/null
+++ b/community/rlog/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 55453 2011-09-12 23:51:53Z ebelanger $
+# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
+# Contributor: Sven Kauber <celeon@gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=rlog
+pkgver=1.4
+pkgrel=4
+pkgdesc="A flexible message logging facility for C++ programs and libraries"
+arch=('i686' 'x86_64')
+url="http://www.arg0.net/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"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ 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};
+