You are not logged in.

#1 2021-02-09 12:06:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,290
Website

Using distcc pump with makechrootpkg from devtools

Is is possible to use distcc pump in a buildroot created with devtools' mkarchroot and building with makechrootpkg?  If so how does one start it within the buildroot?

This issue is that within the buildroot, /usr/bin/pump has to be running.  That requires two conditions:
1) A bogus DISTCC_HOSTS setup in the environment vars
2) Literally running `eval pump --startup` from within the container

I tried this via a script installed to /path/to/chroot/user/usr/bin/test.sh which simply contains:

#!/bin/bash
export DISTCC_HOSTS="localhost,cpp,lzo"
eval `pump --startup`

But running that throws an error:

% arch-nspawn /scratch/armc8/facade/ test.sh
__________Expected a socket at '/tmp/distcc-pump.jKQ3Vj/socket'

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#2 2021-09-11 16:39:24

ahmubashshir
Member
From: Dhaka
Registered: 2021-08-06
Posts: 1
Website

Re: Using distcc pump with makechrootpkg from devtools

Hope I'm not necrobumping, did you solve your issue? I'm having the same problem.

Offline

#3 2021-09-11 16:48:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,290
Website

Re: Using distcc pump with makechrootpkg from devtools

Can't remember ... tried pump outside of the buildroot and found that it was actually slower so I abandoned this.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

Board footer

Powered by FluxBB