Skip to content
Snippets Groups Projects
  1. Jan 12, 2021
    • Dan Callahan's avatar
      Fix failures in Debian packaging (#9079) · fa6deb29
      Dan Callahan authored
      Debian package builds were failing for two reasons:
      
       1. Python versions prior to 3.7 throw exceptions when attempting to print
          Unicode characters under a "C" locale. (#9076)
      
       2. We depended on `dh-systemd` which no longer exists in Debian Bullseye, but
          is necessary in Ubuntu Xenial. (#9073)
      
      Setting `LANG="C.UTF-8"` in the build environment fixes the first issue.
      See also: https://bugs.python.org/issue19846
      
      
      
      The second issue is a bit trickier. The dh-systemd package was merged into
      debhelper version 9.20160709 and a transitional package left in its wake.
      
      The transitional dh-systemd package was removed in Debian Bullseye.
      
      However, Ubuntu Xenial ships an older debhelper, and still needs dh-systemd.
      
      Thus, builds were failing on Bullseye since we depended on a package which had
      ceased existing, but we couldn't remove it from the debian/control file and our
      build scripts because we still needed it for Ubuntu Xenial.
      
      We can fix the debian/control issue by listing dh-systemd as an alternative to
      the newer versions of debhelper. Since dh-systemd declares that it depends on
      debhelper, Ubuntu Xenial will select its older dh-systemd which will in turn
      pull in its older debhelper, resulting in no change from the status quo. All
      other supported releases will satisfy the debhelper dependency constraint and
      skip the dh-systemd alternative.
      
      Build scripts were fixed by unconditionally attempting to install dh-systemd on
      all releases and suppressing failures.
      
      Once we drop support for Ubuntu Xenial, we can revert most of this commit and
      rely on the version constraint on debhelper in debian/control.
      
      Fixes #9076
      Fixes #9073
      
      Signed-off-by: default avatarDan Callahan <danc@element.io>
      fa6deb29
  2. Dec 09, 2020
  3. Dec 04, 2020
    • Jordan Bancino's avatar
      Remove version pin prometheus_client dependency (#8875) · 295c209c
      Jordan Bancino authored
      This removes the version pin of the `prometheus_client` dependency, in direct response to #8831. If merged, this will close #8831 
      
      As far as I can tell, no other changes are needed, but as I'm no synapse expert, I'm relying heavily on CI and maintainer reviews for this. My very primitive test of synapse with prometheus_client v0.9.0 on my home server didn't bring up any issues, so we'll see what happens.
      
      Signed-off-by: Jordan Bancino
      295c209c
  4. Nov 17, 2020
  5. Nov 02, 2020
  6. Oct 11, 2020
  7. Oct 09, 2020
  8. Aug 26, 2020
  9. Aug 24, 2020
  10. Aug 11, 2020
    • Erik Johnston's avatar
      Move setting of Filter into code. · 0304ad0c
      Erik Johnston authored
      We do this to prevent foot guns. The default config uses a MemoryFilter,
      but users are free to change to logging to files directly. If they do
      then they have to ensure to set the `filters: [context]` on the right
      handler, otherwise records get written with the wrong context.
      
      Instead we move the logic to happen when we generate a record, which is
      when we *log* rather than *handle*.
      
      (It's possible to add filters to loggers in the config, however they
      don't apply to descendant loggers and so they have to be manually set on
      *every* logger used in the code base)
      0304ad0c
  11. Jul 17, 2020
  12. Jul 06, 2020
  13. Jun 03, 2020
  14. May 22, 2020
  15. May 19, 2020
  16. May 03, 2020
  17. Feb 18, 2020
  18. Feb 12, 2020
  19. Nov 22, 2019
  20. Nov 20, 2019
  21. Oct 30, 2019
  22. Oct 28, 2019
  23. Oct 18, 2019
  24. Sep 19, 2019
    • Michael Kaye's avatar
      Docker: support SYNAPSE_WORKER envvar (#6058) · 2def5ea0
      Michael Kaye authored
      * Allow passing SYNAPSE_WORKER envvar
      
      * changelog.d
      
      * Document SYNAPSE_WORKER.
      
      Attempting to imply that you don't need to change this default
      unless you're in worker mode.
      
      Also aware that there's a bigger problem of attempting to document
      a complete working configuration of workers using docker, as we
      currently only document to use `synctl` for worker mode, and synctl
      doesn't work that way in docker.
      2def5ea0
  25. Sep 03, 2019
  26. Aug 28, 2019
  27. Jul 29, 2019
  28. Jul 17, 2019
    • Richard van der Hoff's avatar
      Improve `Depends` specs in debian package. (#5675) · 1def2981
      Richard van der Hoff authored
      This is basically a contrived way of adding a `Recommends` on `libpq5`, to fix #5653.
      
      The way this is supposed to happen in debhelper is to run
      `dh_shlibdeps`, which in turn runs `dpkg-shlibdeps`, which spits things out
      into `debian/<package>.substvars` whence they can later be included by
      `control`.
      
      Previously, we had disabled `dh_shlibdeps`, mostly because `dpkg-shlibdeps`
      gets confused about PIL's interdependent objects, but that's not really the
      right thing to do and there is another way to work around that.
      
      Since we don't always use postgres, we don't necessarily want a hard Depends on
      libpq5, so I've actually ended up adding an explicit invocation of
      `dpkg-shlibdeps` for `psycopg2`.
      
      I've also updated the build-depends list for the package, which was missing a
      couple of entries.
      1def2981
  29. Jul 12, 2019
  30. Jul 03, 2019
  31. Jul 02, 2019
  32. Jun 27, 2019
  33. Jun 26, 2019
Loading