ยง2023-06-23
- Python Env Control and install requirements
$ source PYTHON-3.11.4/bin/activate
(PYTHON-3.11.4) [alexlai@n2MnJaro build]$ git clone https://github.com/mongodb/mongo.git
$ cd mongo
$ git checkout r6.0.5
$ pip install -r etc/pip/compile-requirements.txt
0.1.
ERROR: Icecream not enabled while using -j higher than available cpu's. Use --force-jobs to override.
==> ERROR: A failure occurred in build().
Aborting...
$ sudo cp -v /etc/makepkg.conf /etc/makepkg.conf.ori
[sudo] password for alexlai:
'/etc/makepkg.conf' -> '/etc/makepkg.conf.ori'
(PYTHON-3.11.4) [alexlai@n2MnJaro mongodb]$ sudo nano /etc/makepkg.conf
(PYTHON-3.11.4) [alexlai@n2MnJaro mongodb]$ diff /etc/makepkg.conf /etc/makepkg.conf.ori
50c50
< MAKEFLAGS="-j6"
---
> MAKEFLAGS="-j$(($(nproc)+1))"
1. Get PKHBUILD
```bash
$ pwd
/opt/home/alexlai/build/src
(PYTHON-3.11.4) [alexlai@n2MnJaro src]$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/mongodb.tar.gz <-- in ENV Control
cd ..
(PYTHON-3.11.4) [alexlai@n2MnJaro build]$ tar xvf src/mongodb.tar.gz
mongodb/
mongodb/.SRCINFO
mongodb/.gitignore
mongodb/PKGBUILD
mongodb/mongodb-4.4.1-gcc11.patch
mongodb/mongodb-4.4.10-boost-1.81.patch
mongodb/mongodb-5.0.2-no-compass.patch
mongodb/mongodb-5.0.2-skip-reqs-check.patch
mongodb/mongodb-6.0.0-boost-1.79.patch
mongodb/mongodb-6.0.0-gcc12.patch
mongodb/mongodb-6.0.2-sconstruct-changes.patch
mongodb/mongodb.sysusers
mongodb/mongodb.tmpfiles
(PYTHON-3.11.4) [alexlai@n2MnJaro build]$ cd mongodb/
(PYTHON-3.11.4) [alexlai@n2MnJaro mongodb]$ nano PKGBUILD <-- arch=("x86_64" "aarch64")
- makepkg -s
PYTHON-3.11.4) [alexlai@n2MnJaro mongodb]$ $ time makepkg -s
==> Making package: mongodb 6.0.5-1 (Fri 23 Jun 2023 02:07:11 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found mongodb-src-r6.0.5.tar.gz
-> Found mongodb.sysusers
-> Found mongodb.tmpfiles
-> Found mongodb-4.4.1-gcc11.patch
-> Found mongodb-5.0.2-no-compass.patch
-> Found mongodb-5.0.2-skip-reqs-check.patch
-> Found mongodb-6.0.0-boost-1.79.patch
-> Found mongodb-6.0.2-sconstruct-changes.patch
-> Found mongodb-6.0.0-gcc12.patch
-> Found mongodb-4.4.10-boost-1.81.patch
==> Validating source files with sha256sums...
mongodb-src-r6.0.5.tar.gz ... Passed
mongodb.sysusers ... Passed
mongodb.tmpfiles ... Passed
mongodb-4.4.1-gcc11.patch ... Passed
mongodb-5.0.2-no-compass.patch ... Passed
mongodb-5.0.2-skip-reqs-check.patch ... Passed
mongodb-6.0.0-boost-1.79.patch ... Passed
mongodb-6.0.2-sconstruct-changes.patch ... Passed
mongodb-6.0.0-gcc12.patch ... Passed
mongodb-4.4.10-boost-1.81.patch ... Passed
==> Extracting sources...
-> Extracting mongodb-src-r6.0.5.tar.gz with bsdtar
- additional pip modules
pip install psutil
pip install bson
pip install PyYAML