a hack for pythonpath issue in debian stable

This commit is contained in:
2021-02-24 17:32:18 +01:00
parent b7e3162123
commit b52e91b0e0
3 changed files with 12 additions and 10 deletions

View File

@@ -15,5 +15,6 @@ RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.li
apt-get clean -y && \ apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/* && \ rm -rf /var/cache/apt/* && \
rm /etc/distcc/hosts #no zeroconf for distcc rm /etc/distcc/hosts #no zeroconf for distcc; \
ln -s /usr/lib/distcc-pump/lib/python3.7/site-packages/include_server /usr/lib/distcc-pump/; #hack pythonpath issue

View File

@@ -21,8 +21,8 @@ spec:
#!/usr/bin/env bash #!/usr/bin/env bash
echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list
echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update -y # apt update -y
apt install -y linux-source $(apt-cache search linux-source |awk '{print $1}' |tail -1) # apt install -y linux-source $(apt-cache search linux-source |awk '{print $1}' |tail -1)
- name: unpack-kernel-source - name: unpack-kernel-source
image: cr.lan/debian-kernel-build-stable image: cr.lan/debian-kernel-build-stable
script: | script: |
@@ -44,11 +44,13 @@ spec:
cd /usr/src/linux-source-5.10 cd /usr/src/linux-source-5.10
#distcc config #distcc config
echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts
export CC=distcc GCC=distcc CPP=distcc
echo "ALL DISTCC HOSTS" echo "ALL DISTCC HOSTS"
distcc --show-hosts distcc --show-hosts
echo "/ALL DISTCC HOSTS" echo "/ALL DISTCC HOSTS"
make -j4 bindeb-pkg LOCALVERSION=-pine1 dpkg -L distcc-pump
#hack pythonpath issue
ln -s /usr/lib/distcc-pump/lib/python3.7/site-packages/include_server /usr/lib/distcc-pump/
distcc-pump make -j20 bindeb-pkg LOCALVERSION=-pine1 CC=distcc
- name: cleanup-workspace-post - name: cleanup-workspace-post
image: alpine image: alpine
command: command:

View File

@@ -21,8 +21,8 @@ spec:
#!/usr/bin/env bash #!/usr/bin/env bash
echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list
echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update -y #apt update -y
apt install -y $(apt-cache search linux-source |awk '{print $1}' |tail -1) #apt install -y $(apt-cache search linux-source |awk '{print $1}' |tail -1)
- name: unpack-kernel-source - name: unpack-kernel-source
image: cr.lan/debian-kernel-build-stable image: cr.lan/debian-kernel-build-stable
script: | script: |
@@ -41,12 +41,11 @@ spec:
cd /usr/src/linux-source-${VER} cd /usr/src/linux-source-${VER}
#distcc config #distcc config
echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts
export CC=distcc GCC=distcc CPP=distcc
echo "ALL DISTCC HOSTS" echo "ALL DISTCC HOSTS"
distcc --show-hosts distcc --show-hosts
echo "/ALL DISTCC HOSTS" echo "/ALL DISTCC HOSTS"
make ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- \ distcc-pump make ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- \
-j4 bindeb-pkg LOCALVERSION=-riot2 -j4 bindeb-pkg LOCALVERSION=-riot2 CC=distcc
- name: cleanup-workspace-post - name: cleanup-workspace-post
image: alpine image: alpine
command: command: