Bug 270565 - electron* ports are blacklisted from the build
Summary: electron* ports are blacklisted from the build
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Package Infrastructure (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Port Management Team (mail alias)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2023-03-31 17:39 UTC by Felix Palmen
Modified: 2026-11-12 10:17 UTC (History)
32 users (show)

See Also:


Attachments
Screenshot: Signal 7.6.0 for FreeBSD version 1303001 (13.3-BETA3), started from the command line on FreeBSD 1500018 (15.0-CURRENT) (139.48 KB, image/png)
2024-05-17 07:46 UTC, devnull
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Palmen freebsd_committer freebsd_triage 2023-03-31 17:39:27 UTC
Today, I stumbled over this thread on forums:

https://forums.freebsd.org/threads/is-vscode-broken.88334/

As packages *temporarily* missing is pretty common, I decided to investigate a bit, only to find the reason for editors/vscode missing from repositories is that some electron ports (including devel/electron19) are currently blacklisted.

Asking about it on IRC, I learned they took excessively long time to build, sometimes even failing with a "runaway process". Still they build fine for me locally, and someone else on IRC confirmed.

So there seems to be a "hidden issue" that hopefully could be solved. Furthermore, as long as "blacklisting" is the only option, I kindly ask to find some solution to make that transparent to package users. IMHO, just leaving them with missing packages and no accessible information about it is less than ideal.
Comment 1 Felix Palmen freebsd_committer freebsd_triage 2023-03-31 18:20:25 UTC
Also adding tagattie as the maintainer of these ports, just in case he has some idea what exactly could go wrong.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2023-04-01 04:19:12 UTC
Assign to maintainer.
Comment 3 Felix Palmen freebsd_committer freebsd_triage 2023-04-01 05:38:37 UTC
(In reply to Mark Linimon from comment #2)
How exactly can the maintainer do anything about local configuration decisions on the package builders?
Comment 4 Felix Palmen freebsd_committer freebsd_triage 2023-04-01 05:42:31 UTC
I missed CC was changed as well, so changing assignee back myself now:

It seems there was a misunderstanding, this PR is about some local configuration on the package builders that blacklist electron*. I only added tagattie as the maintainer because he might be able to give some input.

I'm not 100% sure the configuration of the builders belongs to "Package Infrastructure", so please correct the assignment if needed, but it's certainly not a problem with an individual port or something a port maintainer could solve.
Comment 5 Jan Beich freebsd_committer freebsd_triage 2023-08-29 21:14:53 UTC
^Triage: Did you mean pkgmgr@ (as Assignee) instead of pkg-manager@ ? According to /etc/aliases on freefall the latter doesn't exist. As pkgmgr@ has no assigned bugs (even closed) you may have more luck going through portmgr@ first.

See also https://www.freebsd.org/administration/#t-pkgmgr
https://lists.freebsd.org/archives/freebsd-ports/2022-October/002788.html
Comment 6 Felix Palmen freebsd_committer freebsd_triage 2023-08-30 06:10:59 UTC
(In reply to Jan Beich from comment #5)
Interesting! It's too long ago now to remember how I ended up with that assignee, maybe got it from IRC and failed to verify ...

Well, it's certainly about the build cluster configuration, but based on your comment, I'll now reassign it to portmgr. Thanks!
Comment 7 devnull freebsd_committer freebsd_triage 2023-09-12 03:05:08 UTC
<http://beefy18.nyi.freebsd.org/build.html?mastername=main-amd64-default&build=p563c845130a1_sfafb03ab42> in progress, has: 

* four electron ports listed (not blacklisted), queued, not yet building or built.

Context (from a log of success for a different port): 

> building for: FreeBSD main-amd64-default-job-02 15.0-CURRENT FreeBSD 15.0-CURRENT 
> 1500000 amd64
Comment 8 Jan Beich freebsd_committer freebsd_triage 2023-10-24 14:09:04 UTC
(In reply to Graham Perrin from comment #7)
> * four electron ports listed (not blacklisted), queued, not yet building or built.

That was probably a temporary experiment to see current status. 124amd64 and 124i386 still fail in "build/timeout" because the assigned machines are very slow e.g., full rebuild on 124amd64 takes 170:05:09 (7 days) vs. 132amd64 takes 100:25:10 (4 days). For some reason, www/*chromium are not blacklisted despite hitting the same issue as "runaway_process".

https://pkg-status.freebsd.org/beefy18/build.html?mastername=main-amd64-default&build=pbb08d6248767_s04c8bfc176
https://pkg-status.freebsd.org/beefy16/build.html?mastername=132amd64-default&build=da42697af50c
https://pkg-status.freebsd.org/beefy6/build.html?mastername=124amd64-default&build=da42697af50c
https://pkg-status.freebsd.org/beefy15/build.html?mastername=132i386-default&build=08943441f26e
https://pkg-status.freebsd.org/beefy5/build.html?mastername=124i386-default&build=ecb3f8a4918b

vs. (blacklisted again)

https://pkg-status.freebsd.org/beefy18/build.html?mastername=main-amd64-default&build=pf36f3675dc48_sbb679b0c49
https://pkg-status.freebsd.org/beefy16/build.html?mastername=132amd64-default&build=b18316019742
https://pkg-status.freebsd.org/beefy6/build.html?mastername=124amd64-default&build=1fa9afdc10b7
https://pkg-status.freebsd.org/beefy15/build.html?mastername=132i386-default&build=f36f3675dc48
https://pkg-status.freebsd.org/beefy5/build.html?mastername=124i386-default&build=f36f3675dc48
Comment 9 Mikael Urankar freebsd_committer freebsd_triage 2023-11-03 13:22:05 UTC
@portsmgr: why are all the electron ports blacklisted on the builder? I have *several* complaints from users because signal-desktop is not available as a package
Comment 10 Antoine Brodin freebsd_committer freebsd_triage 2023-11-03 13:36:38 UTC
At the moment we do not have resources to build 4 versions of electron (not enough disk + not enough cpu + not enough ram).
If there was only 1 version in the ports tree, maybe this could be reconsidered.
Comment 11 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-11-03 14:02:39 UTC
I have removed electron22 yesterday so it makes 3 now. electron26 do not have any consumers so can be easily ignored. The rest of the consumers are as following:

- editors/vscode(electron25)
- net-im/signal-desktop(electron25)
- textproc/obsidian(electron24)

So I think it would be better to give electron25 a chance and see how it goes.

And on the other hand also check if obsidian can be updated to use electron25.
Comment 12 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-11-03 14:10:19 UTC
Looks like obsidian does not build in the cluster also due to the licensing issues and can be safely ignored.
Comment 13 Mikael Urankar freebsd_committer freebsd_triage 2024-02-07 09:26:23 UTC
(In reply to Muhammad Moinur Rahman from comment #12)
net-im/signal-desktop and editors/vscode now use electron27

graphics/drawio requires electron25 (latest release 23.0.2 requires electron28)
textproc/logseq requires electron25 (latest release 0.10.6 requires electron27)
www/vieb        requires electron25 (latest release 11.0.0 requires electron28)

Can we unlock electron27 please?
Comment 14 Mikael Urankar freebsd_committer freebsd_triage 2024-02-10 10:04:12 UTC
signal-desktop now uses electron28
Comment 15 Snake Doc 2024-03-06 13:03:51 UTC
Can electron27 and electron28 be whitelisted on the cluster?  

editors/vscode needs electron27, and net-im/signal-desktop needs electron28.

Thanks!
Comment 16 Antoine Brodin freebsd_committer freebsd_triage 2024-03-06 13:10:58 UTC
No, there is not enough resource to build multiple versions of electron.
Comment 17 Snake Doc 2024-03-08 01:16:01 UTC
What versions of electron are whitelisted on the cluster now?  electron25 is EOL, and electron26 is EOL on 2024/04/16.  Shouldn't electron27 and electron28 be whitelisted now that the two oldest versions are either no longer being supported or soon to be unsupported?

I get that electron is a heavy/intensive package to build, but being able to have updates to packages that require both (current) versions seems like it'd be advantageous to FreeBSD to have those dependent packages available for users.

I appreciate everyones support and time devoted to making FreeBSD and packages available!
Comment 18 Antoine Brodin freebsd_committer freebsd_triage 2024-03-08 08:15:41 UTC
We do not have resources to build 2 versions of electron,  only 1.
Please coordinate yourself to use only 1 in ports depending on electron.
Comment 19 Mikael Urankar freebsd_committer freebsd_triage 2024-04-28 14:40:00 UTC
(In reply to Antoine Brodin from comment #18)
It's not possible to use the same electron version between ports due to API incompatibilities.
Again, I received a lot of complains from our user base because signal-desktop is not available as a package.
I'm asking again to unlock electron29 on the builder.
Comment 20 Alexander Burke 2024-04-28 15:41:00 UTC
(In reply to Antoine Brodin from comment #18)

Hello,

This has broken all Electron-dependent packages, especially including net-im/signal-desktop.

Signal requires that paired desktops ("linked devices") access Signal at least every 30 days [0], failing which their pairing is lost and the entire message history from last connection is also lost.

As a result, users who are trying trying to heed the common advice of not mixing ports and packages are running out of time before data loss will occur.

As Mikael said, users cannot "coordinate themselves"; apps may not work correctly if built with a version of Electron other than what is intended by the developer.

Can you please stop obstructing the building of packages which are important to desktop users of FreeBSD, or should we give up and move back to Linux?

[0]: https://support.signal.org/hc/en-us/articles/360007320551-Linked-Devices
Comment 21 Antoine Brodin freebsd_committer freebsd_triage 2024-04-28 20:23:34 UTC
Hello,
Again, please coordinate to build other electron-dependent ports with electron29.
We don't have enough resources to build multiple versions of electron.  If some users need electron29, they can build it themselves.
Comment 22 Alexander Burke 2024-04-28 20:31:37 UTC
(In reply to Antoine Brodin from comment #21)

Hi Antoine,

How is building Electron 29 myself going to get me any closer to a working package of net-im/signal-desktop?

Thanks in advance.
Comment 23 bsduck 2024-05-07 19:51:30 UTC
(In reply to Alexander Burke from comment #22)

net-im/signal-desktop works fine if you build it as well as the required electron version yourself.

I haven't tested the current signal-desktop version 7.7.0, but I use version 6.48.1_6 which I built last month together with electron28 and it works as expected.

Just be ready for a significant build time. Building electron took about half a day on my hardware.
Comment 24 Alexander Burke 2024-05-07 20:08:47 UTC
(In reply to bsduck from comment #23)

Hello,

Building and installing net-im/signal-desktop as a port would contradict the advice in section 4.5 of the FreeBSD Handbook to avoid mixing ports and packages on the same box, and frankly if FreeBSD wants to be taken seriously as a desktop OS this kind of fsckery needs to not happen. (Plus, if I wanted to build everything from source, I'd be running Gentoo.)

Since there has been no resolution on this issue in time to avoid data loss from Signal becoming unpaired, I've been forced to back up my home folder, wipe FreeBSD, install Linux, and restore the Signal data dir (which, to my great surprise, worked perfectly upon Signal's first launch on Linux, picking up right where it left off under FreeBSD).

Those who obstruct critical-path packages should be ashamed of themselves. (A shiny new $100K cluster that can't handle building two versions of Electron instead of one? Come on.)

As it turns out, ZFSBootMenu works great even with native ZFS encryption, so I was able to entirely avoid the nightmare which is GRUB.

I can't say I didn't try. ¯\_(ツ)_/¯
Comment 25 bsduck 2024-05-07 22:54:37 UTC
(In reply to Alexander Burke from comment #24)

When you know what you're doing, there's nothing wrong with mixing official packages and a few ports you build yourself, as long as you keep both on the same branch (quarterly or latest). This used to be a common problem when most people used portsnap (which can only track latest) together with the default quarterly packages. Nowadays, thanks to git, it is much easier to track a quarterly branch for the ports tree. The warning in section 4.5 of the handbook sounds very much like an exaggeration in today's context.

That being said, I admit that this situation with signal-desktop is an inconvenience that should not happen. But I can live with that, and it will be solved eventually. Good for you if you're happy on Linux, personally it would take much more for me to trade my FreeBSD desktops for penguins ;)
Comment 26 Patrizia Kaye 2024-05-08 19:05:43 UTC
I also find it quite inconvenient to build electron from ports and every time there's a version bump etc, so I avoid installing anything from ports that needs it.

If there are not enough hardware resources to provide different versions what can we as users do to help solve the fundamental problem?

I'm thinking along the lines of either increasing the resources (hardware donations? cloud compute credits? smiling sweetly at companies?) or distributing the package building differently. I'm sure a number of us in this thread would be happy to build electron from source if it meant that the package was available to other users.
Comment 27 Joseph Mingrone freebsd_committer freebsd_triage 2024-05-08 19:19:25 UTC
Antoine, if I'm not mistaken, we have new builders available in Chicago beefy{20,21,22}.  Are we closer to being able to remove devel/electron28 and devel/electron29 from the blacklist (at least for 140amd6) so that we can have packages for net-im/signal-desktop and devel/vscode?  If not, what do we need to make this happen?
Comment 28 Antoine Brodin freebsd_committer freebsd_triage 2024-05-08 19:28:01 UTC
(In reply to Joseph Mingrone from comment #27)
I think I will blacklist electron25 and un-blacklist electron28.  If only upstreams/maintainers of vscode and signal agreed to use a single version of electron...

I currently use beefy21 and beefy22 for exp-runs as the previous exp-run builders were more than 11 years old.
Comment 29 Philip Paeps freebsd_committer freebsd_triage 2024-05-09 01:16:34 UTC
We need more builders.

While we have three new package builders in Chicago, half of the production builders we have are still well past their use-by date.

beefy11-beefy12 were installed in January 2013.
beefy13-beefy16 were installed in October 2016.

beefy17-beefy19 were installed in 2019 - these are borderline
beefy20-beefy22 were installed in 2024 - these are new

The gohans (pkgexp builders) are a bit younger:

gohan01-gohan03 were installed in 2019
gohan04 was installed in 2020
gohan05 was installed in 2021
gohan06 was installed in 2024

I would say we need at least nine new builders now (replacing beefy11-beefy16).

While I like to replace hardware after three years, five years is probably okay for package builders.  We should be thinking of replacing beefy17-beefy19 next year.

Considering how long it takes to get hardware: if it were up to me, I'd order twelve new package builders right now.
Comment 30 Philip Paeps freebsd_committer freebsd_triage 2024-05-09 01:19:52 UTC
(And I can't count: that should be six new builders to replace beefy11-beefy16 or nine builders to replace beefy11-beefy19.  Having three new gohans to replace gohan01-gohan03 wouldn't hurt either though.  Five years is when they start getting long in the tooth.)
Comment 31 Slawomir Wojciech Wojtczak 2024-05-10 08:33:14 UTC
... and I was recently wondering WHY there is no Signal Desktop in packages for such a LONG time :ASD

Seriously its THAT bad that we need to blacklist quite important packages (Electron) 'just' to have such basic things as Signal Desktop?

Is it not possible to agree on ONE version of Electron to build 'devel/electron29' as dependency for both 'net-im/signal-desktop' and 'devel/vscode'?

It REALLY sucks to NOT have such basic things such as Signal ...

Thanks,
vermaden
Comment 32 devnull freebsd_committer freebsd_triage 2024-05-17 07:46:11 UTC
Created attachment 250717 [details]
Screenshot: Signal 7.6.0 for FreeBSD version 1303001 (13.3-BETA3), started from the command line on FreeBSD 1500018 (15.0-CURRENT)

A few days ago, the maintainer of net-im/signal-desktop kindly made available a package for amd64. A link to the repo, from which I downloaded the one package, was given on page three of 'signalapp / Signal-Desktop' in The FreeBSD Forums: 

- <https://forums.freebsd.org/posts/654633>

Defocusing from Signal, and from any other application that may be affected by package infrastructure constraints, I should draw attention to: 

- <https://wiki.freebsd.org/Bugzilla/DosAndDonts>

In particular, do remember the Golden Rule. 

> treat others as you would like others to treat you — 
>       what you wish upon others, you wish upon yourself …
Comment 33 Misso Works 2024-05-18 16:25:11 UTC
(In reply to Philip Paeps from comment #29)
What can people interested in supporting the addition of more builder machines committers do? Can committers get the foundation to start a fundraising campaign?

This is typically the kind of tangible problem to which people are inspired to contribute (such and such popular can no longer be offered as packages because we lack build machines, help us purchase more).

I feel this is the actionable item required by this bug, otherwise this discussion will keep going circle.
Comment 34 Slawomir Wojciech Wojtczak 2024-05-18 17:59:17 UTC
(In reply to Misso Works from comment #33)

Maybe creation of Flare [1] port would be possible?

[1] https://gitlab.com/schmiddi-on-mobile/flare
Comment 35 Kurt Jaeger freebsd_committer freebsd_triage 2024-05-18 18:21:23 UTC
(In reply to Misso Works from comment #33)
Instead of asking the foundation to start a fundraiser, doing one directly would probably helpful. The question is: what should be the target sum ? 50K US$ ? Higher ? Lower ?
Comment 36 devnull freebsd_committer freebsd_triage 2024-05-21 08:05:24 UTC
(In reply to Slawomir Wojciech Wojtczak from comment #34)

That's off-topic from package infrastructure. Instead, please: 

<https://forums.freebsd.org/threads/93514/>
Comment 37 devnull freebsd_committer freebsd_triage 2024-06-11 22:37:31 UTC
(In reply to Antoine Brodin from comment #28)

> … upstreams/maintainers of vscode and signal …

I don't know about upstream, but we do have devel/electron29 at both 
<https://www.freshports.org/editors/vscode/#requiredbuild> and 
<https://www.freshports.org/net-im/signal-desktop/#requiredbuild>. 

For the former: <https://github.com/FreeBSD/freebsd-ports/commit/e0776945fd6a164ae242bfe211276748999f5e6a#diff-beb3ff4ba9f97b5a693e90fb204e4670b4f4f789b84ad1b12c52456ad64413dbL105-R104> (2024-06-07).

Regards
Comment 38 kaltheat 2024-08-12 08:25:32 UTC
Hi all,

currently, both ports (signal-desktop and vscode) depend on electron30.

What's the show stopper then in this case?

Kind regards
kaltheat
Comment 39 Slawomir Wojciech Wojtczak 2024-08-12 08:54:22 UTC
(In reply to kaltheat from comment #38)

Also would love to get answer to that ...
Comment 40 Philip Paeps freebsd_committer freebsd_triage 2024-08-14 07:08:12 UTC
We have a few new builders going online this week.  I'm not sure if that will let us build multiple versions, but it's worth trying out how long they take.
Comment 41 Slawomir Wojciech Wojtczak 2024-08-14 08:47:27 UTC
(In reply to Philip Paeps from comment #40)

What can be done to have ONE major 'always buildable' version of 'electron' that 'vscode' and 'signal-desktop' depends on - so they will always be built?
Comment 42 Mikael Urankar freebsd_committer freebsd_triage 2024-08-14 14:53:44 UTC
(In reply to kaltheat from comment #38)
I'll update signal-desktop to the latest version "soon", it'll use electron31
Comment 43 Marcus Rohrmoser 2024-08-14 19:26:17 UTC
https://forums.FreeBSD.org/threads/signalapp-signal-desktop.79340/post-667609
> what can I do as someone who relies on Signal-desktop to make sure it is recognised as an important (desktop) application? 

I seccond.
Comment 44 Slawomir Wojciech Wojtczak 2024-08-14 21:14:09 UTC
(In reply to Marcus Rohrmoser from comment #43)

+1

The 'signal-desktop' is also a critically important app for me.
Comment 45 Stephan Lichtenauer 2024-08-15 14:58:05 UTC
(In reply to Philip Paeps from comment #40)
That sounds great.

If that still is not enough compute resources, a fundraising drive by the Foundation would be something I definitely would support (I mean, not just verbally but financially... :-) ) as Signal is also critical for me.
Comment 46 Marcus Rohrmoser 2024-10-12 20:23:35 UTC
thanks for 7.27.0
Comment 47 Mikael Urankar freebsd_committer freebsd_triage 2024-11-22 18:12:13 UTC
Both vscode and signal-desktop use electron32. Can we unblock this version and block v30?
Comment 48 Antoine Brodin freebsd_committer freebsd_triage 2024-11-22 18:18:09 UTC
(In reply to Mikael Urankar from comment #47)
Done for ports main
Comment 49 John Murphy 2025-01-16 16:58:18 UTC
As more of a user than a developer, I'd like to make the point that messenger type applications such as Signal-desktop are often more important than much bigger, more complex applications. Therefore, I'd like to make a plea to make these "side" operations easier to access, update etc. Thanks,
Comment 50 devnull freebsd_committer freebsd_triage 2025-02-18 07:44:51 UTC
<https://github.com/microsoft/vscode/pull/237557>

> chore: update to Electron 34 by deepak1556 · Pull Request #237557 
> · microsoft/vscode

> … Unless we need to revert for major regressions, this change will be 
> available in our 1.98 release in the beginning of March.

PR 237557 fixes two issues, one of which was: 

> Paste no longer works with Electron >= 32.3.0 …
Comment 51 Kurt Jaeger freebsd_committer freebsd_triage 2025-02-18 07:59:39 UTC
(In reply to Graham Perrin from comment #50)
pull request and problem report both use PR, which is ambivalent.
Comment 52 devnull freebsd_committer freebsd_triage 2025-03-19 01:11:07 UTC
Re: comment 50

> chore: update to Electron 34 by deepak1556 · Pull Request #237557 
> · microsoft/vscode

devel/electron34 was added to the ports tree on 14th March. ports 65178207cff60ba99fb1aaa5f2eaff1ef0637882 | <https://github.com/FreeBSD/freebsd-ports/commit/65178207cff60ba99fb1aaa5f2eaff1ef0637882> …
Comment 53 Mikael Urankar freebsd_committer freebsd_triage 2025-03-19 08:05:58 UTC
Both vscode and signal-desktop use electron34. Can we unblock this version please?
Comment 54 Mikael Urankar freebsd_committer freebsd_triage 2025-06-23 07:14:17 UTC
Both vscode and signal-desktop use electron35. Can we unblock this version please?
Comment 55 Antoine Brodin freebsd_committer freebsd_triage 2025-08-22 07:36:13 UTC
The stuff electron35 does during fetch phase is not acceptable and kills the builders.
I am blacklisting it again.
Comment 56 Mikael Urankar freebsd_committer freebsd_triage 2025-08-22 08:38:26 UTC
(In reply to Antoine Brodin from comment #55)
Why is it not acceptable?
Comment 57 Alexander Burke 2025-08-22 09:58:23 UTC
(In reply to Antoine Brodin from comment #55)
You are killing updates for other, quite popular, applications in the process. This is an unacceptable approach from any OS that wishes to be taken seriously as a desktop OS, and in fact it is why I can no longer use FreeBSD on the desktop.

You should ask yourself whether or not you are the right person to be making these decisions; I, for one, believe that you are not.
Comment 58 Hiroki Tagato freebsd_committer freebsd_triage 2025-08-22 10:57:33 UTC
(In reply to Antoine Brodin from comment #55)

I have recently been receiving notification emails on fetch/runaway error of electron35 on i386 platform. However, I didn't know that was "killing" the builders.

Today, I tried to build electron35 on a local i386 poudriere instance and found that a node process stalled during fetch phase and ate up all CPUs until it was killed after 2 hours of no output, which is indeed a problem.

Note: The problem is only on i386 and aarch64/amd64 appear fine.

I will temporarily mark electron ports as BROKEN on i386. So can we keep electron35 alive on other platforms than i386?

I appreciate your efforts to keep the package builders healthy.
Comment 59 Antoine Brodin freebsd_committer freebsd_triage 2025-08-22 11:08:25 UTC
(In reply to Hiroki Tagato from comment #58)
If you mark on i386 in both main and 2025Q3 ,  I can unblacklist it.
Comment 60 commit-hook freebsd_committer freebsd_triage 2025-08-22 11:11:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5541c16e22dab9e19d1cad96f3be31c5941916f

commit a5541c16e22dab9e19d1cad96f3be31c5941916f
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-08-22 11:02:14 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-08-22 11:10:26 +0000

    devel/electron{32,34,35,36,37}: temporarily mark as BROKEN on i386

    In pre-fetch target, a node process tries to fetch necessary node
    modules for building the port. Currently on i386 platform, the process
    stalls and eats up all available CPUs until it is killed, which is a
    problem.

    So temporarily mark electron ports as BROKEN on i386 platform until
    the problem is solved.

    PR:             270565
    Reported by:    antoine, pkg-fallout

 devel/electron32/Makefile | 1 +
 devel/electron34/Makefile | 1 +
 devel/electron35/Makefile | 1 +
 devel/electron36/Makefile | 1 +
 devel/electron37/Makefile | 1 +
 5 files changed, 5 insertions(+)
Comment 61 commit-hook freebsd_committer freebsd_triage 2025-08-22 11:18:05 UTC
A commit in branch 2025Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=13edba1e3cc99b6a1c295e2724c1805b6efb2c4c

commit 13edba1e3cc99b6a1c295e2724c1805b6efb2c4c
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-08-22 11:02:14 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-08-22 11:17:15 +0000

    devel/electron{32,34,35,36,37}: temporarily mark as BROKEN on i386

    In pre-fetch target, a node process tries to fetch necessary node
    modules for building the port. Currently on i386 platform, the process
    stalls and eats up all available CPUs until it is killed, which is a
    problem.

    So temporarily mark electron ports as BROKEN on i386 platform until
    the problem is solved.

    PR:             270565
    Reported by:    antoine, pkg-fallout

    (cherry picked from commit a5541c16e22dab9e19d1cad96f3be31c5941916f)

 devel/electron32/Makefile | 1 +
 devel/electron34/Makefile | 1 +
 devel/electron35/Makefile | 1 +
 devel/electron36/Makefile | 1 +
 4 files changed, 4 insertions(+)
Comment 62 Hiroki Tagato freebsd_committer freebsd_triage 2025-08-22 11:20:20 UTC
(In reply to Antoine Brodin from comment #59)

Done. Please re-enable electron35 at your earliest convenience. Thanks!
Comment 63 Antoine Brodin freebsd_committer freebsd_triage 2025-08-22 11:28:51 UTC
(In reply to Hiroki Tagato from comment #62)
I un-blacklisted electron35
Comment 64 Alexander Burke 2025-08-22 16:21:48 UTC
(In reply to Hiroki Tagato from comment #58)
Thanks for taking the time to look into the actual cause, Hiroki, instead of banhammering the entire Electron port.
Comment 65 Mikael Urankar freebsd_committer freebsd_triage 2025-08-27 08:31:16 UTC
Both vscode and signal-desktop use electron37. Can we unblock this version please?
Comment 66 Hiroki Tagato freebsd_committer freebsd_triage 2025-10-05 11:18:34 UTC
It has been pointed out at the following URL:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290009#c5

that electron37 is blacklisted at the package builders for the quarterly branch (e.g. beefy20).

Can we unblock electron37 on quarterly machines as both vscode and signal-desktop depend on electron37 in 2025Q4.

Thanks!
Comment 67 Paavo-Einari Kaipila 2025-10-05 12:17:53 UTC
Not sure if this is a coincidence, but maintainers of popular electron apps seem to agree that 37 is the one that everybody uses at the moment. I propose some kind of a working group between these maintainers to choose which version is being built on quarterly at any given time and that version is also the one that everybody uses.
Comment 68 Paavo-Einari Kaipila 2025-10-05 14:17:07 UTC
There clearly is some kind of a communication issue here. Build of 35 was recently enabled, while 37 is the one that (popular) other ports use. If we can afford to build just one, that one should be the one covering needs of popular apps people use for work and communication.
Comment 69 Philip Paeps freebsd_committer freebsd_triage 2025-10-06 03:45:38 UTC
Do we really need all these versions?  Are they supported by their upstream projects?  I don't understand why we are spending all this compute time building several versions of the same library.

To say nothing of the storage space on the mirrors.  Remember that, as well as the built binaries, we distribute the source tarballs indefinitely.  This adds up.

Can we pick ONE version of electron* for everything to use please?
Comment 70 Gleb Popov freebsd_committer freebsd_triage 2025-10-06 04:25:34 UTC
(In reply to Philip Paeps from comment #69)
Major Electron releases are ABI and most likely API incompatible. If two consumer ports use different Electron versions, we should have both in Ports. It is an upstream ecosystem problem and we have to cope with it somehow.

Maybe we shouldn't build Electrons that do not have consumers in our Ports. Another idea is to employ ccache for building Electron ports.
Comment 71 Paavo-Einari Kaipila 2025-10-06 14:49:23 UTC
(In reply to Gleb Popov from comment #70)

There aren't very many consumers. All these projects however, are alive and actively developed. If for example, they don't all support 38 the same day, others could wait for a while.
Comment 72 Mark Felder freebsd_committer freebsd_triage 2025-10-29 23:59:34 UTC
I'm in progress of porting net-im/deltachat-desktop which requires electron37 and I have my eye on Joplin and LosslessCut. There are several others in tagattie's repo [0] that should be committed to the tree as well because they're very popular desktop apps.

We need electron and these apps to be packaged on the mirrors. Please don't just write them off because they're a giant pain.

[0] https://github.com/tagattie/FreeBSD-Electron
Comment 73 Mikael Urankar freebsd_committer freebsd_triage 2025-10-30 07:58:28 UTC
(In reply to Mark Felder from comment #72)
I use joplin-desktop daily and it's a PITA to have to build it locally.


@portmgr, @clustermgr:
We build several versions of gcc / llvm which are huge and takes time to build.

Why electron is an exception ?
Comment 74 Antoine Brodin freebsd_committer freebsd_triage 2025-10-30 08:17:45 UTC
(In reply to Mikael Urankar from comment #73)
gcc and llvm don't take a crazy amount of memory and disk space and time, it's not comparable
Comment 75 Paavo-Einari Kaipila 2026-02-12 13:46:11 UTC
Electron37 is being built, while 39 is the one being used by major apps at the moment.
Comment 76 Marcus Rohrmoser 2026-03-18 16:20:53 UTC
I as well would very appreciate to have delta on FreeBSD.
Comment 77 Stephan Lichtenauer 2026-03-19 12:59:58 UTC
(In reply to Marcus Rohrmoser from comment #76)

Same for me.

Is there something the community can do to help make sure that the package builder cluster has enough resources to build packages like DeltaChat or Iridium?

Maybe the project could make it transparent how many additional compute (and thus financial) resources are needed so that an improvement could be funded e.g via the Foundation?
Comment 78 Philip Paeps freebsd_committer freebsd_triage 2026-03-19 13:43:54 UTC
The FreeBSD Foundation does not fund the cluster.  They buy hardware from time to time but they do not pay for clusteradm time.

The Community could try to remind the Foundation that they ought to be funding the clusteradm team but that has historically not been persuasive.

I want to help but I don't have volunteer bandwidth beyond firefighting.
Comment 79 Philip Paeps freebsd_committer freebsd_triage 2026-03-19 13:44:59 UTC
Cc: jrm

Another case structural underfunding to share with Foundation management.
Comment 80 Stephan Lichtenauer 2026-03-19 14:36:58 UTC
(In reply to Philip Paeps from comment #78)

Thanks for your comment!

I understand that here we are indeed as a first step talking about hardware so the blacklisting is no longer necessary? Which would be what the Foundation could support?
Comment 81 devnull freebsd_committer freebsd_triage 2026-03-21 17:34:36 UTC
<https://www.freshports.org/devel/electron39/#packages>: some packages.

<https://pkg-status.freebsd.org/beefy21/build.html?mastername=150amd64-quarterly&build=ede0d846ebed#ignored> (parallel_build:) includes blacklisting of both devel/electron38 _and_ devel/electron39. 

Not complaining, just observing.
Comment 82 Mark Felder freebsd_committer freebsd_triage 2026-03-23 21:33:15 UTC
(In reply to Graham Perrin from comment #81)

So quarterly is currently still blacklisting all the electron versions? I can see that electron39 is now available in the latest package sets. I've just rolled back net-im/deltachat-desktop to electron39 which upstream gave me approval on. The next quarterly is approaching soon, so ideally it will be more widely available at that point in time.
Comment 83 Paavo-Einari Kaipila 2026-03-24 07:53:24 UTC
(In reply to Mark Felder from comment #82)

Quarterly still builds electron37. Most ports have been updated to 39 quite some time ago.
Comment 84 Alexander Burke 2026-03-24 08:55:54 UTC
When someone asks me what's holding back FreeBSD adoption om the desktop, this is the thread I point them to.

I'd probably still be using it on the desktop myself were it not for this.

It's a shame.
Comment 85 Mikael Urankar freebsd_committer freebsd_triage 2026-05-05 07:04:42 UTC
signal-desktop 8.8.0 requires electron41, what am I supposed to do now?
Comment 86 Paavo-Einari Kaipila 2026-05-05 08:24:44 UTC
(In reply to Mikael Urankar from comment #85)

I'd suggest synchronizing update with VScode (+ anything else "high-profile") and broadcasting here when the switch happens. And then another reminder once Q3 gets forked.
Comment 87 Mikael Urankar freebsd_committer freebsd_triage 2026-05-06 08:48:24 UTC
(In reply to Paavo-Einari Kaipila from comment #86)
I'd prefer a long term solution
Comment 88 Mark Felder freebsd_committer freebsd_triage 2026-05-06 17:15:31 UTC
I've been dreaming of a world where we could netboot machines (secureboot protected?) from cluster-provided images (iPXE over the internet) and they'd automatically VPN in, join the build cluster, and get jobs distributed to them. Operator/owner has zero access and can't tamper with it, and then we no longer have this problem with constrained resources in the build cluster.

This isn't even a problem we can easily throw money at considering the current cost of hardware. What was $5,000 8 months ago is nearly $20,000 now...
Comment 89 Stephan Lichtenauer 2026-05-07 12:53:36 UTC
(In reply to Mark Felder from comment #88)

True, but this issue is not new, this bug has been opened about 39 months ago and the problem has been discussed all over the place since then...
Comment 90 Mark Felder freebsd_committer freebsd_triage 2026-05-08 16:39:43 UTC
electron42 has been released and now electron39 is end of life, so we should change our default build to one that's getting security patches

https://www.electronjs.org/blog/electron-42-0#end-of-support-for-39xy
Comment 91 Rodrigo Osorio freebsd_committer freebsd_triage 2026-05-25 12:24:02 UTC
Hi,

Just to sum up the current state of the ports requiring electron:

We have this list of skipped ports because electron39, with 2
requiring old versions of electron (37 and 38) but most are
alligned with 40 and 41.

graphics/drawio (requires electron40)
deskutils/joplin-desktop (requires electron40)
textproc/logseq (requires electron38)
deskutils/podman-desktop (requires electron40)
devel/RStudio (requires electron37)
net-im/signal-desktop (requires electron41) but broken 
net-im/teams (requires electron41)
net-im/vesktop (requires electron40)
x11/waveterm (requires electron41)

And the set of ports who build with electron39, with 2
requiring electron39 explicitly.

security/bitwarden-cli (default)
net-im/deltachat-desktop (default)
editors/vscode (electron39)
textproc/obsidian (electron39)

Hope we can solve this issue, and see if we can move everyone
to electron 40+, maybe 40 is a desirable target.
Comment 92 Paavo-Einari Kaipila 2026-06-09 08:26:15 UTC
Vscode was updated to electron 42 several days ago

https://cgit.freebsd.org/ports/commit/?id=eb44fd6267a889968b0dd79bd2ddf549fff3784d

39 (which is getting built) has no more consumers, as obsidian has _LICENSE_RESTRICTED. Building 39 at this point is just waste of computing resources.

Could we start building 42 now on -LATEST and try to get all the others to it too?
Comment 93 Paavo-Einari Kaipila 2026-06-13 04:38:41 UTC
(In reply to Paavo-Einari Kaipila from comment #92)

Seems like 42 is being built on the latest now. Thanks.
Comment 94 Paavo-Einari Kaipila 2026-06-30 14:20:24 UTC
A friendly reminder regarding Q3 and electron42. In addition to vscode, signal and deltachat are using 42 now too.
Comment 95 iio7 2026-09-18 00:03:42 UTC
I wrote an email to Unixdigest and they have just updated their tutorial on how to use the Linux compatibility layer in order to install and run Signal-desktop on FreeBSD.

https://unixdigest.com/tutorials/how-to-install-signal-desktop-on-freebsd-using-the-linux-binary-compatibility.html

I have tested it and it works perfectly.

Perhaps that can help someone.
Comment 97 Slawomir Wojciech Wojtczak 2026-10-15 11:29:53 UTC
(In reply to iio7 from comment #95)

I really liked that guide - but font rendering was bad.

I added my fonts config and also Google Chrome - as I can no use both /compat/debian and /compat/ubuntu - and I also need something to play DRM content ...

Details:

https://vermaden.wordpress.com/2026/10/10/freebsd-cope-with-signal-fuckup/

Regards,
vermaden
Comment 98 Mark Felder freebsd_committer freebsd_triage 2026-11-02 19:18:41 UTC
Delta Chat would like to begin targeting Electron 44 but that release has breaking changes so it may not be possible to just build it against an older Electron release so users can keep accessing the package. I suspect I'll have to revert the clipboard API changes just to make it build against electron42
Comment 99 Benjamin Takacs 2026-11-12 10:17:51 UTC
As a long term solution while the official builders can only support building one version of electron I suggest:

1. add electron to default versions
2. add support for version ranges to Mk/Uses/electron.mk, so that ports don't have to pin one specific version of electron
2.5 adopt version ranges in ports using electron
3. blacklist electron ports that aren't the default version on the official builders, probably via a make.conf file and IGNORE, as poudrieres blacklist support is quite static iirc

Then maintainers of electron using ports can coordinate which version of electron gets build via changing the default version. Ports not supporting that default version wouldn't get build, but it would be better then guessing which version of electron currently isn't blacklisted.