ungoogled-software / ungoogled-chromium-debian

Debian, Ubuntu, and others packaging for ungoogled-chromium
386 stars 49 forks source link

Will try to Maintain This Port #313

Closed AssassinK786 closed 1 year ago

AssassinK786 commented 1 year ago

I will try to maintain this port Need Some Perquisites to maintain & develop

networkException commented 1 year ago

Any work on this highly appreciated! If you need anything I'll try my best to help

AssassinK786 commented 1 year ago

Can you send some instructions to build and wiki

networkException commented 1 year ago

There are generic build instructions at https://github.com/ungoogled-software/ungoogled-chromium/blob/master/docs/building.md

AssassinK786 commented 1 year ago

Getting OBS packages Can you update it for Ubuntu jammy so that i can build the the packages I will try on Ubuntu Focal @networkException

AssassinK786 commented 1 year ago

the build is building according to instructions Just add that clang latest version is required

ghost commented 1 year ago

I can approve PRs if this gets anywhere.

AssassinK786 commented 1 year ago

image i am building it once again

AssassinK786 commented 1 year ago

I'm building it on my laptop which is 10 yrs old is there any way that i build these files without any hassle

PF4Public commented 1 year ago

is there any way that i build these files without any hassle

ccache could help immensely.

AssassinK786 commented 1 year ago

Sorry For the Delay but it is taking time to build the file, like it has taken 3-4 days to build so I'm trying my best to get it done on time

Will try to create CI/CD pipeline for this project so that the work load reduces

ghost commented 1 year ago

Yea, kinda expected. My 8 core rig took like 4-8 hours to build it when I was still trying. I just got fed up when I ran into a JS performance issue I was unable to resolve.

AssassinK786 commented 1 year ago

image Stuck on this past 15minutes

AssassinK786 commented 1 year ago

Yea, kinda expected. My 8 core rig took like 4-8 hours to build it when I was still trying. I just got fed up when I ran into a JS performance issue I was unable to resolve.

Mine is i3 intel 4 core processor

ghost commented 1 year ago

The link step tends to be the slowest part. I wonder if you're using enough builders then?

AssassinK786 commented 1 year ago

give command to check it

ghost commented 1 year ago

Nevermind, you're already using -j4. I saw that in a screenshot above.

AssassinK786 commented 1 year ago

image Stuck on this past 15minutes

any way to break this issue stuck at this issue for 1 1/2 hours

AssassinK786 commented 1 year ago

contents.txt this is content of shell A Lot of warnings

ghost commented 1 year ago

Very typical for large projects like chromium. Most of the time they're intended for upstream to deal with. I would not worry about them.

PF4Public commented 1 year ago

image Stuck on this past 15minutes

any way to break this issue stuck at this issue for 1 1/2 hours

Run top in another terminal, press V (for forest-view), look for ninja and see if it has children and if they are alive.

SugaryHull commented 1 year ago

@berkley4 has been maintaining an active fork of this repo (last commit 2 days ago to refresh ungoogle patches). They might have some insight and/or be willing to merge their changes to this repo. https://github.com/berkley4/ungoogled-chromium-debian

SugaryHull commented 1 year ago

It looks like they split the libraries into a separate package, though. Not sure how involved of a process it would be to revert that change

AssassinK786 commented 1 year ago

@berkley4 has been maintaining an active fork of this repo (last commit 2 days ago to refresh ungoogle patches). They might have some insight and/or be willing to merge their changes to this repo. https://github.com/berkley4/ungoogled-chromium-debian

I have tried 1-2 times but it gave me issues so i shifted here

AssassinK786 commented 1 year ago

image Finally It is one step behind the the build Just don't know why it is still not building

AssassinK786 commented 1 year ago

image Finally It is one step behind the the build Just don't know why it is still not building

Anybody can help for this issue Stuck at it for 3 hours

ghost commented 1 year ago

Normal. The final link step is usually the slowest part.

SugaryHull commented 1 year ago

I'm willing to contribute binaries again once everything has been settled. I can also help build for testing purposes if need be.

AssassinK786 commented 1 year ago

For one Last Time today i trying it again before going on vacation

AssassinK786 commented 1 year ago

Finally I have successfully build the file where should i put the deb file

AssassinK786 commented 1 year ago

image Here is the Output

AssassinK786 commented 1 year ago

How to Submit the deb file from my fork?

SugaryHull commented 1 year ago

I'm gonna give building a shot as well with the Debian-specific instructions and with a forced submodule update to the latest Ungoogled Chromium version

SugaryHull commented 1 year ago

