Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thunderbird: enable official branding #36449

Closed
wants to merge 1 commit into from

Conversation

jerith666
Copy link
Contributor

as was done for firefox in ce08581

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@vcunat
Copy link
Member

vcunat commented Mar 7, 2018

@sylvestre: I think we would better get explicit permission for Thunderbird as well.

@vcunat vcunat added this to the 18.03 milestone Mar 7, 2018
@vcunat vcunat added the 9.needs: port to stable A PR needs a backport to the stable release. label Mar 7, 2018
@lukateras
Copy link
Member

Could we perhaps get permission from @sylvestre or @garbas?

Build options: https://github.com/nixos/nixpkgs/blob/18.03/pkgs/applications/networking/mailreaders/thunderbird/default.nix#L55

No patches are currently being applied.

@sylvestre
Copy link

Would it be possible to decrease a bit the list of specific configure option?
Like --disable-pulseaudio, nss, nspr, necko-wifi, disable-tests?

@lukateras
Copy link
Member

lukateras commented Apr 14, 2018

OK! I'll open a separate pull request that removes --disable-pulseaudio, --disable-tests, --disable-necko-wifi, and --disable-alsa, test that, and ask you to re-evaluate when it gets merged.

On --with-system-nss: it would be preferable to leave it as is because we apply some patches on top of NSS. Generally, NixOS uses system libraries and not ones that are bundled with the package.

@sylvestre
Copy link

please keep disable-alsa.
In general, please do like Firefox on Debian is doing (including using nss).

I know distro like to use system libraries (I am a debian developer myself) but we (Mozilla) prefer to have the exact library... especially with security libs like nss.

@lukateras
Copy link
Member

lukateras commented Apr 14, 2018

please keep disable-alsa.

ALSA is off by default, so the switch has no effect. Excerpt from mozilla/old-configure.in found in the release tarball:

MOZ_ARG_ENABLE_BOOL(alsa,
[  --enable-alsa          Enable Alsa support],
   MOZ_ALSA=1,
   MOZ_ALSA=)

if test -n "$MOZ_ALSA"; then
    PKG_CHECK_MODULES(MOZ_ALSA, alsa, ,
         [echo "$MOZ_ALSA_PKG_ERRORS"
          AC_MSG_ERROR([Need alsa for audio output on Linux. (On Ubuntu, you might try installing the package libasound2-dev.)])])
fi

AC_SUBST(MOZ_ALSA)

In general, please do like Firefox on Debian is doing (including using nss).

My idea was to base flags on mozconfig found in Thunderbird packages on Debian and Fedora. I will also check mozconfig for Firefox on Debian :-)

I know distro like to use system libraries (I am a debian developer myself) but we (Mozilla) prefer to have the exact library... especially with security libs like nss.

We have the following out-of-tree patch for NSS: https://github.com/NixOS/nixpkgs/blob/18.03/pkgs/development/libraries/nss/85_security_load.patch
As I understand, this patch fixes CA root certificate discovery on NixOS. We carry that patch at least from 2012, so it seems it's not upstreamable. It would be hard to keep up with patching and rebasing this for every app whenever NSS bundled with it is bumped.

It makes sense to bundle all libraries on Debian, where stable packages may be dated, but NixOS is a bleeding-edge distro. Security-related updates are strongly prioritized. And if we update NSS system-wide, all Gecko-based applications can benefit from this, and we don't have to go and bump every and each one of them (which is also error-prone, and depends on upstream cutting a new release).

And in Firefox package (now with official branding, thanks to you!) we also use system NSS and NSPR, the only Firefox-based browser exempt from this is Tor, because they have out-of-tree patches to NSS: https://github.com/NixOS/nixpkgs/blob/18.03/pkgs/applications/networking/browsers/firefox/common.nix#L160

Hope that's reasonable.

@oxij
Copy link
Member

oxij commented Apr 16, 2018 via email

@lukateras
Copy link
Member

Thunderbird might need to play sound on certain actions (sending mail, archiving, receiving new mail). There are addons that add more sounds, like ToneQuilla.

PulseAudio is the configuration supported by upstream.

@lukateras
Copy link
Member

Superseded by #55026.

@lukateras lukateras closed this Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants