Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package umockdev for openSUSE:Factory checked in at 2022-04-13 21:04:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/umockdev (Old) and /work/SRC/openSUSE:Factory/.umockdev.new.1900 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "umockdev" Wed Apr 13 21:04:04 2022 rev:11 rq:969157 version:0.17.9 Changes: -------- --- /work/SRC/openSUSE:Factory/umockdev/umockdev.changes 2022-04-02 18:20:38.786203789 +0200 +++ /work/SRC/openSUSE:Factory/.umockdev.new.1900/umockdev.changes 2022-04-13 21:04:06.964524465 +0200 @@ -1,0 +2,7 @@ +Mon Apr 11 06:54:23 UTC 2022 - Martin Li??ka <mli...@suse.cz> + +- Update to version 0.17.9: + * preload: Wrap fortified version of readlinkat (thanks Martin + Liska) + +------------------------------------------------------------------- Old: ---- umockdev-0.17.8.tar.xz New: ---- umockdev-0.17.9.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ umockdev.spec ++++++ --- /var/tmp/diff_new_pack.pfMVkU/_old 2022-04-13 21:04:07.640525006 +0200 +++ /var/tmp/diff_new_pack.pfMVkU/_new 2022-04-13 21:04:07.644525009 +0200 @@ -19,7 +19,7 @@ %define shlib libumockdev0 %define shlibpre libumockdev-preload0 Name: umockdev -Version: 0.17.8 +Version: 0.17.9 Release: 0 Summary: Mock hardware devices for creating unit tests and bug reporting License: LGPL-2.1-or-later ++++++ umockdev-0.17.8.tar.xz -> umockdev-0.17.9.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/umockdev-0.17.8/NEWS new/umockdev-0.17.9/NEWS --- old/umockdev-0.17.8/NEWS 2022-03-23 10:16:41.783421000 +0100 +++ new/umockdev-0.17.9/NEWS 2022-04-10 18:03:26.643428800 +0200 @@ -1,3 +1,6 @@ +## [0.17.9] - 2022-04-10 +- preload: Wrap fortified version of readlinkat (thanks Martin Liska) + ## [0.17.8] - 2022-03-23 - Fix some potential crashes spotted by Coverity - Enable Fedora builds and bodhi updates via packit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/umockdev-0.17.8/packit.yaml new/umockdev-0.17.9/packit.yaml --- old/umockdev-0.17.8/packit.yaml 2022-03-23 10:16:41.791421200 +0100 +++ new/umockdev-0.17.9/packit.yaml 2022-04-10 18:03:26.655429100 +0200 @@ -2,6 +2,7 @@ # https://packit.dev/docs/configuration/ specfile_path: packaging/umockdev.spec upstream_project_url: https://github.com/martinpitt/umockdev +issue_repository: https://github.com/martinpitt/umockdev copy_upstream_release_description: true upstream_package_name: umockdev downstream_package_name: umockdev diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/umockdev-0.17.8/src/libumockdev-preload.c new/umockdev-0.17.9/src/libumockdev-preload.c --- old/umockdev-0.17.8/src/libumockdev-preload.c 2022-03-23 10:16:41.791421200 +0100 +++ new/umockdev-0.17.9/src/libumockdev-preload.c 2022-04-10 18:03:26.655429100 +0200 @@ -1516,6 +1516,13 @@ return r; } +/* A readlinkat fortify wrapper that is used when -D_FORTIFY_SOURCE is used. */ +ssize_t __readlinkat_chk(int dirfd, const char *pathname, char *buf, size_t bufsiz, size_t buflen); +ssize_t __readlinkat_chk(int dirfd, const char *pathname, char *buf, size_t bufsiz, size_t buflen) +{ + return readlinkat(dirfd, pathname, buf, bufsiz); +} + WRAP_2ARGS_PATHRET(char *, NULL, realpath, char *); char *__realpath_chk(const char *path, char *resolved, size_t size); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/umockdev-0.17.8/tests/run-dnf new/umockdev-0.17.9/tests/run-dnf --- old/umockdev-0.17.8/tests/run-dnf 2022-03-23 10:16:41.795421400 +0100 +++ new/umockdev-0.17.9/tests/run-dnf 2022-04-10 18:03:26.659429300 +0200 @@ -40,6 +40,9 @@ export BRITTLE_TESTS="${BRITTLE_TESTS:-}" cd /source +# thanks gcc for making your major version so easy to parse +GCC_VERSION=\\\$(gcc --version | grep -oE '[0-9]+\.[0-9]+' | head -n1 | cut -f1 -d.) + CFLAGS="\$(grep -q rawhide /etc/os-release && echo -fanalyzer)" meson setup /tmp/dbg --buildtype debug --prefix /usr -Dgtk_doc=\${gtk_doc} -Db_coverage=\$coverage --werror cd /tmp/dbg DESTDIR=/tmp/inst meson install @@ -54,6 +57,15 @@ cd /source CC=clang meson setup /tmp/clang -Dgtk_doc=false --werror meson test -C /tmp/clang -v --num-processes=1 + +# build with optimization and fortify +if [ \\\$GCC_VERSION -ge 12 ]; then + fortify_level=3 +else + fortify_level=2 +fi +CFLAGS="-O2 -D_FORTIFY_SOURCE=\\\$fortify_level" meson setup /tmp/fortify -Dgtk_doc=false --werror +meson test -C /tmp/fortify/ -v --num-processes=1 EOG EOF