LineageOS and Android Build Environment

Hello again,

I’d like to build AOSP and LineageOS. I am migrating from Manjaro and with access to the AUR I was able to download a package that allowed me to have all the prerequisites to build for myself.

dnf search lineage was fruitless and dnf search android gave me android-tools which I installed. I am however also looking to fullfill the build requirementsfor Android and LineageOS

What is the proper and best way to satisfy these dependencies in Rocky 9? Should I manually search out each package? What do I do about meta packages like build-essentials that includes a lot of packages? Do I have to manually go through and satisfy all of them as well? Has anyone else got a working android building system?

Thanks,
Karen

$ inxi --filter-all --verbosity 3 -Ajr
System:
  Kernel: 5.14.0-427.18.1.el9_4.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.35.2-43.el9
  Desktop: GNOME v: 40.10 Distro: Rocky Linux 9.4 (Blue Onyx) base: RHEL 9.4
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ProArt X570-CREATOR WIFI v: Rev X.0x
    serial: <superuser required> BIOS: American Megatrends v: 1505
    date: 03/18/2024
CPU:
  Info: 8-core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 3780 high: 3800 min/max: 1400/3800 boost: enabled cores:
    1: 3800 2: 3800 3: 3800 4: 3800 5: 3800 6: 3800 7: 3800 8: 3800 9: 3800
    10: 3800 11: 3800 12: 3800 13: 3800 14: 3481 15: 3800 16: 3800
    bogomips: 121376
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti Lite Hash Rate] vendor: Dell
    driver: nvidia v: 555.42.02 arch: Ampere bus-ID: 01:00.0
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 bus-ID: 3f:00.0
    temp: 29.0 C
  Display: x11 server: X.Org v: 1.20.11 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: radeonsi
    gpu: amdgpu resolution: 1: N/A 2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 vendor: nvidia v: 555.42.02 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 3f:00.1
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 3f:00.6
  API: ALSA v: k5.14.0-427.18.1.el9_4.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.1 status: active (process)
Network:
  Device-1: Aquantia AQtion AQC113CS NBase-T/IEEE 802.3an Ethernet [Antigua
    10G] vendor: ASUSTeK ProArt X570-CREATOR WIFI driver: atlantic v: kernel
    port: N/A bus-ID: 39:00.0
  IF: enp57s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel
    port: N/A bus-ID: 3a:00.0
  IF: enp58s0 state: down mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Drives:
  Local Storage: total: 48.21 TiB used: 24.6 TiB (51.0%)
Swap:
  ID-1: swap-1 type: partition size: 4 GiB used: 256 KiB (0.0%) dev: /dev/dm-2
    mapped: rl-swap
Repos:
  Packages: 15
  No active dnf repos in: /etc/dnf/dnf.conf
  No active yum repos in: /etc/yum.conf
  Active yum repos in: /etc/yum.repos.d/cuda-rhel9.repo
    1: cuda-rhel9-x86_64 ~ https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64
  Active yum repos in: /etc/yum.repos.d/elrepo.repo
    1: elrepo ~ http://mirrors.elrepo.org/mirrors-elrepo.el9
  Active yum repos in: /etc/yum.repos.d/epel-cisco-openh264.repo
    1: epel-cisco-openh264 ~ https://mirrors.fedoraproject.org/metalink?repo=epel-cisco-openh264-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/epel-testing.repo
  Active yum repos in: /etc/yum.repos.d/epel.repo
    1: epel ~ https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
  Active yum repos in: /etc/yum.repos.d/rocky-addons.repo
    1: highavailability ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=HighAvailability-$releasever$rltype
    2: nfv-debuginfo ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=RT-$releasever-debug$rltype
  No active yum repos in: /etc/yum.repos.d/rocky-devel.repo
  Active yum repos in: /etc/yum.repos.d/rocky-extras.repo
    1: extras ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever$rltype
    2: plus-debuginfo ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=plus-$releasever-debug$rltype
  Active yum repos in: /etc/yum.repos.d/rocky.repo
    1: baseos ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever$rltype
    2: appstream-debuginfo ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever-debug$rltype
    3: crb-debuginfo ~ https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever-debug$rltype
  No active yum repos in: /etc/yum.repos.d/rpmfusion-free-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/rpmfusion-free-updates.repo
    1: rpmfusion-free-updates ~ http://mirrors.rpmfusion.org/metalink?repo=free-el-updates-released-9&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
    1: rpmfusion-nonfree-updates ~ http://mirrors.rpmfusion.org/metalink?repo=nonfree-el-updates-released-9&arch=$basearch
Info:
  Memory: total: 128 GiB available: 124.59 GiB used: 9.22 GiB (7.4%)
  Processes: 543 Uptime: 1d 23h 34m Init: systemd target: graphical (5)
  Compilers: gcc: 11.4.1 Shell: Bash v: 5.1.8 inxi: 3.3.33
