Skip to content

Instantly share code, notes, and snippets.

@dwrobel
Last active May 8, 2020 17:49
Show Gist options
  • Save dwrobel/fa831d179930e0035fb8f1a662fe7f0c to your computer and use it in GitHub Desktop.
Save dwrobel/fa831d179930e0035fb8f1a662fe7f0c to your computer and use it in GitHub Desktop.
linuxcnc on debian:unstable
diff --git a/debian/configure b/debian/configure
index 2146436bac..6e1de0a9ed 100755
--- a/debian/configure
+++ b/debian/configure
@@ -72,8 +72,8 @@ EXTRA_FILES=
EXTRA_BUILD=
KERNEL_VERSION=$TARGET
DRIVERS=drivers.files.in
-PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
-PYTHON_VERSION_NEXT=$(python -c 'import sys; print sys.version[:2] + str(1+int(sys.version[2]))')
+PYTHON_VERSION=$(python3 -c 'import sys; print(sys.version[:3])')
+PYTHON_VERSION_NEXT=$(python3 -c 'import sys; print(sys.version[:2] + str(1+int(sys.version[2])))')
LIBREADLINE_DEV=libreadline-gplv2-dev
BUILD_RTAI=false
@@ -94,7 +94,13 @@ if [ ! -z "$RTAI_DEV" ]; then
fi
# libxenomai-dev does encode the architectures, but we have to resort to awful
# shell juju to transform it into a proper dependency list
-XENOMAI_DEV="$(apt-cache search -n libxenomai-dev | head -1 | awk '{print $1}')"
+
+# disabled to avoid:
+# Package libxenomai-dev exists, but information about its source package
+# is not available. This most likely means that you do not have the
+# right deb-src lines in /etc/apt, or that you need to "apt-get update".
+# XENOMAI_DEV="$(apt-cache search -n libxenomai-dev | head -1 | awk '{print $1}')"
+
if [ ! -z "$XENOMAI_DEV" ]; then
if [ `apt-cache showsrc libxenomai-dev 2>/dev/null | wc -l` -eq 0 ]; then
cat 1>&2 <<-EOF
diff --git a/scripts/travis-build-test.sh b/scripts/travis-build-test.sh
index 0fe477f49f..8c1d25d3d3 100755
--- a/scripts/travis-build-test.sh
+++ b/scripts/travis-build-test.sh
@@ -1,6 +1,6 @@
#!/bin/sh -ex
cd src
./autogen.sh
-./configure --with-realtime=uspace --disable-check-runtime-deps --enable-build-documentation
+./configure --with-python=/usr/bin/python3 --with-boost-python=boost_python_py38 --with-realtime=uspace --disable-check-runtime-deps --enable-build-documentation
make -O -j$(getconf _NPROCESSORS_ONLN) default pycheck V=1
../scripts/rip-environment runtests
diff --git a/scripts/travis-install-build-deps.sh b/scripts/travis-install-build-deps.sh
index 642ca634fb..22b1901711 100755
--- a/scripts/travis-install-build-deps.sh
+++ b/scripts/travis-install-build-deps.sh
@@ -1,5 +1,10 @@
#!/bin/sh -ex
-sudo sh -c 'echo deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe >> /etc/apt/sources.list'
+
+#disabled to avoid:
+# W: GPG error: http://us.archive.ubuntu.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
+#E: The repository 'http://us.archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
+#sudo sh -c 'echo deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe >> /etc/apt/sources.list'
+
grep . /etc/apt/sources.list /etc/apt/sources.list.d/* || true
sudo apt-get update -qq
sudo apt-get install -y devscripts equivs build-essential --no-install-recommends
@dwrobel
Copy link
Author

dwrobel commented May 8, 2020

However it fails at:

mk-build-deps: Unable to install linuxcnc-build-deps at /usr/bin/mk-build-deps line 457.
mk-build-deps: Unable to install all build-dep packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment