Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: The podman and podman-desktop teams would like to package podman-desktop for Fedora which depends on nodejs-electron. But nodejs-electron would need chromium-src-devel which doesn't exist yet. Could you please consider enabling the src-devel subpackage?
Ref: https://lists.fedorahosted.org/archives/list/devel@lists.fedoraproject.org/message/3CANAGRWJBMRMDGYUUOBMYP4Z7XJUUKK/
Um, okay. That's going to be a MASSIVE subpackage. Can you tell me what source files you need and where you'd like them to live?
Hi, First, I even don't know if it is possible. I just see this in perceptive of the packager. Seems to me, a big part of electron source is the same of chromium [1] build of electron take a lot of hours because it also need build chromium or a part of chromium [2], so if we can somehow use chromium package to build nodejs-electron over, would be great . [2] https://copr-dist-git.fedorainfracloud.org/cgit/sergiomb/electrons/nodejs-electron.git/tree/create_tarball.sh https://copr.fedorainfracloud.org/coprs/sergiomb/electrons/package/nodejs-electron/ [1] ll /usr/lib64/chromium-browser/ /usr/lib64/electron/ /usr/lib64/chromium-browser/: total 262536 -rw-r--r-- 1 root root 597568 Jul 17 02:15 chrome_100_percent.pak -rw-r--r-- 1 root root 890493 Jul 17 02:15 chrome_200_percent.pak -rwxr-xr-x 1 root root 1135064 Jul 17 05:51 chrome_crashpad_handler -rwsr-xr-x 1 root root 22632 Jul 17 05:51 chrome-sandbox -rwxr-xr-x 1 root root 232459168 Jul 17 05:51 chromium-browser -rwxr-xr-x 1 root root 2803 Jul 17 05:51 chromium-browser.sh -rw-r--r-- 1 root root 1422103 Jul 16 22:19 headless_lib_data.pak -rw-r--r-- 1 root root 2602858 Jul 16 22:19 headless_lib_strings.pak -rw-r--r-- 1 root root 10454784 Jul 16 21:40 icudtl.dat -rwxr-xr-x 1 root root 50968 Jul 17 05:51 libEGL.so -rw-r--r-- 1 root root 6592 Jul 17 01:20 libEGL.so.TOC -rwxr-xr-x 1 root root 6208880 Jul 17 05:51 libGLESv2.so -rw-r--r-- 1 root root 67621 Jul 17 01:20 libGLESv2.so.TOC -rwxr-xr-x 1 root root 4030400 Jul 17 05:51 libvk_swiftshader.so -rw-r--r-- 1 root root 10761 Jul 17 01:11 libvk_swiftshader.so.TOC -rwxr-xr-x 1 root root 382744 Jul 17 05:51 libvulkan.so.1 -rw-r--r-- 1 root root 7946 Jul 17 01:15 libvulkan.so.1.TOC drwxr-xr-x 2 root root 12288 Aug 3 00:24 locales drwxr-xr-x 2 root root 4096 Aug 3 00:25 MEIPreload drwxr-xr-x 2 root root 4096 Jul 17 05:51 PepperFlash drwxr-xr-x 3 root root 4096 Jul 17 01:04 resources -rw-r--r-- 1 root root 7166289 Jul 17 02:15 resources.pak -rw-r--r-- 1 root root 408712 Jul 17 05:07 snapshot_blob.bin -rw-r--r-- 1 root root 732120 Jul 17 05:08 v8_context_snapshot.bin -rw-r--r-- 1 root root 133 Jul 17 05:51 vk_swiftshader_icd.json -rwxr-xr-x 1 root root 37398 Jul 16 21:41 xdg-mime -rwxr-xr-x 1 root root 33277 Jul 16 21:41 xdg-settings /usr/lib64/electron/: total 686564 -rw-r--r-- 1 root root 142605 Jun 28 00:05 chrome_100_percent.pak -rw-r--r-- 1 root root 209194 Jun 28 00:05 chrome_200_percent.pak -rwxr-xr-x 1 root root 662119464 Jun 28 07:44 electron -rwxr-xr-x 1 root root 466672 Jun 28 07:44 libEGL.so -rwxr-xr-x 1 root root 19125976 Jun 28 07:44 libGLESv2.so -rwxr-xr-x 1 root root 366464 Jun 28 07:44 libVkICD_mock_icd.so -rwxr-xr-x 1 root root 14524320 Jun 28 07:44 libvk_swiftshader.so drwxr-xr-x 2 root root 4096 Jun 28 17:04 locales drwxr-xr-x 3 root root 4096 Jun 28 17:04 resources -rw-r--r-- 1 root root 4989739 Jun 28 00:05 resources.pak -rw-r--r-- 1 root root 351072 Jun 28 07:43 snapshot_blob.bin drwxr-xr-x 2 root root 4096 Jun 28 17:04 swiftshader -rw-r--r-- 1 root root 671784 Jun 28 07:43 v8_context_snapshot.bin -rw-r--r-- 1 root root 6 Jun 28 07:44 version
Electron is definitely derived from chromium, but the last time I looked at it, it was using a significantly older version of chromium than current. I am happy to make a "src-devel" subpackage here, but it needs to be useful, and I will need someone to let me know _exactly_ which source files are needed and in what directory they should live in. Perhaps the "podman and podman-desktop" teams could provide more specifics?
I don't think it will be useful. It was possible several years ago that you could build a libchromium, but it doesn't work anymore :-( https://www.electronjs.org/blog/electron-internals-building-chromium-as-a-library If someone wants to package nodejs-electron for Fedora, we are building it for Fedora here: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron
Electron and CEF are built by checking out a copy of the Chromium sources and patching+building them on the fly. Arch's PKGBUILD for Electron demonstrates this quite effectively: https://github.com/archlinux/svntogit-community/blob/packages/electron/trunk/PKGBUILD#L138-L147 The idea would be to replace that download with chromium-src-devel, which would also allow common enhancements to propagate to all builds of the Chromium sources.
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.
I am closing that bugzilla WONTFIX because there is a lack of precise information regarding the packaging of the Chromium source.