• Carlos Ramos Carreño's avatar
    Fix non-constant initializer error in libuuid. · 3cd477ca
    Carlos Ramos Carreño authored
    Compiling libuuid was failing with the following error:
    
    ```c
    libuuid/src/gen_uuid.c: In function 'uuid_generate_time_generic':
    libuuid/src/gen_uuid.c:536:33: error: initializer element is not constant
      THREAD_LOCAL int  cache_size = cs_min;
    ```
    
    The error was previously detected, and a fix was provided in
    52abdf6a , where the GCC minimum version
    was increased to 8 (GCC version 8 supports using const-declared
    variables as constant expressions in some cases).
    
    Unfortunately, the solution did not work as the `min_version` field of
    the `[gcc]` section was being overwritten by its value in
    `component/defaults.cfg`.
    This is because `util-linux` (where libuuid config is located) is a
    transient dependence of `defaults.cfg` through `python3`.
    
    Fortunately, the error is already [patched upstream](https://github.com/util-linux/util-linux/commit/07e5c29d501c19e7af84fecb5915e0f9f94cb49f)
    in version 2.40.1, so we can just upgrade the library to the latest
    version instead, which we do here.
    3cd477ca
buildout.cfg 1.92 KB