Hello community,

here is the log from the commit of package yder for openSUSE:Factory checked in 
at 2020-09-06 00:04:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yder (Old)
 and      /work/SRC/openSUSE:Factory/.yder.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yder"

Sun Sep  6 00:04:04 2020 rev:10 rq:832386 version:1.4.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/yder/yder.changes        2020-07-06 
16:34:23.824103380 +0200
+++ /work/SRC/openSUSE:Factory/.yder.new.3399/yder.changes      2020-09-06 
00:04:10.187306942 +0200
@@ -1,0 +2,7 @@
+Wed Sep  2 20:20:30 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 1.4.12
+  * Use `gmtime_r` instead of `localtime`
+  * Fix documentation typos
+
+-------------------------------------------------------------------

Old:
----
  yder-1.4.11.tar.gz

New:
----
  yder-1.4.12.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yder.spec ++++++
--- /var/tmp/diff_new_pack.WkUKm6/_old  2020-09-06 00:04:10.803307251 +0200
+++ /var/tmp/diff_new_pack.WkUKm6/_new  2020-09-06 00:04:10.807307253 +0200
@@ -2,7 +2,7 @@
 # spec file for package yder
 #
 # Copyright (c) 2020 SUSE LLC
-# Copyright (c) 2018, Martin Hauke <[email protected]>
+# Copyright (c) 2018-2020, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 
 %define sover 1_4
 Name:           yder
-Version:        1.4.11
+Version:        1.4.12
 Release:        0
 Summary:        Logging library written in C
 # Example programs in subfolder examples/ are licensed under MIT

++++++ yder-1.4.11.tar.gz -> yder-1.4.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/.github/workflows/codeql-analysis.yml 
new/yder-1.4.12/.github/workflows/codeql-analysis.yml
--- old/yder-1.4.11/.github/workflows/codeql-analysis.yml       1970-01-01 
01:00:00.000000000 +0100
+++ new/yder-1.4.12/.github/workflows/codeql-analysis.yml       2020-08-26 
13:45:52.000000000 +0200
@@ -0,0 +1,59 @@
+name: "CodeQL"
+
+on:
+  push:
+    branches: [master, ]
+  pull_request:
+    # The branches below must be a subset of the branches above
+    branches: [master]
+  schedule:
+    - cron: '0 4 * * 6'
+
+jobs:
+  analyse:
+    name: Analyse
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v2
+      with:
+        # We must fetch at least the immediate parents so that if this is
+        # a pull request then we can checkout the head.
+        fetch-depth: 2
+
+    # If this run was triggered by a pull request event, then checkout
+    # the head of the pull request instead of the merge commit.
+    - run: git checkout HEAD^2
+      if: ${{ github.event_name == 'pull_request' }}
+
+    # Initializes the CodeQL tools for scanning.
+    - name: Initialize CodeQL
+      uses: github/codeql-action/init@v1
+      # Override language selection by uncommenting this and choosing your 
languages
+      # with:
+      #   languages: go, javascript, csharp, python, cpp, java
+
+    # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
+    # If this step fails, then you should remove it and run the build manually 
(see below)
+    #- name: Autobuild
+    #  uses: github/codeql-action/autobuild@v1
+
+    # â„šī¸ Command-line programs to run using the OS shell.
+    # 📚 https://git.io/JvXDl
+
+    # âœī¸ If the Autobuild fails above, remove it and uncomment the following 
three lines
+    #    and modify them (or add more) to build your code if your project
+    #    uses a compiled language
+
+    - run: |
+        sudo apt-get update
+        sudo apt-get install -y cmake pkg-config libsystemd-dev doxygen
+        mkdir build
+        cd build
+        cmake -DBUILD_YDER_DOCUMENTATION=on ..
+        make && make doc
+        sudo make install
+
+    - name: Perform CodeQL Analysis
+      uses: github/codeql-action/analyze@v1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/.github/workflows/main.yml 
new/yder-1.4.12/.github/workflows/main.yml
--- old/yder-1.4.11/.github/workflows/main.yml  2020-07-03 18:33:18.000000000 
+0200
+++ new/yder-1.4.12/.github/workflows/main.yml  2020-08-26 13:45:52.000000000 
+0200
@@ -10,15 +10,15 @@
     - name: install dependencies
       run: |
         sudo apt-get update
-        sudo apt-get install -y cmake pkg-config check libsubunit-dev cppcheck 
libsystemd-dev
+        sudo apt-get install -y cmake pkg-config check libsubunit-dev cppcheck 
libsystemd-dev doxygen
     - name: cppcheck
       run: cppcheck --force --enable=warning,missingInclude --error-exitcode=1 
.
     - name: build
       run: |
         mkdir build
         cd build
