liblog4c-localtime: rename patches to the new naming convention
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Oct 2014 11:15:32 +0000 (12:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Oct 2014 11:33:53 +0000 (12:33 +0100)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/liblog4c-localtime/0001-localtime-fix-underquoted-path.patch [new file with mode: 0644]
package/liblog4c-localtime/0002-localtime-nothread.patch [new file with mode: 0644]
package/liblog4c-localtime/liblog4c-0001-localtime-fix-underquoted-path.patch [deleted file]
package/liblog4c-localtime/liblog4c-0002-localtime-nothread.patch [deleted file]

diff --git a/package/liblog4c-localtime/0001-localtime-fix-underquoted-path.patch b/package/liblog4c-localtime/0001-localtime-fix-underquoted-path.patch
new file mode 100644 (file)
index 0000000..8a74a5e
--- /dev/null
@@ -0,0 +1,16 @@
+Fix "underquoted definition of AM_PATH_LOG4C" warning.
+
+Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> 
+
+diff -urN liblog4c-localtime-1.0/log4c.m4 liblog4c-localtime-1.0.orig/log4c.m4
+--- liblog4c-localtime-1.0/log4c.m4    2012-10-27 16:11:46.219894716 -0400
++++ liblog4c-localtime-1.0.orig/log4c.m4       2012-10-27 16:10:31.393336864 -0400
+@@ -4,7 +4,7 @@
+ dnl AM_PATH_LOG4C([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
+ dnl Test for LOG4C, and define LOG4C_CFLAGS and LOG4C_LIBS
+ dnl
+-AC_DEFUN(AM_PATH_LOG4C,
++AC_DEFUN([AM_PATH_LOG4C],
+ [dnl 
+ dnl Get the cflags and libraries from the log4c-config script
+ dnl
diff --git a/package/liblog4c-localtime/0002-localtime-nothread.patch b/package/liblog4c-localtime/0002-localtime-nothread.patch
new file mode 100644 (file)
index 0000000..df16e62
--- /dev/null
@@ -0,0 +1,29 @@
+[PATCH] fix linking error without pthread
+
+The rollingfile functionality only gets built if pthread support is
+available, but a call to these functions from log4c_fini() was outside
+the #if WITH_ROLLINGFILE conditional, causing linker errors when the
+library is used.
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ src/log4c/init.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+Index: liblog4c-localtime-v1.0/src/log4c/init.c
+===================================================================
+--- liblog4c-localtime-v1.0.orig/src/log4c/init.c
++++ liblog4c-localtime-v1.0/src/log4c/init.c
+@@ -267,10 +267,12 @@
+       log4c_layout_factory = NULL;
+     }
+   
++#ifdef WITH_ROLLINGFILE
+     if (log4c_rollingpolicy_factory) {
+       sd_factory_delete(log4c_rollingpolicy_factory);
+       log4c_rollingpolicy_factory = NULL;
+     }
++#endif
+     
+ #ifdef __SD_DEBUG__
+     if( getenv("SD_DEBUG")){
diff --git a/package/liblog4c-localtime/liblog4c-0001-localtime-fix-underquoted-path.patch b/package/liblog4c-localtime/liblog4c-0001-localtime-fix-underquoted-path.patch
deleted file mode 100644 (file)
index 8a74a5e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-Fix "underquoted definition of AM_PATH_LOG4C" warning.
-
-Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> 
-
-diff -urN liblog4c-localtime-1.0/log4c.m4 liblog4c-localtime-1.0.orig/log4c.m4
---- liblog4c-localtime-1.0/log4c.m4    2012-10-27 16:11:46.219894716 -0400
-+++ liblog4c-localtime-1.0.orig/log4c.m4       2012-10-27 16:10:31.393336864 -0400
-@@ -4,7 +4,7 @@
- dnl AM_PATH_LOG4C([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
- dnl Test for LOG4C, and define LOG4C_CFLAGS and LOG4C_LIBS
- dnl
--AC_DEFUN(AM_PATH_LOG4C,
-+AC_DEFUN([AM_PATH_LOG4C],
- [dnl 
- dnl Get the cflags and libraries from the log4c-config script
- dnl
diff --git a/package/liblog4c-localtime/liblog4c-0002-localtime-nothread.patch b/package/liblog4c-localtime/liblog4c-0002-localtime-nothread.patch
deleted file mode 100644 (file)
index df16e62..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-[PATCH] fix linking error without pthread
-
-The rollingfile functionality only gets built if pthread support is
-available, but a call to these functions from log4c_fini() was outside
-the #if WITH_ROLLINGFILE conditional, causing linker errors when the
-library is used.
-
-Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
----
- src/log4c/init.c |    2 ++
- 1 file changed, 2 insertions(+)
-
-Index: liblog4c-localtime-v1.0/src/log4c/init.c
-===================================================================
---- liblog4c-localtime-v1.0.orig/src/log4c/init.c
-+++ liblog4c-localtime-v1.0/src/log4c/init.c
-@@ -267,10 +267,12 @@
-       log4c_layout_factory = NULL;
-     }
-   
-+#ifdef WITH_ROLLINGFILE
-     if (log4c_rollingpolicy_factory) {
-       sd_factory_delete(log4c_rollingpolicy_factory);
-       log4c_rollingpolicy_factory = NULL;
-     }
-+#endif
-     
- #ifdef __SD_DEBUG__
-     if( getenv("SD_DEBUG")){