Diff of the two buildlogs: -- --- b1/build.log 2024-04-19 04:24:01.171413938 +0000 +++ b2/build.log 2024-04-19 04:27:20.226887491 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 21 22:46:04 -12 2025 -I: pbuilder-time-stamp: 1747910764 +I: Current time: Fri Apr 19 18:24:05 +14 2024 +I: pbuilder-time-stamp: 1713500645 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -30,54 +30,86 @@ dpkg-source: info: applying 0002-skip-tests-that-access-homedir-and-internet.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/8774/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 19 04:24 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='714fee581eb24f50ba7b8f0ea8aedfc9' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='8774' - PS1='# ' - PS2='> ' + INVOCATION_ID=c90fed07a0204c04836970bd797776fb + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=27349 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.PREkgJmG/pbuilderrc_gcIe --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.PREkgJmG/b1 --logfile b1/build.log terraform-switcher_0.13.1308+ds-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.PREkgJmG/pbuilderrc_RB5o --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.PREkgJmG/b2 --logfile b2/build.log terraform-switcher_0.13.1308+ds-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos6-i386 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 20 14:05 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/8774/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 18 07:42 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -223,7 +255,7 @@ Get: 88 http://deb.debian.org/debian unstable/main i386 golang-github-subosito-gotenv-dev all 1.3.0-1 [9340 B] Get: 89 http://deb.debian.org/debian unstable/main i386 golang-gopkg-ini.v1-dev all 1.67.0-1 [39.9 kB] Get: 90 http://deb.debian.org/debian unstable/main i386 golang-github-spf13-viper-dev all 1.12.0-1 [68.9 kB] -Fetched 73.4 MB in 2s (36.6 MB/s) +Fetched 73.4 MB in 4s (19.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19681 files and directories currently installed.) @@ -598,7 +630,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/terraform-switcher-0.13.1308+ds/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../terraform-switcher_0.13.1308+ds-1_source.changes +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/terraform-switcher-0.13.1308+ds/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../terraform-switcher_0.13.1308+ds-1_source.changes dpkg-buildpackage: info: source package terraform-switcher dpkg-buildpackage: info: source version 0.13.1308+ds-1 dpkg-buildpackage: info: source distribution unstable @@ -616,234 +652,234 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 22 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib -internal/goos -container/list -internal/godebugs -github.com/google/go-cmp/cmp/internal/flags -internal/coverage/rtcov -runtime/internal/syscall -internal/itoa + cd _build && go install -trimpath -v -p 10 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib internal/goarch internal/unsafeheader -internal/nettrace +internal/coverage/rtcov +internal/godebugs internal/goexperiment -encoding -unicode/utf16 -internal/race -unicode/utf8 -cmp -math/bits -github.com/agext/levenshtein runtime/internal/atomic +internal/goos internal/cpu +math/bits +runtime/internal/syscall +internal/itoa +internal/chacha8rand +unicode/utf8 +runtime/internal/math +internal/abi +runtime/internal/sys +internal/race sync/atomic +cmp +github.com/agext/levenshtein +encoding unicode +slices +math +unicode/utf16 +github.com/google/go-cmp/cmp/internal/flags +container/list +internal/nettrace log/internal +internal/bytealg crypto/internal/alias -runtime/internal/math -internal/chacha8rand -internal/abi crypto/internal/boring/sig vendor/golang.org/x/crypto/cryptobyte/asn1 -runtime/internal/sys vendor/golang.org/x/crypto/internal/alias github.com/pelletier/go-toml/v2/internal/characters -slices -math -internal/bytealg runtime -crypto/subtle internal/reflectlite +crypto/subtle sync internal/testlog +internal/bisect internal/singleflight github.com/spf13/viper/internal/encoding -internal/bisect runtime/cgo errors sort +strconv internal/oserror -internal/safefilepath -path +internal/godebug io +path github.com/hashicorp/hcl/hcl/strconv -internal/godebug vendor/golang.org/x/net/dns/dnsmessage -strconv crypto/internal/nistec/fiat +internal/safefilepath syscall -internal/intern math/rand -hash -crypto/internal/randutil -text/tabwriter strings +hash bytes -hash/crc64 +internal/intern hash/crc32 -crypto/rc4 -crypto -net/netip -reflect +hash/crc64 +text/tabwriter +crypto/internal/randutil github.com/mitchellh/go-wordwrap -vendor/golang.org/x/text/transform golang.org/x/text/transform -net/http/internal/ascii -bufio +vendor/golang.org/x/text/transform +net/netip +crypto +reflect +golang.org/x/text/runes +crypto/rc4 regexp/syntax +bufio +net/http/internal/ascii html -golang.org/x/text/runes github.com/apparentlymart/go-textseg/textseg -regexp -internal/syscall/execenv internal/syscall/unix time -crypto/internal/nistec +internal/syscall/execenv +regexp github.com/google/go-cmp/cmp/internal/diff -context io/fs +context internal/poll +crypto/internal/nistec +github.com/spf13/afero/internal/common +os internal/fmtsort github.com/google/go-cmp/cmp/internal/function encoding/binary -github.com/spf13/afero/internal/common -os encoding/base64 -crypto/internal/edwards25519/field vendor/golang.org/x/crypto/internal/poly1305 -crypto/md5 crypto/cipher +crypto/md5 +crypto/internal/edwards25519/field golang.org/x/sys/unix -encoding/pem crypto/internal/edwards25519 +encoding/pem crypto/internal/boring -crypto/des vendor/golang.org/x/crypto/chacha20 +crypto/des +path/filepath +io/ioutil +os/signal +fmt +net +crypto/aes crypto/ecdh crypto/sha512 -crypto/sha1 -crypto/aes crypto/hmac +crypto/sha1 crypto/sha256 -vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/crypto/chacha20poly1305 -io/ioutil -os/signal -path/filepath -fmt -net github.com/spf13/afero/mem +vendor/golang.org/x/crypto/hkdf os/exec github.com/mitchellh/go-homedir +github.com/zclconf/go-cty/cty/set github.com/hashicorp/go-version +math/big +github.com/google/go-cmp/cmp/internal/value encoding/csv -github.com/zclconf/go-cty/cty/set -github.com/manifoldco/promptui/screenbuf -github.com/hashicorp/hcl/hcl/token -log -github.com/manifoldco/promptui/list -net/url runtime/debug -encoding/hex -mime -text/template/parse -vendor/golang.org/x/net/http2/hpack -github.com/google/go-cmp/cmp/internal/value -encoding/json -github.com/pborman/getopt -compress/flate -vendor/golang.org/x/text/unicode/norm -math/big golang.org/x/text/unicode/norm -mime/quotedprintable -net/http/internal -flag +encoding/json +github.com/hashicorp/hcl/hcl/token github.com/hashicorp/hcl/hcl/ast github.com/hashicorp/hcl/hcl/scanner github.com/hashicorp/hcl/json/token -github.com/subosito/gotenv -gopkg.in/ini.v1 -github.com/pelletier/go-toml/v2/internal/danger -gopkg.in/yaml.v3 -vendor/golang.org/x/text/unicode/bidi -github.com/spf13/jwalterweatherman -github.com/hashicorp/hcl/hcl/parser -github.com/hashicorp/hcl/json/scanner github.com/google/go-cmp/cmp -os/user -github.com/pelletier/go-toml/v2/unstable -compress/gzip -archive/zip +net/url +text/template/parse +github.com/hashicorp/hcl/json/scanner +github.com/hashicorp/hcl/hcl/parser github.com/hashicorp/hcl/json/parser -github.com/hashicorp/hcl/hcl/printer +github.com/manifoldco/promptui/list +github.com/manifoldco/promptui/screenbuf github.com/hashicorp/hcl +github.com/pborman/getopt +log +compress/flate +encoding/hex +vendor/golang.org/x/text/unicode/bidi +vendor/golang.org/x/text/unicode/norm +vendor/golang.org/x/net/http2/hpack text/template -github.com/pelletier/go-toml/v2/internal/tracker +mime +mime/quotedprintable +compress/gzip +net/http/internal vendor/golang.org/x/text/secure/bidirule -github.com/pelletier/go-toml/v2 -github.com/spf13/viper/internal/encoding/json -github.com/spf13/viper/internal/encoding/hcl -vendor/golang.org/x/net/idna -github.com/fsnotify/fsnotify +github.com/zclconf/go-cty/cty +crypto/rand crypto/elliptic -crypto/internal/boring/bbig -crypto/dsa crypto/internal/bigmod -crypto/rand +crypto/internal/boring/bbig encoding/asn1 -github.com/zclconf/go-cty/cty +crypto/dsa crypto/ed25519 -html/template +github.com/spf13/jwalterweatherman +github.com/fsnotify/fsnotify +flag +github.com/subosito/gotenv +github.com/hashicorp/hcl/hcl/printer crypto/rsa -github.com/spf13/viper/internal/encoding/toml -github.com/spf13/viper/internal/encoding/yaml -crypto/x509/pkix +gopkg.in/ini.v1 +html/template +github.com/spf13/viper/internal/encoding/json vendor/golang.org/x/crypto/cryptobyte +crypto/x509/pkix +github.com/pelletier/go-toml/v2/internal/danger +github.com/spf13/viper/internal/encoding/hcl +github.com/pelletier/go-toml/v2/unstable +vendor/golang.org/x/net/idna +gopkg.in/yaml.v3 +archive/zip +os/user +github.com/pelletier/go-toml/v2/internal/tracker crypto/ecdsa +github.com/pelletier/go-toml/v2 github.com/spf13/cast -github.com/spf13/viper/internal/encoding/ini -github.com/spf13/viper/internal/encoding/dotenv github.com/zclconf/go-cty/cty/function github.com/zclconf/go-cty/cty/convert +github.com/spf13/viper/internal/encoding/dotenv +github.com/spf13/viper/internal/encoding/ini github.com/zclconf/go-cty/cty/gocty github.com/zclconf/go-cty/cty/json github.com/hashicorp/hcl/v2 +github.com/spf13/viper/internal/encoding/toml +github.com/spf13/viper/internal/encoding/yaml github.com/zclconf/go-cty/cty/function/stdlib github.com/hashicorp/hcl/v2/ext/customdecode -github.com/hashicorp/hcl/v2/hclsyntax github.com/mitchellh/mapstructure -vendor/golang.org/x/net/http/httpproxy net/textproto +vendor/golang.org/x/net/http/httpproxy +github.com/spf13/pflag github.com/chzyer/readline crypto/x509 -github.com/spf13/pflag vendor/golang.org/x/net/http/httpguts mime/multipart +github.com/hashicorp/hcl/v2/hclsyntax +crypto/tls github.com/manifoldco/promptui -github.com/hashicorp/hcl/v2/json github.com/hashicorp/hcl/v2/hclwrite -crypto/tls +github.com/hashicorp/hcl/v2/json github.com/hashicorp/hcl/v2/hclparse -github.com/hashicorp/hcl/v2/gohcl -github.com/hashicorp/terraform-config-inspect/tfconfig net/http/httptrace net/http -github.com/warrensbox/terraform-switcher/lib -github.com/magiconair/properties +github.com/hashicorp/hcl/v2/gohcl +github.com/hashicorp/terraform-config-inspect/tfconfig github.com/spf13/afero +github.com/magiconair/properties +github.com/warrensbox/terraform-switcher/lib github.com/spf13/viper/internal/encoding/javaproperties github.com/spf13/viper github.com/warrensbox/terraform-switcher dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 22 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib + cd _build && go test -vet=off -v -p 10 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib === RUN TestMain === RUN TestMain/User_should_exist - main_test.go:19: Current user exist: /nonexistent/first-build [expected] + main_test.go:19: Current user exist: /nonexistent/second-build [expected] --- PASS: TestMain (0.00s) --- PASS: TestMain/User_should_exist (0.00s) PASS -ok github.com/warrensbox/terraform-switcher 0.005s +ok github.com/warrensbox/terraform-switcher 0.016s === RUN TestNewCommand command_test.go:17: Value returned is a pointer &{terraform} [expected] --- PASS: TestNewCommand (0.00s) @@ -851,7 +887,7 @@ command_test.go:33: Found bin path [expected] --- PASS: TestPathList (0.00s) === RUN TestFind ---- PASS: TestFind (0.01s) +--- PASS: TestFind (0.04s) === RUN TestDownloadFromURL_FileNameMatch download_test.go:18: Debian package build disallows accessing $HOME and the internet --- SKIP: TestDownloadFromURL_FileNameMatch (0.00s) @@ -891,12 +927,12 @@ === RUN TestConvertExecutableExt files_test.go:488: terraform converted to terraform on linux (expected) files_test.go:488: terraform.exe converted to terraform.exe on linux (expected) - files_test.go:488: /nonexistent/first-build/.terraform.versions_test/terraform converted to /nonexistent/first-build/.terraform.versions_test/terraform on linux (expected) - files_test.go:488: /nonexistent/first-build/.terraform.versions_test/terraform.exe converted to /nonexistent/first-build/.terraform.versions_test/terraform.exe on linux (expected) + files_test.go:488: /nonexistent/second-build/.terraform.versions_test/terraform converted to /nonexistent/second-build/.terraform.versions_test/terraform on linux (expected) + files_test.go:488: /nonexistent/second-build/.terraform.versions_test/terraform.exe converted to /nonexistent/second-build/.terraform.versions_test/terraform.exe on linux (expected) --- PASS: TestConvertExecutableExt (0.00s) === RUN TestInstall === RUN TestInstall/User_should_exist - install_test.go:34: Current user exist: /nonexistent/first-build [expected] + install_test.go:34: Current user exist: /nonexistent/second-build [expected] --- PASS: TestInstall (0.00s) --- PASS: TestInstall/User_should_exist (0.00s) === RUN TestGetTFList @@ -945,7 +981,7 @@ symlink_test.go:96: Debian package build disallows accessing $HOME --- SKIP: TestCheckSymlink (0.00s) PASS -ok github.com/warrensbox/terraform-switcher/lib 0.019s +ok github.com/warrensbox/terraform-switcher/lib 0.100s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -981,12 +1017,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/27349/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/8774 and its subdirectories -I: Current time: Wed May 21 22:46:59 -12 2025 -I: pbuilder-time-stamp: 1747910819 +I: removing directory /srv/workspace/pbuilder/27349 and its subdirectories +I: Current time: Fri Apr 19 18:27:19 +14 2024 +I: pbuilder-time-stamp: 1713500839