Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:guide-developer:toolchain:install-buildsystem [2023/11/02 07:45] – [CentOS / Fedora] perl-Time-Piece is now required on Fedora 38 981213docs:guide-developer:toolchain:install-buildsystem [2024/09/30 18:39] (current) – [Void] Remove Python 2 and add missing packages from the requirements table harpia
Line 36: Line 36:
 | python2-dev                        | python2-dev               | python-devel             | ?                        | python27               | ?                        | python2                  | dev-lang/python:               | | python2-dev                        | python2-dev               | python-devel             | ?                        | python27               | ?                        | python2                  | dev-lang/python:               |
 | ?                                  | python3-dev               | ?                        | ?                        | python310              | ?                        | ?                        | ?                                | | ?                                  | python3-dev               | ?                        | ?                        | python310              | ?                        | ?                        | ?                                |
 +| [[wp>SWIG]]                        | swig                      | swig                     | swig                     | swig                   | swig                     | swig                     | dev-lang/swig                    |
 | unzip                              | unzip                     | unzip                    | unzip                    | unzip                  | unzip                    | unzip                    | app-arch/unzip                   | | unzip                              | unzip                     | unzip                    | unzip                    | unzip                  | unzip                    | unzip                    | app-arch/unzip                   |
 | [[wp>GNU Wget]]                    | wget                      | wget                     | wget                     | wget                   | wget                     | wget                     | net-misc/wget                    | | [[wp>GNU Wget]]                    | wget                      | wget                     | wget                     | wget                   | wget                     | wget                     | net-misc/wget                    |
Line 86: Line 87:
 </code> </code>
  
-==== Arch / Manjaro ====+==== Arch / Manjaro / EndeavourOS ====
 Arch users may install the [[https://aur.archlinux.org/packages/openwrt-devel/|openwrt-devel]] meta-package from the [[https://wiki.archlinux.org/index.php/Arch_User_Repository|AUR]] or alternatively, manually install the build dependencies as follows: Arch users may install the [[https://aur.archlinux.org/packages/openwrt-devel/|openwrt-devel]] meta-package from the [[https://wiki.archlinux.org/index.php/Arch_User_Repository|AUR]] or alternatively, manually install the build dependencies as follows:
  
Line 94: Line 95:
 bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff \ bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff \
 gzip libelf libtool libxslt m4 make ncurses openssl patch pkgconf \ gzip libelf libtool libxslt m4 make ncurses openssl patch pkgconf \
-python rsync sed texinfo time unzip util-linux wget which zlib+python python-distutils-extra rsync sed texinfo time unzip util-linux wget which zlib
  
 # Optional prerequisites, depend on the package selection # Optional prerequisites, depend on the package selection
Line 100: Line 101:
 </code> </code>
  
-==== CentOS / Fedora ====+==== Fedora / Nobara ====
 <code bash> <code bash>
 sudo dnf --setopt install_weak_deps=False --skip-broken install \ sudo dnf --setopt install_weak_deps=False --skip-broken install \
Line 106: Line 107:
 rsync tar unzip wget which diffutils python2 python3 perl-base \ rsync tar unzip wget which diffutils python2 python3 perl-base \
 perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin \ perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin \
-perl-IPC-Cmd perl-Thread-Queue perl-Time-Piece+perl-IPC-Cmd perl-JSON-PP perl-Thread-Queue perl-Time-Piece
 </code> </code>
  
-==== Debian / Ubuntu ==== +==== Debian / Ubuntu / Mint ==== 
-Modernized set for Ubuntu 22.04 for OpenWrt master, 22.03 and 21.02 branches that do not need python2.7 any more. Python3 is installed by default in Ubuntu 22.04.+ 
 + 
 +Modernized set for Ubuntu 24.04 that has Python 3.12 without python3-distutils: 
 +(OpenWrt main/master in Apr 2024) 
 + 
 +<code bash> 
 +sudo apt update 
 +sudo apt install build-essential clang flex bison g++ gawk \ 
 +gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \ 
 +python3-setuptools rsync swig unzip zlib1g-dev file wget 
 +</code> 
 + 
 + 
 +set for Ubuntu 22.04 (that has older Python 3.xx):
  
 <code bash> <code bash>
Line 116: Line 130:
 sudo apt install build-essential clang flex bison g++ gawk \ sudo apt install build-essential clang flex bison g++ gawk \
 gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \ gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \
-python3-distutils rsync unzip zlib1g-dev file wget+python3-distutils python3-setuptools rsync swig unzip zlib1g-dev file wget
 </code> </code>
  
-Older advice:+Older advice (for 19.07 and earlier that need python2.7):
  
 <code bash> <code bash>
Line 159: Line 173:
 coreutils diffutils findutils flex gawk gcc gettext git grep intltool \ coreutils diffutils findutils flex gawk gcc gettext git grep intltool \
 libxslt linux-headers make ncurses-devel openssl-devel patch perl \ libxslt linux-headers make ncurses-devel openssl-devel patch perl \
-pkg-config python-devel python3-devel rsync tar unzip util-linux \ +pkg-config python3-devel rsync tar unzip util-linux wget 
-wget zlib-devel+zlib-devel time libelf perl-ExtUtils-MakeMaker-CPANfile \ 
 +help2man swig 
 + 
 +# for musl version, also install: argp-standalone musl-fts-devel musl-obstack-devel
 </code> </code>
  
  • Last modified: 2023/11/02 07:45
  • by 981213