$ sudo dnf history
[sudo] password for karen: 
ID     | Command line                                                                                                                         | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    43 | install weechat                                                                                                                      | 2024-06-05 14:08 | Install        |    3   
    42 | install elrepo-release                                                                                                               | 2024-06-05 13:34 | Install        |    1   
    41 |                                                                                                                                      | 2024-06-05 03:36 | Install        |    1   
    40 |                                                                                                                                      | 2024-06-04 21:43 | Install        |    6   
    39 |                                                                                                                                      | 2024-06-04 20:49 | Install        |   16   
    38 |                                                                                                                                      | 2024-06-03 16:07 | Install        |   47   
    37 |                                                                                                                                      | 2024-06-03 15:52 | Install        |    5   
    36 | install *libappindicator-*                                                                                                           | 2024-06-03 15:31 | Install        |   44   
    35 | install android-tools                                                                                                                | 2024-06-03 14:20 | Install        |    1   
    34 | install *qt5* *qt6* --skip-broken                                                                                                    | 2024-06-03 14:13 | Install        |  465 EE
    33 | reinstall qt5                                                                                                                        | 2024-06-03 14:02 | R              |    2   
    32 | install qt5-srpm-macros qt5ct qt5-qttools qt5-qtbase PackageKit-Qt5 PackageKit-Qt5-devel                                             | 2024-06-03 01:32 | Install        |   15   
    31 |                                                                                                                                      | 2024-06-03 01:19 | Install        |    7   
    30 | install qtcreator                                                                                                                    | 2024-06-03 00:59 | Install        |   38   
    29 | install qt5                                                                                                                          | 2024-06-03 00:59 | Install        |   23   
    28 |                                                                                                                                      | 2024-06-03 00:53 | Install        |    6   
    27 |                                                                                                                                      | 2024-06-03 00:53 | Install        |    1   
    26 |                                                                                                                                      | 2024-06-03 00:52 | Install        |    7   
    25 | install gnome-software flashrom libjcat libxmlb p11-kit-server                                                                       | 2024-06-03 00:19 | Install        |   12   
    24 | remove flatpak                                                                                                                       | 2024-06-03 00:16 | Removed        |   12   
    23 |                                                                                                                                      | 2024-06-03 00:15 | Removed        |    1   
    22 | install steam                                                                                                                        | 2024-06-03 00:14 | Install        |  167  <
    21 | install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion | 2024-06-03 00:13 | Install        |    2 > 
    20 | install gnome-software                                                                                                               | 2024-06-02 23:40 | Install        |    8   
    19 | install flatpak                                                                                                                      | 2024-06-02 23:40 | Install        |    4   
    18 | remove flatpak                                                                                                                       | 2024-06-02 23:31 | Removed        |   12   
    17 |                                                                                                                                      | 2024-06-02 23:02 | Install        |    1   
    16 | install vlc                                                                                                                          | 2024-06-02 20:25 | Install        |   91   
    15 | update                                                                                                                               | 2024-06-02 20:15 | I, U           |   50   
    14 | install libimobiledevice                                                                                                             | 2024-06-02 20:14 | Install        |    3   
    13 | remove libimobiledevice-1.2.0-16.el8.x86_64                                                                                          | 2024-06-02 20:14 | Removed        |    4   
    12 | install nvidia-driver nvidia-settings cuda-driver                                                                                    | 2024-06-02 20:00 | Install        |   25 E<
    11 | install gssdp-1.4.0.1-3.el9.x86_64                                                                                                   | 2024-06-02 19:38 | Install        |    1 ><
    10 | remove gssdp-1.0.5-1.el8.x86_64                                                                                                      | 2024-06-02 19:38 | Removed        |    7 ><
     9 | -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync                                                                 | 2024-06-02 18:43 | D, E, I, O, U  | 1661 ><
     8 | install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r//rocky-release-9.4-1.5.el9.noarch.rpm https://downlo | 2024-06-02 18:33 | Upgrade        |    3 >E
     7 | update                                                                                                                               | 2024-06-02 18:31 | Upgrade        |    5   
     6 | install inxi                                                                                                                         | 2024-06-02 18:30 | Install        |   16   
     5 | install epel-release                                                                                                                 | 2024-06-02 18:30 | Install        |    1 EE
     4 | update                                                                                                                               | 2024-06-02 18:09 | I, U           |  796 EE
     3 | install flatpak                                                                                                                      | 2024-06-02 18:00 | Upgrade        |    5   
     2 |                                                                                                                                      | 2024-06-02 12:42 | I, U           |   10  <
     1 |                                                                                                                                      | 2024-06-02 05:25 | Install        | 1508 >E

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.