Skip to content
Snippets Groups Projects
  1. Feb 26, 2021
    • Simon McVittie's avatar
      Merge branch 'wip/drirc' into 'master' · 652e8ab1
      Simon McVittie authored
      runtime: Bind the drirc settings from the provider
      
      Closes #60
      
      See merge request !253
      652e8ab1
    • Ludovico de Nittis's avatar
      runtime: Bind the drirc settings from the provider · 6092d653
      Ludovico de Nittis authored
      
      If we are using the provider graphics stack, including mesa, we should
      also bind the drirc settings. Otherwise we would end up using the older
      settings from the runtime.
      
      The default configuration file is expected to be located under
      `/usr/share/drirc.d`, with an additional system-wide configuration file
      called `/etc/drirc` and a per-user configuration `$HOME/.drirc`.
      
      The only one that has been left out by this commit is the one that comes
      from `$HOME`, because we normally already share the whole home
      directory, so we expect it to be already available in the container.
      
      Fixes: #60
      
      Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
      6092d653
    • Ludovico de Nittis's avatar
      runtime: Generalize the libdrm functions · 7b61f0a4
      Ludovico de Nittis authored
      
      By generalizing pv_runrime_collect_libdrm_data() and
      pv_runtime_finish_libdrm_data() we will be able to reuse these functions
      when we need to import other directories that are expected to be located
      under `/usr/share`, like `drirc.d`.
      
      Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
      7b61f0a4
    • Ludovico de Nittis's avatar
      Merge branch 'wip/message-prefix' into 'master' · 79fb005b
      Ludovico de Nittis authored
      pressure-vessel: Put apt-style severity prefixes on messages
      
      See merge request !254
      79fb005b
    • Simon McVittie's avatar
      pressure-vessel: Put apt-style severity prefixes on messages · dbf21961
      Simon McVittie authored
      
      These indicate which lines are harmless and which lines are really bad,
      without taking up too much space.
      
      The mapping from GLib log level to message is not 100% obvious, because
      G_LOG_LEVEL_ERROR is "worse than" an error. We diagnose "can't happen"
      situations (assertion failures, etc.) as "Internal error". Ideally,
      users should never see these: they indicate a bug.
      
      For situations that will cause pressure-vessel to exit with an error,
      introduce a new log level flag PV_LOG_LEVEL_FAILURE and map it to the
      apt-style "E:" prefix. pv_log_failure() is a convenience macro to log
      at level PV_LOG_LEVEL_FAILURE. Conceptually this is a fatal error, but
      it's a fatal error prompted by something external to pressure-vessel,
      for which we want pressure-vessel to clean up "nicely" and exit
      gracefully, even though it's going to fail - so we can't use g_error()
      for this.
      
      In the parts of main() that involve parsing command-line arguments,
      add usage_error() as syntactic sugar for pv_log_failure(). I might
      eventually turn these into G_OPTION_ERROR_FAILED as we factor out
      more of main() into helper functions, but for now they're handled
      separately.
      
      For less-severe log levels, use single-letter prefixes similar to apt's.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      dbf21961
  2. Feb 25, 2021
  3. Feb 24, 2021
  4. Feb 23, 2021
Loading