Skip to contentSkip to conversation

New package liblog4c-localtime

PATCH New Alexander Varnin 2 participants 4 messages Oct 8, 2012 – Oct 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New package liblog4c-localtime

---
 package/Config.in                                |    1 +
 package/liblog4c-localtime/Config.in             |    9 +++++++++
 package/liblog4c-localtime/liblog4c-localtime.mk |   17 +++++++++++++++++
 3 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 package/liblog4c-localtime/Config.in
 create mode 100644 package/liblog4c-localtime/liblog4c-localtime.mk
package/Config.in +1 -0
index 8a7c9c4..25752e5 100644
@@ -387,6 +387,7 @@ source "package/lttng-libust/Config.in"
 source "package/orc/Config.in"
 source "package/poco/Config.in"
 source "package/startup-notification/Config.in"
+source "package/liblog4c-localtime/Config.in"
 endmenu
 
 menu "Text and terminal handling"
package/liblog4c-localtime/Config.in new file +9 -0
new file mode 100644
index 0000000..68feab5
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBLOG4C_LOCALTIME
+	bool "liblog4c-localtime"
+	help
+	  Log4c is a library of C for flexible logging to files, syslog 
+	  and other destinations.
+	  This version is with localtime patch, to make lib show times in
+	  local timezone.
+
+	  https://github.com/rcmadruga/log4c-localtime
package/liblog4c-localtime/liblog4c-localtime.mk new file +17 -0
new file mode 100644
index 0000000..9936759
@@ -0,0 +1,17 @@
+ #############################################################
+ #
+ # liblog4c
+ #
+ #############################################################
+ LIBLOG4C_LOCALTIME_VERSION = 6b92bb84dad6f3f1a7cb97035e45f87bce5fa158
+ LIBLOG4C_LOCALTIME_SITE = git://github.com/rcmadruga/log4c-localtime.git
+ LIBLOG4C_LOCALTIME_INSTALL_STAGING = YES 
+
+ define LIBLOG4C_LOCALTIME_HOOK
+   chmod +x $(@D)/configure
+ endef
+
+ LIBLOG4C_LOCALTIME_PRE_CONFIGURE_HOOKS += LIBLOG4C_LOCALTIME_HOOK
+
+ $(eval $(autotools-package))
+
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 New package liblog4c-localtime

[Alexander, your mail server refuses mail from me, so I'm sending my
comments only to the list; I already sent them last Friday, but obviously you didn't see them.]

[List: sorry for the double posting...]

On 04/10/12 11:08, Alexander Varnin wrote:

Add a Signed-off-by line for yourself. This is a short way for you to
assert that you are entitled to contribute the patch under buildroot's GPL license. See http://kerneltrap.org/files/Jeremy/DCO.txt for more details.

Quoted 26 lines
---
  package/Config.in                                |    1 +
  package/liblog4c-localtime/Config.in             |    9 +++++++++
  package/liblog4c-localtime/liblog4c-localtime.mk |   11 +++++++++++
  3 files changed, 21 insertions(+), 0 deletions(-)

create mode 100644 package/liblog4c-localtime/Config.in create mode 100644 package/liblog4c-localtime/liblog4c-localtime.mk

package/Config.in +1 -0
index 8a7c9c4..25752e5 100644
@@ -387,6 +387,7 @@ source "package/lttng-libust/Config.in"
  source "package/orc/Config.in"
  source "package/poco/Config.in"
  source "package/startup-notification/Config.in"
+source "package/liblog4c-localtime/Config.in"
  endmenu
 
  menu "Text and terminal handling"
package/liblog4c-localtime/Config.in new file +0 -0
new file mode 100644
index 0000000..58797be

package/liblog4c-localtime/Config.in line 9

Quoted 9 lines
package/liblog4c-localtime/Config.in new file +9 -0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBLOG4C
+    bool "liblog4c-localtime"
+    help
+      Log4c is a library of C for flexible logging to files, syslog
+      and other destinations.
+      This version is with localtime patch, to make lib show times in
+      local timezone.
+
+      https://github.com/rcmadruga/log4c-localtime

Add the upstream URL as well: http://log4c.sourceforge.net/

package/liblog4c-localtime/liblog4c-localtime.mk line 7

Quoted 13 lines
package/liblog4c-localtime/liblog4c-localtime.mk new file +7 -0
new file mode 100644
index 0000000..f0599c3
@@ -0,0 +1,11 @@
+ #############################################################
+ #
+ # liblog4c
+ #
+ #############################################################
+ LIBLOG4C_VERSION = 1.2.1
+ LIBLOG4C_SITE = git://github.com/rcmadruga/log4c-localtime.git

There's also a tarball:
LIBLOG4C_LOCALTIME_VERSION = v1.0
LIBLOG4C_LOCALTIME_SITE = https://github.com/rcmadruga/log4c-localtime/tarball/v$(LIBLOG4C_LOCALTIME_VERSION)

package/liblog4c-localtime/liblog4c-localtime.mk line 13

Quoted 4 lines
package/liblog4c-localtime/liblog4c-localtime.mk new file +4 -0
+ LIBLOG4C_INSTALL_STAGING = YES
+
+ $(eval $(call AUTOTARGETS))
+

Spurious newline at the end.

It looks like it requires expat, so you need "select BR2_PACKAGE_EXPAT"
to Config.in, and "LIBLOG4C_LOCALTIME_DEPENDENCIES = expat" in .mk. You'll probably also need --disable-expattest for cross-compilation.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#2 lore raw

PATCH 1/1 New package liblog4c-localtime

10.10.2012 00:29, Arnout Vandecappelle ?????:

Quoted 1 line

+ $(eval $(call AUTOTARGETS))

Will this line work on newer versions of buildroot?

#3 lore raw

PATCH 1/1 New package liblog4c-localtime

Quoted 3 lines · Alexander Varnin

10.10.2012 00:29, Arnout Vandecappelle ?????:

Quoted 1 line

+ $(eval $(call AUTOTARGETS))

Will this line work on newer versions of buildroot?

No it won't, but Thomas already gave that comment so I didn't repeat it.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F