-        cmake -DBUILD_YDER_TESTING=on ..
-        make test package
+        cmake -DBUILD_YDER_TESTING=on -DBUILD_YDER_DOCUMENTATION=on ..
+        make test package doc
         sudo make install
         sudo ldconfig
         cd ..
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/CHANGELOG.md new/yder-1.4.12/CHANGELOG.md
--- old/yder-1.4.11/CHANGELOG.md        2020-07-03 18:33:18.000000000 +0200
+++ new/yder-1.4.12/CHANGELOG.md        2020-08-26 13:45:52.000000000 +0200
@@ -1,5 +1,10 @@
 # Yder Changelog
 
+## 1.4.12
+
+- Use `gmtime_r` instead of `localtime`
+- Fix documentation typos
+
 ## 1.4.11
 
 - Update CI pipelines
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/CMakeLists.txt 
new/yder-1.4.12/CMakeLists.txt
--- old/yder-1.4.11/CMakeLists.txt      2020-07-03 18:33:18.000000000 +0200
+++ new/yder-1.4.12/CMakeLists.txt      2020-08-26 13:45:52.000000000 +0200
@@ -30,7 +30,7 @@
 set(PROJECT_BUGREPORT_PATH "https://github.com/babelouest/yder/issues";)
 set(LIBRARY_VERSION_MAJOR "1")
 set(LIBRARY_VERSION_MINOR "4")
-set(LIBRARY_VERSION_PATCH "11")
+set(LIBRARY_VERSION_PATCH "12")
 
 set(PROJECT_VERSION 
"${LIBRARY_VERSION_MAJOR}.${LIBRARY_VERSION_MINOR}.${LIBRARY_VERSION_PATCH}")
 set(PROJECT_VERSION_MAJOR ${LIBRARY_VERSION_MAJOR})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/README.md new/yder-1.4.12/README.md
--- old/yder-1.4.11/README.md   2020-07-03 18:33:18.000000000 +0200
+++ new/yder-1.4.12/README.md   2020-08-26 13:45:52.000000000 +0200
@@ -5,9 +5,9 @@
 [![Build 
Status](https://travis-ci.com/babelouest/yder.svg?branch=master)](https://travis-ci.com/babelouest/yder)
 
![.github/workflows/main.yml](https://github.com/babelouest/yder/workflows/.github/workflows/main.yml/badge.svg)
 
-Simple and easy to use logging library. You can log messages to the console, a 
file, syslog, journald or a callback function.
+Simple and easy to use logging library. You can log messages to the console, a 
file, Syslog, journald or a callback function.
 
-Yder is mono-thread, which mean that you can use only one instance of yder log 
at the same time in your program.
+Yder is mono-thread, which mean that you can use only one instance of Yder log 
at the same time in your program.
 
 See the [online documentation](https://babelouest.github.io/yder/) for a 
doxygen format of the API documentation.
 
@@ -32,13 +32,13 @@
 
 ### Prerequisites
 
-You must install [liborcania](https://github.com/babelouest/orcania) first 
before building libyder. Orcania will be automatically installed if missing and 
you're using cmake.
+You must install [Orcania](https://github.com/babelouest/orcania) first before 
building Yder. Orcania will be automatically installed if missing and you're 
using CMake.
 
 ### CMake - Multi architecture
 
 [CMake](https://cmake.org/download/) minimum 3.5 is required.
 
-Run the cmake script in a subdirectory, example:
+Run the CMake script in a sub-directory, example:
 
 ```shell
 $ git clone https://github.com/babelouest/yder.git
@@ -49,7 +49,7 @@
 $ make && sudo make install
 ```
 
-The available options for cmake are:
+The available options for CMake are:
 - `-DWITH_JOURNALD=[on|off]` (default `on`): Build with journald (SystemD) 
support
 - `-DBUILD_STATIC=[on|off]` (default `off`): Build the static archive in 
addition to the shared library
 - `-DBUILD_YDER_TESTING=[on|off]` (default `off`): Build unit tests
@@ -60,7 +60,7 @@
 
 ### Good ol' Makefile
 
-Download yder from github repository, compile and install.
+Download Yder from GitHub repository, compile and install.
 
 ```shell
 $ git clone https://github.com/babelouest/yder.git
@@ -80,7 +80,7 @@
 
 By default, the shared library and the header file will be installed in the 
`/usr/local` location. To change this setting, you can modify the `DESTDIR` 
value in the `src/Makefile`.
 
-Example: install yder in /tmp/lib directory
+Example: install Yder in /tmp/lib directory
 
 ```shell
 $ cd src
@@ -91,9 +91,9 @@
 A `ldconfig` command is executed at the end of the install, it will probably 
fail if you don't have root permission, but this is harmless.
 If you choose to install Yder in another directory, you must set your 
environment variable `LD_LIBRARY_PATH` properly.
 
-### Install libyder as a static archive
+### Install Yder as a static archive
 
-Install yder library as a static archive, `libyder.a`, use the make commands 
`make static*`:
+Install Yder library as a static archive, `libyder.a`, use the make commands 
`make static*`:
 
 ```shell
 $ cd src
@@ -104,7 +104,7 @@
 
 ## Header files and compilation
 
-To use yder in your code, you must include the file `yder.h`.
+To use Yder in your code, you must include the file `yder.h`.
 
 ```c
 #include <yder.h>
@@ -174,9 +174,9 @@
 - const unsigned long level // The log level of the message, values can be: 
Y_LOG_LEVEL_ERROR, Y_LOG_LEVEL_WARNING, Y_LOG_LEVEL_INFO, Y_LOG_LEVEL_DEBUG
 ```
 
-### Close yder
+### Close Yder
 
-To close yder and free its allocated memory, use the function `y_close_logs`:
+To close Yder and free its allocated memory, use the function `y_close_logs`:
 
 ```c
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/libyder.pc.in 
new/yder-1.4.12/libyder.pc.in
--- old/yder-1.4.11/libyder.pc.in       2020-07-03 18:33:18.000000000 +0200
+++ new/yder-1.4.12/libyder.pc.in       2020-08-26 13:45:52.000000000 +0200
@@ -9,6 +9,6 @@
 Version: @LIBRARY_VERSION@
 Requires: @PKGCONF_REQ@
 Requires.private: @PKGCONF_REQ_PRIVATE@
-Libs: -L${libdir} -lyder
+Libs: -L${libdir} -lyder -lorcania
 Cflags: -I${includedir}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/src/Makefile new/yder-1.4.12/src/Makefile
--- old/yder-1.4.11/src/Makefile        2020-07-03 18:33:18.000000000 +0200
+++ new/yder-1.4.12/src/Makefile        2020-08-26 13:45:52.000000000 +0200
@@ -35,7 +35,7 @@
 OUTPUT=libyder.so
 VERSION_MAJOR=1
 VERSION_MINOR=4
-VERSION_PATCH=11
+VERSION_PATCH=12
 
 SONAME = -soname
 ifeq ($(shell uname -s),Darwin)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yder-1.4.11/src/yder.c new/yder-1.4.12/src/yder.c
--- old/yder-1.4.11/src/yder.c  2020-07-03 18:33:18.000000000 +0200
+++ new/yder-1.4.12/src/yder.c  2020-08-26 13:45:52.000000000 +0200
@@ -44,18 +44,17 @@
 static void y_write_log_console(const char * app_name, const char * 
date_format, const time_t date, const unsigned long level, const char * 
message) {
   char * level_name = NULL, date_stamp[64];
   FILE * output = NULL;
-  struct tm * tm_stamp;
-  
-  tm_stamp = localtime (&date);
+  struct tm tm_stamp;
+  gmtime_r(&date, &tm_stamp);
   
   if (date_format == NULL) {
 #ifndef _WIN32
-    strftime (date_stamp, sizeof(date_stamp), "%FT%TZ", tm_stamp);
+    strftime (date_stamp, sizeof(date_stamp), "%FT%TZ", &tm_stamp);
 #else
-    strftime (date_stamp, sizeof(date_stamp), "%Y-%m-%dT%H:%M:%S", tm_stamp);
+    strftime (date_stamp, sizeof(date_stamp), "%Y-%m-%dT%H:%M:%S", &tm_stamp);
 #endif
   } else {
-    strftime (date_stamp, sizeof(date_stamp), date_format, tm_stamp);
+    strftime (date_stamp, sizeof(date_stamp), date_format, &tm_stamp);
   }
   switch (level) {
     case Y_LOG_LEVEL_ERROR:
@@ -136,18 +135,18 @@
  */
 static void y_write_log_file(const char * app_name, const char * date_format, 
const time_t date, FILE * log_file, const unsigned long level, const char * 
message) {
   char * level_name = NULL, date_stamp[20];
-  struct tm * tm_stamp;
+  struct tm tm_stamp;
   
   if (log_file != NULL) {
-    tm_stamp = localtime (&date);
+    gmtime_r(&date, &tm_stamp);
     if (date_format == NULL) {
 #ifndef _WIN32
-      strftime (date_stamp, sizeof(date_stamp), "%FT%TZ", tm_stamp);
+      strftime (date_stamp, sizeof(date_stamp), "%FT%TZ", &tm_stamp);
 #else
-      strftime (date_stamp, sizeof(date_stamp), "%Y-%m-%dT%H:%M:%S", tm_stamp);
+      strftime (date_stamp, sizeof(date_stamp), "%Y-%m-%dT%H:%M:%S", 
&tm_stamp);
 #endif
   } else {
-    strftime (date_stamp, sizeof(date_stamp), date_format, tm_stamp);
+    strftime (date_stamp, sizeof(date_stamp), date_format, &tm_stamp);
   }
     switch (level) {
       case Y_LOG_LEVEL_ERROR:


Reply via email to