Latest version fails with the following error: `[195/195] LINK gn out/Release/gn gen out/Release --args="build_with_tflite_lib=false chrome_pgo_phase=0 clang_use_chrome_plugins=false disable_fieldtrial_testing_config=true enable_hangout_services_extension=false enable_js_type_check=false enable_mdns=false enable_mse_mpeg2ts_stream_parser=true enable_nacl=false enable_reading_list=false enable_remoting=false enable_reporting=false enable_service_discovery=false enable_widevine=true exclude_unwind_tables=true google_api_key=\"\" google_default_client_id=\"\" google_default_client_secret=\"\" safe_browsing_mode=0 treat_warnings_as_errors=false use_official_google_api_keys=false use_unofficial_version_number=false custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" use_custom_libcxx=false is_official_build=true is_debug=false symbol_level=1 blink_enable_generated_code_formatting=false is_cfi=false use_sysroot=false use_gnome_keyring=false ffmpeg_branding=\"Chrome\" proprietary_codecs=true use_pulseaudio=true link_pulseaudio=true use_vaapi=true use_ozone=true use_goma=false enable_vr=false enable_iterator_debugging=false optimize_webui=true use_gio=true use_lld=true is_clang=true use_kerberos=false use_cups=true v8_enable_backtrace=true perfetto_use_system_zlib=true use_system_lcms2=true use_system_libopenjpeg2=true use_system_libpng=true use_system_zlib=true use_system_libjpeg=true " --fail-on-unused-args ERROR at //build/config/compiler/BUILD.gn:1385:22: Script returned non-zero exit code. clang_revision = exec_script("//tools/clang/scripts/update.py", ^---------- Current dir: /home/alexander/src/ungoogled-chromium-debian/out/Release/ Command: python3 /home/alexander/src/ungoogled-chromium-debian/tools/clang/scripts/update.py --print-revision --verify-version=16 Returned 1 and printed out:

The expected clang version is llvmorg-16-init-12251-g87d0ff91-2 but the actual version is Did you run "gclient sync"?

See //build/config/BUILDCONFIG.gn:334:3: which caused the file to be included. "//build/config/compiler:afdo_optimize_size", ^------------------------------------------- make[1]: [debian/rules:142: override_dh_auto_build] Error 1 make[1]: Leaving directory '/home/alexander/src/ungoogled-chromium-debian' make: [debian/rules:107: binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 ` You can find the rest of the output here

PF4Public commented 1 year ago

image Here is the Output

Latest version is 110, not 103.

@SugaryHull Do you have gn on your system? It is trying to build it from sources and needs clang-16 for that, which you probably don't have.

SugaryHull commented 1 year ago

I do not have gn on my system. I'll have to look into how to install it

SugaryHull commented 1 year ago

I installed LLVM-16 from the upstream APT repo and changed every instance of LLVM-11 I could find, but it still fails at after the linking stage for gn

PF4Public commented 1 year ago

@SugaryHull Riiight! It was indeed after it finished building gn. My bad. Please inspect src/ungoogled-chromium-debian/tools/clang/scripts/update.py. Some of the commands there are failing to determine your clang version.

SugaryHull commented 1 year ago

This might be the culprit: > clang-16 --print-revision clang: error: unsupported option '--print-revision' clang: error: no input files

clang-16 --version prints out version and revision info

SugaryHull commented 1 year ago

Other parameters in def main() are failing too

AssassinK786 commented 1 year ago

image Here is the Output

Latest version is 110, not 103.

@SugaryHull Do you have gn on your system? It is trying to build it from sources and needs clang-16 for that, which you probably don't have.

Ya I Know because I have used this repo as base so the version is 103.0.5060.134

AssassinK786 commented 1 year ago

I have followed the instructions from ungoogled chromium and from here Don't use the opensuse repo It is not working

AssassinK786 commented 1 year ago

The issue is with tools or clang which don't remember now

SugaryHull commented 1 year ago

I'm gonna try forcing a bypass of the error to see if I can get Chromium to build anyway. Obviously, I won't commit those changes.

SugaryHull commented 1 year ago

Got a different error this time: https://0bin.net/paste/BGkUX1gW#j7MuolecPH3Rc2AMACh3TrraNRonxuMvjXKhChA1H-E

00shadows commented 1 year ago

Please re-add armhf supports because there was many people is still using the armhf machine such as the allwiner SBC based or Pinebook or even the chromebook and usually using armbian. The armhf is not like as the i386 as alive over 2 decades and the armhf life is not over 2 decades and I thing armhf still needed supports processor.

AssassinK786 commented 1 year ago

@networkException @PF4Public How to add new version to the repo Will work on it from today

PF4Public commented 1 year ago

@networkException @PF4Public How to add new version to the repo Will work on it from today

Have you tried yourself? Which steps did you take and what didn't work as expected?

00shadows commented 1 year ago

@networkException @PF4Public How to add new version to the repo Will work on it from today

It is easy if you uploading on launchpad.net, you just adding your source code with debian stuff and let the server doing build process

SugaryHull commented 1 year ago

That LLVM version check fails when attempting to build ungoogled-chromium-portablelinux with a forcefully updated ungoogled-chromium submodule as well

SugaryHull commented 1 year ago

Currently building regular Chromium with Debian's packaging (which uses Debian's packaged version of LLVM 13) to rule out my system as the problem