Package Details: protonmail-bridge 3.10.0-1

Git Clone URL: https://aur.archlinux.org/protonmail-bridge.git (read-only, click to copy)
Package Base: protonmail-bridge
Description: Integrate ProtonMail paid account with any program that supports IMAP and SMTP (Qt desktop application)
Upstream URL: https://github.com/ProtonMail/proton-bridge
Keywords: bridge email mail protonmail protonmail-bridge
Licenses: GPL-3.0-only
Submitter: aimileus
Maintainer: ali.molaei (PMBridge-Devs, BenTheTechGuy, carsme)
Last Packager: BenTheTechGuy
Votes: 106
Popularity: 2.69
First Submitted: 2018-03-02 16:03 (UTC)
Last Updated: 2024-03-21 17:22 (UTC)

Pinned Comments

carsme commented on 2023-12-08 22:34 (UTC) (edited on 2023-12-08 22:35 (UTC) by carsme)

NOTICE: This pkgbase is now produces two packages:

  • protonmail-bridge-core: Containing the core daemon & CLI program.
  • protonmail-bridge: Containing the Qt desktop application.

The second package depends on the first. If you don't have a need for the desktop application, you can now choose to only install protonmail-bridge-core.

This packaging change should be seamless and no action should be required before or after the upgrade.

Thanks to @ali.molaei and @BenTheTechGuy for the feedback regarding this change!

bthompson commented on 2021-06-17 04:13 (UTC)

Just having pass installed with a key set up wasn't enough for me, I had to follow this: https://pychao.com/2020/06/10/update-on-using-protonmail-bridge-on-headless-wordpress-linux-servers/

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 27 Next › Last »

carsme commented on 2023-12-10 13:27 (UTC)

@Yutsuten The source for both protonmail-bridge-core and protonmail-bridge is https://github.com/ProtonMail/proton-bridge, so yes they have the same clone URL.

For a split package (see https://man.archlinux.org/man/PKGBUILD.5#PACKAGE_SPLITTING) there is no option to build just one of the packages, you always have to build all packages defined the PKGBUILD and as such you need the makedepends for all packages. So sentry-native is not a dependency to protonmail-bridge-core but you need it when building the package.

Yutsuten commented on 2023-12-10 05:06 (UTC)

Question. protonmail-bridge-core and protonmail-bridge have the same Git Clone URL, is that correct? Also, is sentry-native (aur) needed for protonmail-bridge-core? In a previous message it was written that the dependencies would be only glib2 glibc libsecret. I'm confused.

carsme commented on 2023-12-09 07:15 (UTC)

@BenTheTechGuy, That's confirmation enough the test seems to be flaky, pushed a new pkgrel where it is ignored. Thanks!

BenTheTechGuy commented on 2023-12-09 07:06 (UTC)

I experienced the same error, but only on one of my computers.

carsme commented on 2023-12-09 07:04 (UTC)

@catniptwinz Thanks for reporting. Unfortunately I cannot reproduce this test failure, could you try building in a clean chroot and see if it fails there too?

catniptwinz commented on 2023-12-08 23:42 (UTC)

Build fails here for both 3.6.1-3 and 3.6.1-4 due to error in check():

?       github.com/ProtonMail/proton-bridge/v3/internal/telemetry/mocks [no test files]
time="2023-12-08T18:35:18-05:00" level=info msg="Heartbeat sent" metrics="{bridge.any.usage bridge_heartbeat {1} {on on off off off off ssl ssl default default default default 1.2.3 10}}" pkg=telemetry
--- FAIL: TestHeartbeat_already_sent_heartbeat (0.00s)
    heartbeat.go:158: Unexpected call to *mocks.MockHeartbeatManager.SendHeartbeat([context.Background 0xc0001122d8]) at github.com/ProtonMail/proton-bridge/v3/internal/telemetry/heartbeat.go:158 because: there are no expected calls of the method "SendHeartbeat" for that receiver
FAIL
FAIL    github.com/ProtonMail/proton-bridge/v3/internal/telemetry   0.016s

As expected, the package builds if github.com/ProtonMail/proton-bridge/v3/internal/telemetry is added to the list of tests to skip in check(). Prior versions of the package have built correctly.

carsme commented on 2023-12-08 22:34 (UTC) (edited on 2023-12-08 22:35 (UTC) by carsme)

NOTICE: This pkgbase is now produces two packages:

  • protonmail-bridge-core: Containing the core daemon & CLI program.
  • protonmail-bridge: Containing the Qt desktop application.

The second package depends on the first. If you don't have a need for the desktop application, you can now choose to only install protonmail-bridge-core.

This packaging change should be seamless and no action should be required before or after the upgrade.

Thanks to @ali.molaei and @BenTheTechGuy for the feedback regarding this change!

ali.molaei commented on 2023-12-08 20:54 (UTC)

@BenTheTechGuy try unchecking and rechecking the autostart in proton options, I think it fixes it

@carsme I'm OK with the changes, thank you for your work

BenTheTechGuy commented on 2023-12-08 20:14 (UTC) (edited on 2023-12-08 20:16 (UTC) by BenTheTechGuy)

Looks good. Then we can send a package merge request for protonmail-bridge-nogui and set protonmail-bridge-core to provide it once that is accepted.

The new build system works great, except one thing I noticed: the bridge doesn't start at boot if I enable that in settings anymore. Maybe an init script missing? It could be solved with a simple systemd service file, but I think it would be good to integrate it with the GUI setting like how it worked before.

carsme commented on 2023-12-08 17:09 (UTC)

@ali.molaei, @BenTheTechGuy, Revised the suggested change a bit, would you accept the following?

$ pacman -Qi protonmail-bridge
Name            : protonmail-bridge
Version         : 3.6.1-4
Description     : Integrate ProtonMail paid account with any program that supports IMAP and SMTP (Qt desktop application)
...
Depends On      : protonmail-bridge-core  abseil-cpp  gcc-libs  glibc  grpc  hicolor-icon-theme  protobuf  qt6-base  qt6-declarative  qt6-svg  sentry-native
Optional Deps   : qt6-wayland: Wayland support [installed]
$ pacman -Qi protonmail-bridge-core
Name            : protonmail-bridge-core
Version         : 3.6.1-4
Description     : Integrate ProtonMail paid account with any program that supports IMAP and SMTP (core executable and daemon)
...
Depends On      : glib2  glibc  libsecret
Optional Deps   : gnome-keyring: gnome-keyring support [installed]
                  org.freedesktop.secrets: Applications that support Freedesktop secrets api [installed]
                  pass: pass support [installed]
Required By     : protonmail-bridge

Both built from this PKGBUILD.

This change will be a seamless upgrade, require no action from users and naming would remain in sync with the -bin package. Installing or upgrading protonmail-bridge after this change will result in exactly the same files as before, just that the core daemon and CLI will be installed as the dependency protonmail-bridge-core. It enable us to accommodate CLI-only users without needing a separate -nogui package that someone has to maintain.