Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libite for openSUSE:Factory checked in at 2021-12-03 20:35:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libite (Old) and /work/SRC/openSUSE:Factory/.libite.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libite" Fri Dec 3 20:35:33 2021 rev:8 rq:935305 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libite/libite.changes 2021-10-29 22:35:38.067713876 +0200 +++ /work/SRC/openSUSE:Factory/.libite.new.31177/libite.changes 2021-12-03 20:35:58.372097195 +0100 @@ -1,0 +2,18 @@ +Thu Dec 2 08:47:43 UTC 2021 - Martin Hauke <[email protected]> + +- Update to version 2.5.0 + Changes + * Header files have moved from `lite/*.h` to `libite/*.h` to + prevent clashing with DirectFB LiTE library. + * Include guards in header files have been renamed, much in the + same fashion as the move (above), from `LITE_foo_H_` to + `LIBITE_FOO_H_`. + * Add configure option to disable compatibility symlink, for + systems that do not want name clashes with DirectFB/LiTE, or + do not need to be backwards compatible; use `configure + --without-symlink` + Fixes + * Minor, use defensive coding in `strnlen()` replacement. Only + used on systems that do not have a native implementation. + +------------------------------------------------------------------- Old: ---- libite-2.4.1.tar.gz New: ---- libite-2.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libite.spec ++++++ --- /var/tmp/diff_new_pack.SLWUg9/_old 2021-12-03 20:35:58.888095310 +0100 +++ /var/tmp/diff_new_pack.SLWUg9/_new 2021-12-03 20:35:58.892095295 +0100 @@ -19,7 +19,7 @@ %define sover 5 Name: libite -Version: 2.4.1 +Version: 2.5.0 Release: 0 Summary: BSD function library License: MIT AND X11 @@ -83,6 +83,7 @@ %files devel %{_includedir}/lite +%{_includedir}/libite %{_libdir}/libite.so %{_libdir}/pkgconfig/libite.pc ++++++ libite-2.4.1.tar.gz -> libite-2.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/ChangeLog.md new/libite-2.5.0/ChangeLog.md --- old/libite-2.4.1/ChangeLog.md 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/ChangeLog.md 2021-11-30 07:01:09.000000000 +0100 @@ -4,6 +4,29 @@ All notable changes to the project are documented in this file. +[v2.5.0][] - 2021-11-30 +----------------------- + +> **Note:** namespace change; the -lite library include files have moved +> from `lite/*.h` to `libite/*.h` due to an unfortunate clash +> with "LiTE is a Toobox Engine", from the DirectFB project. +> For a transitional period, however, a compatibility symlink +> is installed; `lite -> libite/`. + +### Changes +- Header files have moved from `lite/*.h` to `libite/*.h` to prevent + clashing with DirectFB LiTE library. +- Include guards in header files have been renamed, much in the same + fashion as the move (above), from `LITE_foo_H_` to `LIBITE_FOO_H_` +- Add configure option to disable compatibility symlink, for systems + that do not want name clashes with DirectFB/LiTE, or do not need to + be backwards compatible; use `configure --without-symlink` + +### Fixes +- Minor, use defensive coding in `strnlen()` replacement. Only used + on systems that do not have a native implementation. + + [v2.4.1][] - 2021-10-09 ----------------------- @@ -431,6 +454,7 @@ [UNRELEASED]: https://github.com/troglobit/libite/compare/v2.4.1...HEAD +[v2.5.0]: https://github.com/troglobit/libite/compare/v2.4.1...v2.5.0 [v2.4.1]: https://github.com/troglobit/libite/compare/v2.4.0...v2.4.1 [v2.4.0]: https://github.com/troglobit/libite/compare/v2.3.1...v2.4.0 [v2.3.1]: https://github.com/troglobit/libite/compare/v2.3.0...v2.3.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/README.md new/libite-2.5.0/README.md --- old/libite-2.4.1/README.md 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/README.md 2021-11-30 07:01:09.000000000 +0100 @@ -45,31 +45,54 @@ Libite is by default installed as a library and a set of include files. To prevent clashing with include files of the same name `-lite` employs -an include file namespace `lite/`, which is strongly recommended to use -in your applications: +an include file namespace `libite/`, which is strongly recommended to +use in your applications: - #include <lite/lite.h> - #include <lite/conio.h> - #include <lite/queue.h> - #include <lite/tree.h> - -The output from the `pkg-config` tool holds no surprises in this regard: - - $ pkg-config --libs --static --cflags libite - -I/usr/local/include -L/usr/local/lib -lite +```C +#include <libite/lite.h> +#include <libite/conio.h> +#include <libite/queue.h> +#include <libite/tree.h> +``` + +> **Note:** prior to v2.5.0, the `lite/` namespace was used for headers, +> which is still available in the default install. This clashed with +> the headers of the LiTE library from the DirectFB project. + +The output from the `pkg-config` tool holds no surprises: + +```bash +$ pkg-config --libs --static --cflags libite +-I/usr/local/include -D_LIBITE_LITE -L/usr/local/lib -lite +``` + +> **Note:** `_LIBITE_LITE` is defined since v2.5.0, useful for software +> that want to be able to build against headers from an older libite: +> +> ```C +> #ifdef _LIBITE_LITE +> # include <libite/lite.h> +> #else +> # include <lite/lite.h> +> #endif +> ``` The prefix path `/usr/local/` shown here is only the default. Use the `configure` script to select a different prefix when installing libite. For GNU autotools based projects, use the following in `configure.ac`: - # Check for required libraries - PKG_CHECK_MODULES([lite], [libite >= 1.5.0]) +```m4 +# Check for required libraries +PKG_CHECK_MODULES([lite], [libite >= 1.5.0]) +``` and in your `Makefile.am`: - proggy_CFLAGS = $(lite_CFLAGS) - proggy_LDADD = $(lite_LIBS) +```Makefile +proggy_CFLAGS = $(lite_CFLAGS) +proggy_LDADD = $(lite_LIBS) +``` > API Documentaion: https://codedocs.xyz/troglobit/libite/ @@ -80,10 +103,18 @@ This library was initially built for and developed on GNU/Linux systems as a light weight utility library, these days NetBSD should also work. - ./configure - make -j5 - sudo make install-strip - sudo ldconfig +```bash +$ ./configure +$ make -j5 +$ sudo make install-strip +$ sudo ldconfig +``` + +Use <kbd>./configure --without-symlink</kbd> to prevent the install step +from creating the `lite -> libite/` compatibility symlink for the header +files, required for systems with DirectFB LiTE. The default, however, +is to install the symlink to ensure compatibility with existing software +that depends on the `-lite` library headers in their previous namespace. **Note:** When checking out code from GIT, use <kbd>./autogen.sh</kbd> to generate a `configure` script. It is a generated file and otherwise diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/configure.ac new/libite-2.5.0/configure.ac --- old/libite-2.4.1/configure.ac 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/configure.ac 2021-11-30 07:01:09.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT(libite, 2.4.1, https://github.com/troglobit/libite/issues) +AC_INIT(libite, 2.5.0, https://github.com/troglobit/libite/issues) AC_CONFIG_AUX_DIR(aux) AM_INIT_AUTOMAKE([1.11 foreign dist-xz]) AM_SILENT_RULES([yes]) @@ -27,7 +27,13 @@ DX_HTML_FEATURE(ON) DX_MAN_FEATURE(OFF) DX_INIT_DOXYGEN(${PACKAGE_NAME}, [${top_builddir}/doc/Doxyfile], [${top_builddir}/doc]) -AM_CONDITIONAL(ENABLE_DOXYGEN,[test "x${DX_FLAG_doc}" = x1]) -AM_CONDITIONAL(ENABLE_HTML,[test "x${DX_FLAG_html}" = x1]) + +AC_ARG_WITH([symlink], + AS_HELP_STRING([--without-symlink], [Disable compat /usr/include/lite -> libite symlink]),, + [with_symlink=yes]) + +AM_CONDITIONAL([ENABLE_DOXYGEN], [test "x${DX_FLAG_doc}" = x1]) +AM_CONDITIONAL([ENABLE_HTML], [test "x${DX_FLAG_html}" = x1]) +AM_CONDITIONAL([COMPAT_SYMLINK], [test "x$with_symlink" != "xno"]) AC_OUTPUT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/debian/changelog new/libite-2.5.0/debian/changelog --- old/libite-2.4.1/debian/changelog 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/debian/changelog 2021-11-30 07:01:09.000000000 +0100 @@ -1,3 +1,11 @@ +libite (2.5.0) stable; urgency=medium + + * Header files have moved from `lite/*.h` to `libite/*.h` to prevent + clashing with DirectFB LiTE library. For a transitional period, + however, a compatibility symlink is installed; `lite -> libite/`. + + -- Joachim Wiberg <[email protected]> Tue, 30 Nov 2021 06:57:17 +0100 + libite (2.4.1) stable; urgency=medium * Add doxygen documentation, https://codedocs.xyz/troglobit/libite/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/debian/libite-dev.install new/libite-2.5.0/debian/libite-dev.install --- old/libite-2.4.1/debian/libite-dev.install 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/debian/libite-dev.install 2021-11-30 07:01:09.000000000 +0100 @@ -1,4 +1,5 @@ -usr/include/lite/*.h +usr/include/libite/*.h +usr/include/lite usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/lib*.pc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/Makefile.am new/libite-2.5.0/src/Makefile.am --- old/libite-2.4.1/src/Makefile.am 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/Makefile.am 2021-11-30 07:01:09.000000000 +0100 @@ -21,10 +21,25 @@ queue.h tree.h -## Distribute these header files in the <lite/...> name space -pkgincludedir = $(includedir)/lite +## Distribute these header files in the <libite/...> namespace +pkgincludedir = $(includedir)/libite pkginclude_HEADERS = lite.h queue.h conio.h tree.h strlite.h strdupa.h \ strndupa.h strnlen.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libite.pc + +## For compatibility with previous <lite/...> namespace +if COMPAT_SYMLINK +install-data-hook: + link=$(DESTDIR)$(includedir)/lite; \ + if [ ! -f $$link ]; then \ + $(LN_S) libite $$link; \ + fi + +uninstall-hook: + link=$(shell readlink $(DESTDIR)$(includedir)/lite); \ + if [ "$$link" = "libite" ]; then \ + $(RM) $(DESTDIR)$(includedir)/lite; \ + fi +endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/conio.h new/libite-2.5.0/src/conio.h --- old/libite-2.4.1/src/conio.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/conio.h 2021-11-30 07:01:09.000000000 +0100 @@ -29,8 +29,8 @@ { #endif -#ifndef CONIO_H_ -#define CONIO_H_ +#ifndef LIBITE_CONIO_H_ +#define LIBITE_CONIO_H_ #include <stdio.h> @@ -130,7 +130,7 @@ printhdr(fp, line, nl, REVERSE); } -#endif /* CONIO_H_ */ +#endif /* LIBITE_CONIO_H_ */ #ifdef __cplusplus } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/libite.pc.in new/libite-2.5.0/src/libite.pc.in --- old/libite-2.4.1/src/libite.pc.in 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/libite.pc.in 2021-11-30 07:01:09.000000000 +0100 @@ -8,5 +8,4 @@ Version: @VERSION@ Requires: Libs: -L${libdir} -lite -Cflags: -I${includedir} - +Cflags: -I${includedir} -D_LIBITE_LITE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/lite.h new/libite-2.5.0/src/lite.h --- old/libite-2.4.1/src/lite.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/lite.h 2021-11-30 07:01:09.000000000 +0100 @@ -38,8 +38,8 @@ { #endif -#ifndef LITE_H_ -#define LITE_H_ +#ifndef LIBITE_LITE_H_ +#define LIBITE_LITE_H_ #include <errno.h> #include <fcntl.h> /* Definition of AT_* constants for utimensat() */ @@ -245,7 +245,7 @@ #define pidfile_read_pid(file) pidfile_read(file) #define signal_pidfile(file, signo) pidfile_signal(file, signo) -#endif /* LITE_H_ */ +#endif /* LIBITE_LITE_H_ */ #ifdef __cplusplus } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/strdupa.h new/libite-2.5.0/src/strdupa.h --- old/libite-2.4.1/src/strdupa.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/strdupa.h 2021-11-30 07:01:09.000000000 +0100 @@ -36,8 +36,8 @@ { #endif -#ifndef LITE_STRDUPA_H -#define LITE_STRDUPA_H +#ifndef LIBITE_STRDUPA_H +#define LIBITE_STRDUPA_H #if !defined(HAVE_STRDUPA) #if defined(strdupa) @@ -67,7 +67,7 @@ #endif /* __GNUC__ */ #endif /* !HAVE_STRDUPA */ -#endif /* LITE_STRDUPA_H */ +#endif /* LIBITE_STRDUPA_H */ #ifdef __cplusplus } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/strlite.h new/libite-2.5.0/src/strlite.h --- old/libite-2.4.1/src/strlite.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/strlite.h 2021-11-30 07:01:09.000000000 +0100 @@ -33,8 +33,8 @@ { #endif -#ifndef LITE_STRING_H_ -#define LITE_STRING_H_ +#ifndef LIBITE_STRING_H_ +#define LIBITE_STRING_H_ #include <stdint.h> /* uint8_t, uint16_t, uint32_t, INT32_MAX, etc. */ #include <string.h> @@ -143,7 +143,7 @@ return strlen(a) == strlen(b) && !strcasecmp(a, b); } -#endif /* LITE_STRING_H_ */ +#endif /* LIBITE_STRING_H_ */ #ifdef __cplusplus } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/strndupa.h new/libite-2.5.0/src/strndupa.h --- old/libite-2.4.1/src/strndupa.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/strndupa.h 2021-11-30 07:01:09.000000000 +0100 @@ -36,8 +36,8 @@ { #endif -#ifndef LITE_STRNDUPA_H_ -#define LITE_STRNDUPA_H_ +#ifndef LIBITE_STRNDUPA_H_ +#define LIBITE_STRNDUPA_H_ #if !defined(HAVE_STRNDUPA) #if defined(strndupa) @@ -69,7 +69,7 @@ #endif /* __GNUC__ */ #endif /* !HAVE_STRNDUPA */ -#endif /* GNU_STRING_STRNDUPA_H */ +#endif /* LIBITE_STRNDUPA_H */ #ifdef __cplusplus } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/src/strnlen.h new/libite-2.5.0/src/strnlen.h --- old/libite-2.4.1/src/strnlen.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/src/strnlen.h 2021-11-30 07:01:09.000000000 +0100 @@ -27,8 +27,8 @@ { #endif -#ifndef LITE_STRNLEN_H_ -#define LITE_STRNLEN_H_ +#ifndef LIBITE_STRNLEN_H_ +#define LIBITE_STRNLEN_H_ #if !defined(HAVE_STRNLEN) #if defined(strnlen) @@ -51,14 +51,14 @@ { size_t i = 0; - while (str[i] && i < lim) + while (i < lim && str[i]) i++; return i; } #endif -#endif /* LITE_STRNLEN_H_ */ +#endif /* LIBITE_STRNLEN_H_ */ #ifdef __cplusplus } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libite-2.4.1/test/check.h new/libite-2.5.0/test/check.h --- old/libite-2.4.1/test/check.h 2021-10-09 09:21:41.000000000 +0200 +++ new/libite-2.5.0/test/check.h 2021-11-30 07:01:09.000000000 +0100 @@ -1,5 +1,5 @@ -#ifndef LITE_TESTS_CHECK_H_ -#define LITE_TESTS_CHECK_H_ +#ifndef LIBLITE_TESTS_CHECK_H_ +#define LIBLITE_TESTS_CHECK_H_ #include <stdarg.h> #include <stdlib.h> @@ -78,4 +78,4 @@ return buf; } -#endif /* LITE_TESTS_CHECK_H_ */ +#endif /* LIBLITE_TESTS_CHECK_H_ */
