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
A bit help in building Ungoogled-Chromium #1256
Comments
Open repo for platform you want to build for. (link) |
I have already checked these. I use Debian, but i cannot use that description as they only support latest Debian (10.0 Buster) and i have an older one (9.0 Stretch). As for the portable Linux, i tried that, but after
I only get the message
|
It seems like you are missing the core submodule. Try EDIT: |
There is no git involved, i tried to use a source package, because if i follow the git instructions on the portable Linux page
If i try to do
then it works, but still miss the utils dir. If i try your command
Then
I've already downloaded and extracted the package from that repo, but as i asked in the OP: what then? It has no "build.sh" like the portable Linux repo. What should i do with those files? No manual or guide covers this part. |
Sorry, I swapped two commands. It should be |
Ah, i see, now it started to build with these commands:
Please update the building instructions, because the command you've just suggested is missing from it and also
should be just
Also, the information about manually extracting Now i am facing a different problem: it needs GTK3 by default. I've checked if i can tweak this by editing |
Okay, i've tried to build with 72.0.3626.122-4.1 which is the earliest ungoogled-chromium i found. But this also have failed to build:
And this is clearly not possible. I have Chromium 73 here which were built upon GTK2 successfully and this was earlier than that. Unfortunately i do not remember how can i force GTK2 build. Can you help me please? |
Hello? A bit of help please? Or can you tell me where can i get help about this? |
Try add |
I've tried that, but it has yielded the very same results: no gtk3 found. This was Chromium 72.0.3626.122-4.1 and here is a Chromium 73.0.3683.75 which uses GTK2: https://debian.pkgs.org/9/debian-main-amd64/chromium_73.0.3683.75-1~deb9u1_amd64.deb.html |
I cannot edit my last post and i forgot to post what files i've modified:
|
Okay, it turned out, that the Debian team has patched their Chrome 73. Here are the patches: http://deb.debian.org/debian/pool/main/c/chromium/chromium_73.0.3683.75-1~deb9u1.debian.tar.xz How can i make the buildscript fetch Chromium 73? |
Are you trying to build portable version on Debian? There is a debian repo: https://github.com/ungoogled-software/ungoogled-chromium-debian. |
I've already checked this repo, but it only supports Buster (10.0) and i have Stretch (9.0). After 72.0.3626.122-4.1, there is only 75.0.3770.80-1.1. |
Wrong phrasing, and i cannot edit my post... |
I looked at the Debian repo and it have v73 but only on Buster nad Bionic, so there is no Stretch from beginning unfortunately. |
Thanks, that is a great idea, i'll do that. |
You need to get the old v73 tag. |
Note: if you just need version 73 specifically, you can install GNU Guix and run Guix only has .86 and .103 from the 73.xx releases though (but getting to Obviously you can also install the latest version with Guix. |
The patching works. I've just patched Chromium 73.0.3683.75 with both the Debian and UGC patches. There were some files which did not exists (i mean anywhere, they were not just misplaced), but aside from that no errors.
and it died with various Python error messages before even getting to the patching part. The question is, is it possible to build Chromium from a release package file instead of a git repo? |
The python scripts coming with chromium/google needs python2, and the ungoogled-chromium ones need python3. If your system has python3 as default, then you need a virtual env or conda environment to run those python2 ones. |
Python2 was the default. It seems i've ran out of free space on my RAM disk... I've put the build on my SSD. Now i have this script.
I've tried to run this subscript
after the command
and the patches which were worked before, failed. Tons of conflicts, failed patches and etc. |
Not sure. Can you poast the complete log? |
Never mind that, i just forgot to Now i've made up until the building itself, altough i had to tweak a thing or two. The build itself fails with this error message:
The problem is, that My script is here:
|
I think |
I think
It seems, |
That's strange. What if you try to run the clang command separately in the terminal? And also run it with environment variables? |
Okay, i tried. First it gave me an error:
Then i've ran
Then i've ran
This custom What do you mean by /"run it with environment variables"/? |
From your description it seems Open |
Almost done, but a few undefined symbol popped up at the eleventh hour again...
What is this "fingerprinting" stuff? Is it necessary? |
This is probably caused by It comes from |
Unfortunately it is not the case. No
Perhaps not the function but the including of this file's header is surrounded by |
The actual file that called the function is in |
It is included in
The The two files do exists and they are in |
That doesn't look right, how did you add the files? Also isn't the dependecy Can you run
in your |
I added the files by hand into the I've ran the command and here is the result: http://oscomp.hu/depot/switches.log |
Never mind the dependency name. It was the old name and new name changed recently. Your gn files looks fine to me. I think probably |
I did so. Backed up the
again. The result is the same as it was before. |
That doesn't make sense. Maybe try just copying the files manually. |
My bad, i was misunderstandable. So, i've ran
That worked, but then i ran
And that resulted in the same error as before:
As for
The one, you've said is the old one. |
I'm running out of ideas..check whether Also once I had a problem with a |
In both files this line exists:
As for Still, i tried what will happen. I've created the symlinks of
but otherwise identical: three missing symbols ( |
Does |
It does at
|
So basically it seems EDIT: if you run the As a last resort, you can probably just ignore the patches about the fingerprinting flags. They are not enabled by default and known to cause problems on some sites, so you can just ignore them. |
I've ran
in I would like to avoid restarting the entire building... Can i revoke the patches somehow and force the buildsystem to build only what has changed? |
Actually it should be If you know the basic knowledge about C++ then you can just remove the The patches added flags you can enable to add random noise to Canvas, which can potentially be used by website to uniquely identify your browser. But there are extensions does this too, like Privacy Badger. |
Tried that too already, same result. I did so, now only the final binary cannot be linked because
Thanks, so i'd rather do not use the patches, but install Privacy Badger or similar. Or maybe it is possible to globally disable the Canvas for good? |
Yes, the second one helped:
The Then Privacy Badger will do the job. |
I've just finished building the
(The last line means "invalid instruction" in hungarian.) So, the debug build does not crash, the identically parametered release build does. We cannot debug. Can i do anything else, but remove the lines from the |
Did you include
EDIT: Also, in |
And bingo! With So, thank you very much again for your vast amount of help and tremendous patience, for in round two too. Here is the - now really - final script to build (it is just finished running and the resulting package contains everything, the binary is working):
|
Glad to hear it finally worked for you! If you have some extra time, probably you can summarize the pitfalls you experienced and how you solved them in the wiki. It can be helpful to others. But no worry if you don't have the time, since this thread itself can be a great reference for those who facing building problems in the future. |
Okay, when i'll get some free time for this, i will summarize them. However, should i create a new article or add the content to another? |
Considering the length of the thread it shall be better to be a separate article. You can open a PR to the wiki repo and see what Eloston says. I think most likely he will agree a new article is good. |
Very well, i'll collect my thoughts, re-read the entire commentstream and make a new article about building UGC with GTK2. For now, under Devuan 2 (Debian 9), but when i'll have to update to Devuan 3 (Debian 10), i'll cover that too. Whenever i get the time. (Since Debian 10 is officially supported by UGC, it will be much easier, i just have to use the GTK2 patch...) I'm curious if the GTK2 patch could be adapted to later Chromium versions too... |
Hello,
I would like to build Ungoogled-Chromium, but i stucked, because there is no description how i connect the sources here to the official Chromium sources.
I've read the building.md here: https://github.com/Eloston/ungoogled-chromium/blob/master/docs/building.md
It says it will assume that i can build Chromium on my own. I can, but what after? Or before? I do not understand, i should put Chromium sources into a directory inside Ungoogled-Chromium or copy the files of Ungoogled-Chromium into the directory of Chromium? The description does not cover this part...
The text was updated successfully, but these errors were encountered: