diff options
32 files changed, 621 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 7ba07981..5a8ad164 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -419,7 +419,7 @@ write_variation_table() { write_page "<tr><td>uid</td><td>uid=1111</td><td>uid=2222</td></tr>" write_page "<tr><td>gid</td><td>gid=1111</td><td>gid=2222</td></tr>" write_page "<tr><td>/bin/sh</td><td>/bin/dash</td><td>/bin/bash</td></tr>" - write_page "<tr><td>build path</td><td>/build/1st <em>(not varied for stretch)</em></td><td>/build/2nd <em>(not varied for stretch)</em></td></tr>" + write_page "<tr><td>build path</td><td>/build/1st/\$pkg-\$ver <em>(not varied for stretch)</em></td><td>/build/2nd/_\${pkg:1}-\$ver <em>(not varied for stretch)</em></td></tr>" write_page "<tr><td>user's login shell</td><td>/bin/sh</td><td>/bin/bash</td></tr>" write_page "<tr><td>user's <a href="https://en.wikipedia.org/wiki/Gecos_field">GECOS</a></td><td>first user,first room,first work-phone,first home-phone,first other</td><td>second user,second room,second work-phone,second home-phone,second other</td></tr>" write_page "<tr><td>env DEB_BUILD_OPTIONS</td><td>DEB_BUILD_OPTIONS=\"parallel=XXX\"<br /> XXX on amd64 and i386: 18 or 17<br /> XXX on armhf: 8, 4 or 2</td><td>DEB_BUILD_OPTIONS=\"parallel=YYY\"<br /> YYY on amd64 and i386: 17 or 18 (!= the first build)<br /> YYY on armhf: 8, 4, or 2 (not varied systematically)</td></tr>" diff --git a/hosts/bbx15-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/bbx15-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/bbx15-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/bpi0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/bpi0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/bpi0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/cb3a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/cb3a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/cb3a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/cbxi4a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/cbxi4a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/cbxi4a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/cbxi4b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/cbxi4b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/cbxi4b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/cbxi4pro0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/cbxi4pro0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/cbxi4pro0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/ff2a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/ff2a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/ff2a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/ff2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/ff2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/ff2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/ff4a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/ff4a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/ff4a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/hb0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/jenkins-test-vm/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/jenkins-test-vm/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/jenkins-test-vm/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/jenkins/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/jtk1a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/odu3a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/odu3a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/odu3a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/odxu4-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/odxu4-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/odxu4-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/odxu4b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/odxu4b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/odxu4b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/odxu4c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/odxu4c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/odxu4c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/opi2a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/opi2a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/opi2a-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/opi2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/opi2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/opi2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/opi2c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/opi2c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/opi2c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build1-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build1-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build1-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build10-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build10-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build10-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build11-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build11-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build11-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build15-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build15-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build15-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build2-i386/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build5-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build5-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build5-amd64/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/profitbricks-build6-i386/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/profitbricks-build6-i386/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/profitbricks-build6-i386/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/rpi2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/rpi2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/rpi2b-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/rpi2c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/rpi2c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/rpi2c-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/wbd0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/wbd0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/wbd0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} diff --git a/hosts/wbq0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir b/hosts/wbq0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir new file mode 100755 index 00000000..7750fdfe --- /dev/null +++ b/hosts/wbq0-armhf-rb/etc/pbuilder/rebuild-hooks/A01_modfiy_src_dir @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# exit if we are in the same UTS namespace as init ( != 2nd build ) +[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0 + +cd $BUILDDIR + +if [ "$(basename $(pwd))" != "2nd" ]; then + # build path variation disabled, so do nothing + exit 0 +fi + +# There should be only one file, the source directory. +src_dir=$(ls | head -n 1) + +# We want to keep the build path length to minimise the diff. So we just +# replace the first char of the source dir. +mv $src_dir _${src_dir:1} |