From 3e1f1edde90c4d8286837ac5864111df30bf1275 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 30 Sep 2018 17:45:39 +0000 Subject: Fix clang build: rewrite avltreeb into avltreen, requires new skalibs Thanks John Regan for the report. His fix idea duplicated the pointers to storage and freelist; there's no way to support a C99 avltreeb without duplicating the avltreen functionality, so I ended up scrapping avltreeb in skalibs. --- AUTHORS | 1 + INSTALL | 2 +- NEWS | 6 ++++++ doc/index.html | 4 ++-- doc/upgrade.html | 6 ++++++ package/info | 2 +- src/minutils/s6-ps.c | 15 +++++++-------- 7 files changed, 24 insertions(+), 12 deletions(-) diff --git a/AUTHORS b/AUTHORS index 14435b4..3d97e7a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,6 +4,7 @@ Main author: Contributors: Eric Le Bihan Luis Ressel + John Regan Thanks to: Dan J. Bernstein diff --git a/INSTALL b/INSTALL index 6a6a081..7b69967 100644 --- a/INSTALL +++ b/INSTALL @@ -6,7 +6,7 @@ Build Instructions - A Linux-based system with a standard C development environment - GNU make version 3.81 or later - - skalibs version 2.7.0.0 or later: http://skarnet.org/software/skalibs/ + - skalibs version 2.8.0.0 or later: http://skarnet.org/software/skalibs/ This software is Linux-specific. It will run on a Linux kernel, version 3.5 or later. diff --git a/NEWS b/NEWS index 6581540..0a63228 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ Changelog for s6-linux-utils. +In 2.5.0.1 +---------- + + - Build fix for clang. + + In 2.5.0.0 ---------- diff --git a/doc/index.html b/doc/index.html index 98e43a5..521bf0b 100644 --- a/doc/index.html +++ b/doc/index.html @@ -34,7 +34,7 @@ The Linux kernel must be 3.5 or later.
  • GNU make, version 3.81 or later
  • skalibs version -2.7.0.0 or later. It's a build-time requirement. It's also a run-time +2.8.0.0 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • @@ -50,7 +50,7 @@ library.
    • The current released version of s6-linux-utils is -2.5.0.0.
    • +2.5.0.1.
    • Alternatively, you can checkout a copy of the s6-linux-utils git repository: diff --git a/doc/upgrade.html b/doc/upgrade.html index 426157c..cd0a5d3 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,6 +18,12 @@

      What has changed in s6-linux-utils

      +

      in 2.5.0.1

      + +
        +
      • skalibs dependency bumped to 2.8.0.0.
      • +
      +

      in 2.5.0.0

        diff --git a/package/info b/package/info index 919a1fd..befde22 100644 --- a/package/info +++ b/package/info @@ -1,4 +1,4 @@ package=s6-linux-utils -version=2.5.0.0 +version=2.5.0.1 category=admin package_macro_name=S6_LINUX_UTILS diff --git a/src/minutils/s6-ps.c b/src/minutils/s6-ps.c index bba973b..d6a69a4 100644 --- a/src/minutils/s6-ps.c +++ b/src/minutils/s6-ps.c @@ -286,20 +286,19 @@ int main (int argc, char const *const *argv) /* Order the processes for display */ { - AVLTREEB_TYPE(n+1) pidtree ; - avltreeb_init(&pidtree, n+1, &pid_dtok, &uint32_cmp, p) ; + AVLTREEN_DECLARE_AND_INIT(pidtree, n+1, &pid_dtok, &uint32_cmp, p) ; for (i = 0 ; i < n ; i++) { if (needstat && !s6ps_statparse(p+i)) strerr_diefu1sys(111, "parse process stats") ; - if (!avltreeb_insert(&pidtree, i)) - strerr_diefu1sys(111, "avltreeb_insert") ; + if (!avltreen_insert(&pidtree, i)) + strerr_diefu1sys(111, "avltreen_insert") ; } - if (!avltreeb_insert(&pidtree, n)) - strerr_diefu1sys(111, "avltreeb_insert") ; + if (!avltreen_insert(&pidtree, n)) + strerr_diefu1sys(111, "avltreen_insert") ; - if (flagtree) s6ps_otree(p, n+1, &pidtree.info, orderedlist) ; - else avltreeb_iter_nocancel(&pidtree, avltreeb_totalsize(&pidtree), &fillo_notree, orderedlist) ; + if (flagtree) s6ps_otree(p, n+1, &pidtree, orderedlist) ; + else avltreen_iter_nocancel(&pidtree, avltreen_totalsize(&pidtree), &fillo_notree, orderedlist) ; } -- cgit v1.2.3