Comments (21)
I guess I found a solution - https://bugs.gentoo.org/909731
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c433d383887eeb559d1826becd4a5cf9944ca7f7
from gentoo-overlay.
It was not wayland related issue, I only migrated to it a few days ago
from gentoo-overlay.
Please do not ignore issue template that says: "Please provide any relevant information including the full build log."
from gentoo-overlay.
Oh, I am sorry. Thought I have added it: http://0x0.st/HvMi.log
Seriously? Come on! "Please provide any relevant information including the full build log. Please don't use external services for that."
P.S: I have seen in another issue you was happy that somebody was using ungoogled. This is my daily driver as well, thank you for the ebuild
Glad to know.
from gentoo-overlay.
Full build log:
build.log
from gentoo-overlay.
Did it work before?
/var/tmp_builddir
looks like a symlink. webpack does not like symlinks.
from gentoo-overlay.
No, it didn't work previously.
/var/tmp_builddir
is not a symbolic link. I build everything in RAM, but it seems 20GB is insufficient for electron/element-web. Therefore, I designated a special directory on my NVME for their build with PORTAGE_TMPDIR="/var/tmp_builddir"
from gentoo-overlay.
Then there might be an issue with permissions on that mountpoint.
from gentoo-overlay.
Seems to have the same permissions as the one in RAM?
home /home/me # ls -lah /var/tmp_builddir/portage/
total 0
drwxrwxr-x 1 portage portage 12 Nov 14 23:27 .
home /home/s10n # ls -lah /tmp/portage/
total 0
drwxrwxr-x 2 portage portage 40 Nov 12 19:35 .
What permissions should I setup?
from gentoo-overlay.
It is trying to access '/.config/svgrrc'. That's not right. Check your environment, it shouldn't be in root, it should be in portage directory.
from gentoo-overlay.
I am sorry, I am not following you. What exactly should I check? I guess it is something NPM related?
from gentoo-overlay.
It is searching for .svgrrc
:
https://github.com/gregberge/svgr/blob/f73f14d84f3a372e4f1f1af02ba0b5ccfbc5bd6d/website/pages/docs/configuration-files.mdx#L16-L18
In an ascending manner until it hits home:
https://github.com/cosmiconfig/cosmiconfig/blob/42ca3fab6d6ae593a895c0fe4e2a5f6b297e6361/README.md?plain=1#L26
On your system it does not stop until it reaches root, which suggests that there is something wrong with your configuration, perhaps because you switch portage folders.
It might be possible to prevent this behaviour via --no-runtime-config
:
https://github.com/gregberge/svgr/blob/f73f14d84f3a372e4f1f1af02ba0b5ccfbc5bd6d/packages/cli/README.md?plain=1#L21
But I'm not very familiar with all this JavaScript mess that is being constantly created around node.
For your reference it does not fail this way for me. Neither on my system, nor in my tests: https://github.com/PF4Public/gentoo-overlay/actions/workflows/element-web.yml
For example
src_compile ()
{
node -r os -e 'console.log(os.homedir());'
die
node /usr/bin/yarn run build || die
}
results in following:
/var/tmp/portage/net-im/element-web-1.11.49/homedir
* ERROR: net-im/element-web-1.11.49::pf4public failed (compile phase):
from gentoo-overlay.
When I am checking /var/tmp_builddir/portage/net-im/element-web-1.11.49/work/element-web-1.11.49
, I see no .svgrrc there. Could you please check if it is generated for you? Or where it is located in your case?
from gentoo-overlay.
Could you please check if it is generated for you?
It isn't and it shouldn't. The problem is that on your system it does not stop at /var/tmp_builddir/portage/net-im/element-web-1.11.49/
, but goes up.
from gentoo-overlay.
Alright, I allocated 32gb to build in RAM, so everything is in /var/tmp/portage. Yet, the build fails with the same error. I guess we now know that the problem is not with the PORTAGE_TMPDIR.
from gentoo-overlay.
🤷🏻 No idea what else could it be :(
from gentoo-overlay.
Would you like to submit PR?
from gentoo-overlay.
Sure, if you think it is needed. Since it is working well in your tests, maybe my system is abnormal and something is broken? Would be wrong to add a fix just for my system xD
from gentoo-overlay.
Would be wrong to add a fix just for my system xD
This fix should not harm anyway.
from gentoo-overlay.
I conducted a test in a VM with a clean Gentoo install, and the build failed there as well. Therefore, I guess the patch makes sense. I wonder what kind of extra setup do you have on your system
from gentoo-overlay.
I wonder what kind of extra setup do you have on your system
Not using wayland perhaps :D
from gentoo-overlay.
Related Issues (20)
- net-im/element-desktop-1.11.63: electron v28 removed HOT 1
- dev-util/electron: fix_adapt_exclusive_access_for_electron_needs patch fails HOT 2
- app-editors/vscode: Error: Cannot find module '/usr/lib64/node_modules/yarn/bin/../lib/cli' HOT 7
- www-client/ungoogled-chromium-122.0.6261.111_p1: would it be possible to add a system-XNNPACK use flag? HOT 3
- www-client/ungoogled-chromium-123.0.6312.105_p1: configuring breaks HOT 4
- www-client/ungoogled-chromium-123.0.6312.105_p1: no matching member function for call to 'emplace' HOT 5
- www-client/ungoogled-chromium: Allow specifying linker thread count HOT 3
- www-client/ungoogled-chromium-123*: tabs freeze (javascript issue?) HOT 13
- www-client/ungoogled-chromium-bin: need chromium-browser symlink HOT 3
- www-client/ungoogled-chromium-122.0.6261.111_p1:0[+system-ffmpeg] compilation failure HOT 2
- dev-util/electron-29.3.2: AVX512 enabled breaking build on non-AVX512 hardware HOT 16
- www-client/ungoogled-chromium-124.0.6367.155_p1: bromite_content_settings.inc not found HOT 7
- www-client/ungoogled-chromium-124.0.6367.155_p1: ../../chrome/browser/download/chrome_download_manager_delegate.h:29:10: fatal error: 'components/safe_browsing/content/common/proto/download_file_types.pb.h' file not found HOT 6
- www-client/ungoogled-chromium-124.0.6367.201_p1: AVX vector without evex512 enabled changes the ABI HOT 3
- www-client/ungoogled-chromium-bin-124.0.6367.155: SIGABRT when opening Proxmox serial console, not sure how else to reproduce HOT 2
- www-client/ungoogled-chromium-124.0.6367.207_p1: Compile failing at [47201/54337] x86_64-pc-linux-gnu-clang++ -MD -MF obj/chrome/browser/extensions/extensions/developer_private_api.o.d HOT 1
- www-client/ungoogled-chromium crashes on startup: "Assertion 'this->_M_is_engaged()' failed" HOT 2
- www-client/cromite-125.0.6422.60: error: patch failed HOT 2
- www-client/ungoogled-chromium-125.0.6422.60_p1: ...download_file_types.pb.h' file not found HOT 1
- www-client/ungoogled-chromium-125.0.6422.60_p1: Compile failed at [47536/54680] x86_64-pc-linux-gnu-clang++ -MD -MF obj/chrome/browser/extensions/extensions/identity_api.o.d HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gentoo-overlay.