Diff of the two buildlogs: -- --- b1/build.log 2024-12-13 23:43:36.494277148 +0000 +++ b2/build.log 2024-12-13 23:46:41.033864287 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Dec 13 11:13:59 -12 2024 -I: pbuilder-time-stamp: 1734131639 +I: Current time: Sat Dec 14 13:43:49 +14 2024 +I: pbuilder-time-stamp: 1734133429 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -29,52 +29,84 @@ 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/3920/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/25419/tmp/hooks/D01_modify_environment starting +debug: Running on virt64z. +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 Dec 13 23:44 /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/25419/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/25419/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + 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]="37" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='8618ae789b754fd7b7f6cb91b42bc7a7' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - 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='3920' - PS1='# ' - PS2='> ' + INVOCATION_ID=d244eb44b4bc4af9a34fe2f50fb6c8ca + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=25419 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.hha1FOI4/pbuilderrc_GyPH --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.hha1FOI4/b1 --logfile b1/build.log terraform-switcher_0.13.1308+ds-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.hha1FOI4/pbuilderrc_w9Bx --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.hha1FOI4/b2 --logfile b2/build.log terraform-switcher_0.13.1308+ds-1.dsc' + SUDO_GID=110 + SUDO_UID=103 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux cbxi4a 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3920/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/25419/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -221,7 +253,7 @@ Get: 89 http://deb.debian.org/debian trixie/main armhf golang-github-subosito-gotenv-dev all 1.3.0-1 [9340 B] Get: 90 http://deb.debian.org/debian trixie/main armhf golang-gopkg-ini.v1-dev all 1.67.0-1 [39.9 kB] Get: 91 http://deb.debian.org/debian trixie/main armhf golang-github-spf13-viper-dev all 1.12.0-1 [68.9 kB] -Fetched 74.8 MB in 17s (4289 kB/s) +Fetched 74.8 MB in 1s (98.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package tzdata. (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 ... 19680 files and directories currently installed.) @@ -532,8 +564,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Dec 13 23:20:37 UTC 2024. -Universal Time is now: Fri Dec 13 23:20:37 UTC 2024. +Local time is now: Fri Dec 13 23:44:31 UTC 2024. +Universal Time is now: Fri Dec 13 23:44:31 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up golang-github-spf13-pflag-dev (1.0.6~git20210604-d5e0c0615ace-1) ... @@ -606,7 +638,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/25419/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/25419/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 @@ -624,35 +660,35 @@ 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 3 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib + cd _build && go install -trimpath -v -p 4 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib +internal/byteorder internal/goarch internal/unsafeheader internal/cpu -internal/byteorder internal/abi -internal/chacha8rand -internal/bytealg internal/coverage/rtcov +internal/chacha8rand internal/godebugs internal/goexperiment +internal/bytealg internal/goos internal/profilerecord -internal/runtime/syscall internal/runtime/atomic -internal/stringslite +internal/runtime/syscall runtime/internal/math runtime/internal/sys -internal/runtime/exithook +internal/stringslite cmp +internal/runtime/exithook internal/itoa internal/race math/bits unicode/utf8 sync/atomic -math unicode -runtime +math internal/asan +runtime internal/msan github.com/agext/levenshtein encoding @@ -666,52 +702,65 @@ vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/alias github.com/pelletier/go-toml/v2/internal/characters -internal/reflectlite iter -sync -slices internal/weak +internal/reflectlite +sync crypto/subtle +slices maps internal/testlog -internal/bisect internal/singleflight +internal/bisect +github.com/spf13/viper/internal/encoding runtime/cgo errors +sort internal/godebug strconv io internal/oserror path syscall +bytes reflect +strings +regexp/syntax time internal/syscall/unix internal/syscall/execenv -bytes -sort +regexp +bufio +github.com/mitchellh/go-wordwrap io/fs internal/poll -internal/fmtsort -internal/filepathlite -strings -github.com/mitchellh/go-wordwrap -encoding/binary -os -regexp/syntax -bufio github.com/apparentlymart/go-textseg/textseg -regexp -fmt -encoding/base64 +internal/filepathlite golang.org/x/text/transform hash hash/crc32 +internal/fmtsort +os +encoding/binary hash/crc64 math/rand github.com/google/go-cmp/cmp/internal/function -path/filepath +github.com/hashicorp/hcl/hcl/strconv +context +encoding/base64 github.com/google/go-cmp/cmp/internal/diff +vendor/golang.org/x/net/dns/dnsmessage +math/rand/v2 +golang.org/x/sys/unix +internal/concurrent +unique +fmt +path/filepath +io/ioutil +net/netip +os/signal +github.com/spf13/afero/internal/common +github.com/spf13/afero/mem github.com/hashicorp/go-version encoding/json github.com/zclconf/go-cty/cty/set @@ -719,155 +768,142 @@ math/big runtime/debug github.com/google/go-cmp/cmp/internal/value -github.com/google/go-cmp/cmp encoding/csv -io/ioutil -github.com/zclconf/go-cty/cty -github.com/hashicorp/hcl/hcl/strconv github.com/hashicorp/hcl/hcl/token +net/url +github.com/google/go-cmp/cmp github.com/hashicorp/hcl/hcl/ast github.com/hashicorp/hcl/hcl/scanner github.com/hashicorp/hcl/hcl/parser +github.com/zclconf/go-cty/cty github.com/hashicorp/hcl/json/token github.com/hashicorp/hcl/json/scanner +text/template/parse github.com/hashicorp/hcl/json/parser github.com/hashicorp/hcl -net/url -text/template/parse -github.com/zclconf/go-cty/cty/convert -github.com/zclconf/go-cty/cty/function -context -vendor/golang.org/x/net/dns/dnsmessage +net text/template -github.com/hashicorp/hcl/v2 -github.com/zclconf/go-cty/cty/gocty -github.com/hashicorp/hcl/v2/ext/customdecode -github.com/zclconf/go-cty/cty/json -math/rand/v2 -os/signal github.com/manifoldco/promptui/list -internal/concurrent -unique github.com/manifoldco/promptui/screenbuf text/tabwriter -net/netip github.com/pborman/getopt -github.com/zclconf/go-cty/cty/function/stdlib -golang.org/x/sys/unix -net -github.com/hashicorp/hcl/v2/hclsyntax +github.com/zclconf/go-cty/cty/convert +github.com/zclconf/go-cty/cty/function github.com/fsnotify/fsnotify/internal -github.com/fsnotify/fsnotify -github.com/spf13/afero/internal/common -github.com/spf13/afero/mem golang.org/x/text/runes -github.com/hashicorp/hcl/v2/hclwrite -github.com/hashicorp/hcl/v2/json -github.com/hashicorp/hcl/v2/hclparse -github.com/hashicorp/hcl/v2/gohcl +github.com/hashicorp/hcl/v2 +github.com/zclconf/go-cty/cty/gocty +github.com/zclconf/go-cty/cty/json +github.com/fsnotify/fsnotify +github.com/zclconf/go-cty/cty/function/stdlib +github.com/hashicorp/hcl/v2/ext/customdecode log compress/flate -github.com/hashicorp/terraform-config-inspect/tfconfig -compress/gzip crypto crypto/cipher +compress/gzip crypto/internal/boring crypto/internal/randutil -crypto/rand crypto/aes +crypto/rand crypto/des crypto/internal/edwards25519/field crypto/internal/nistec/fiat crypto/internal/bigmod -github.com/chzyer/readline -github.com/mitchellh/mapstructure crypto/internal/boring/bbig crypto/sha512 +github.com/hashicorp/hcl/v2/hclsyntax encoding/asn1 -github.com/manifoldco/promptui -crypto/internal/edwards25519 vendor/golang.org/x/crypto/cryptobyte +crypto/internal/edwards25519 crypto/ed25519 crypto/hmac vendor/golang.org/x/crypto/chacha20 crypto/internal/nistec vendor/golang.org/x/crypto/internal/poly1305 -vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/crypto/chacha20poly1305 +vendor/golang.org/x/crypto/hkdf vendor/golang.org/x/sys/cpu -crypto/md5 vendor/golang.org/x/crypto/sha3 -crypto/rc4 -crypto/rsa -crypto/internal/mlkem768 +github.com/hashicorp/hcl/v2/hclwrite +github.com/hashicorp/hcl/v2/json crypto/ecdh crypto/elliptic -crypto/sha1 +crypto/ecdsa +github.com/hashicorp/hcl/v2/hclparse +github.com/chzyer/readline +github.com/mitchellh/mapstructure +github.com/hashicorp/hcl/v2/gohcl crypto/internal/hpke +crypto/internal/mlkem768 +crypto/md5 +github.com/hashicorp/terraform-config-inspect/tfconfig +crypto/rc4 +crypto/rsa +crypto/sha1 crypto/sha256 crypto/dsa -crypto/ecdsa encoding/hex encoding/pem crypto/x509/pkix +github.com/manifoldco/promptui vendor/golang.org/x/text/transform vendor/golang.org/x/text/unicode/bidi -vendor/golang.org/x/text/unicode/norm crypto/x509 -vendor/golang.org/x/text/secure/bidirule +vendor/golang.org/x/text/unicode/norm net/textproto +vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/http2/hpack mime -vendor/golang.org/x/net/idna mime/quotedprintable -crypto/tls -mime/multipart -vendor/golang.org/x/net/http/httpguts -vendor/golang.org/x/net/http/httpproxy net/http/internal net/http/internal/ascii html +mime/multipart +html/template +vendor/golang.org/x/net/idna +crypto/tls github.com/spf13/jwalterweatherman flag -html/template -github.com/spf13/pflag +vendor/golang.org/x/net/http/httpguts +vendor/golang.org/x/net/http/httpproxy github.com/spf13/cast -github.com/spf13/viper/internal/encoding github.com/subosito/gotenv -github.com/spf13/viper/internal/encoding/dotenv +github.com/spf13/pflag github.com/hashicorp/hcl/hcl/printer -github.com/spf13/viper/internal/encoding/hcl +github.com/spf13/viper/internal/encoding/dotenv gopkg.in/ini.v1 +github.com/spf13/viper/internal/encoding/hcl github.com/spf13/viper/internal/encoding/json github.com/pelletier/go-toml/v2/internal/danger github.com/pelletier/go-toml/v2/unstable github.com/pelletier/go-toml/v2/internal/tracker -github.com/pelletier/go-toml/v2 -net/http/httptrace github.com/spf13/viper/internal/encoding/ini -net/http +github.com/pelletier/go-toml/v2 gopkg.in/yaml.v3 -github.com/spf13/viper/internal/encoding/toml archive/zip +github.com/spf13/viper/internal/encoding/toml os/exec +os/user github.com/mitchellh/go-homedir +net/http/httptrace +net/http github.com/spf13/viper/internal/encoding/yaml -os/user github.com/warrensbox/terraform-switcher/lib -github.com/magiconair/properties github.com/spf13/afero +github.com/magiconair/properties 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 3 github.com/warrensbox/terraform-switcher github.com/warrensbox/terraform-switcher/lib + cd _build && go test -vet=off -v -p 4 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] ---- PASS: TestMain (0.01s) - --- PASS: TestMain/User_should_exist (0.01s) + 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.140s +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) @@ -875,7 +911,7 @@ command_test.go:33: Found bin path [expected] --- PASS: TestPathList (0.00s) === RUN TestFind ---- PASS: TestFind (0.39s) +--- PASS: TestFind (0.03s) === RUN TestDownloadFromURL_FileNameMatch download_test.go:18: Debian package build disallows accessing $HOME and the internet --- SKIP: TestDownloadFromURL_FileNameMatch (0.00s) @@ -915,12 +951,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 @@ -969,7 +1005,7 @@ symlink_test.go:96: Debian package build disallows accessing $HOME --- SKIP: TestCheckSymlink (0.00s) PASS -ok github.com/warrensbox/terraform-switcher/lib 0.520s +ok github.com/warrensbox/terraform-switcher/lib 0.042s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -1005,12 +1041,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/25419/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/25419/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/3920 and its subdirectories -I: Current time: Fri Dec 13 11:43:32 -12 2024 -I: pbuilder-time-stamp: 1734133412 +I: removing directory /srv/workspace/pbuilder/25419 and its subdirectories +I: Current time: Sat Dec 14 13:46:37 +14 2024 +I: pbuilder-time-stamp: 1734133597