Diff of the two buildlogs: -- --- b1/build.log 2020-07-15 06:24:31.545449508 +0000 +++ b2/build.log 2020-07-15 06:28:54.499268913 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Aug 17 00:47:11 -12 2021 -I: pbuilder-time-stamp: 1629204431 +I: Current time: Wed Jul 15 20:24:33 +14 2020 +I: pbuilder-time-stamp: 1594794273 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Fri Jan 18 09:28:01 2019 -12 +gpgv: Signature made Sat Jan 19 11:28:01 2019 +14 gpgv: using RSA key 05DB6A837E105F4B1D02C55FBBA9FAADCCFB4707 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./recoverdm_0.20-6.dsc @@ -31,138 +31,172 @@ dpkg-source: info: applying 30-fix-BTS-mergebad-crash.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/31453/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3572/tmp/hooks/D01_modify_environment starting +debug: Running on profitbricks-build12-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 +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/3572/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3572/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - 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=18' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + 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= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='6a2296514b184d9c8128ac07199a18c1' - 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='31453' - PS1='# ' - PS2='> ' + INVOCATION_ID=48069ec324594de980b3c08ed9726868 + 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=3572 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/tmp.7gxylCRXQh/pbuilderrc_VWnp --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.7gxylCRXQh/b1 --logfile b1/build.log recoverdm_0.20-6.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/tmp.7gxylCRXQh/pbuilderrc_NFB8 --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.7gxylCRXQh/b2 --logfile b2/build.log recoverdm_0.20-6.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 profitbricks-build16-i386 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-9-686-pae #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) i686 GNU/Linux I: ls -l /bin - total 5476 - -rwxr-xr-x 1 root root 1302248 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 17768 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 38692 Feb 28 2019 cat - -rwxr-xr-x 1 root root 75588 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 63268 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 75588 Feb 28 2019 chown - -rwxr-xr-x 1 root root 153732 Feb 28 2019 cp - -rwxr-xr-x 1 root root 132820 Jan 17 2019 dash - -rwxr-xr-x 1 root root 120676 Feb 28 2019 date - -rwxr-xr-x 1 root root 92040 Feb 28 2019 dd - -rwxr-xr-x 1 root root 100620 Feb 28 2019 df - -rwxr-xr-x 1 root root 149736 Feb 28 2019 dir - -rwxr-xr-x 1 root root 79412 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 34532 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 34532 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 67700 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 30112 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 206392 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 100952 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 21916 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 79752 Feb 28 2019 ln - -rwxr-xr-x 1 root root 55400 Jul 26 2018 login - -rwxr-xr-x 1 root root 149736 Feb 28 2019 ls - -rwxr-xr-x 1 root root 112032 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 87972 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 79748 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 46916 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 42348 Jan 9 2019 more - -rwsr-xr-x 1 root root 50592 Jan 9 2019 mount - -rwxr-xr-x 1 root root 13724 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 157832 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38660 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 46852 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 75588 Feb 28 2019 rm - -rwxr-xr-x 1 root root 42756 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 22276 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 15 02:47 sh -> dash - -rwxr-xr-x 1 root root 34532 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 79652 Feb 28 2019 stty - -rwsr-xr-x 1 root root 71072 Jan 9 2019 su - -rwxr-xr-x 1 root root 34564 Feb 28 2019 sync - -rwxr-xr-x 1 root root 504024 Apr 23 2019 tar - -rwxr-xr-x 1 root root 13860 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 104292 Feb 28 2019 touch - -rwxr-xr-x 1 root root 34532 Feb 28 2019 true - -rwxr-xr-x 1 root root 17768 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 30108 Jan 9 2019 umount - -rwxr-xr-x 1 root root 34532 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 149736 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34208 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/31453/tmp/hooks/D02_print_environment finished + total 5492 + -rwxr-xr-x 1 root root 1302248 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 17768 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 38692 Mar 1 2019 cat + -rwxr-xr-x 1 root root 75588 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 63268 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 75588 Mar 1 2019 chown + -rwxr-xr-x 1 root root 153732 Mar 1 2019 cp + -rwxr-xr-x 1 root root 132820 Jan 18 2019 dash + -rwxr-xr-x 1 root root 120676 Mar 1 2019 date + -rwxr-xr-x 1 root root 92040 Mar 1 2019 dd + -rwxr-xr-x 1 root root 100620 Mar 1 2019 df + -rwxr-xr-x 1 root root 149736 Mar 1 2019 dir + -rwxr-xr-x 1 root root 79412 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 34532 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 34532 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 67700 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 30112 Apr 23 09:38 fusermount + -rwxr-xr-x 1 root root 206392 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 100952 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 21916 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 79752 Mar 1 2019 ln + -rwxr-xr-x 1 root root 55400 Jul 27 2018 login + -rwxr-xr-x 1 root root 149736 Mar 1 2019 ls + -rwxr-xr-x 1 root root 112032 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 87972 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 79748 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 46916 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 42348 Jan 10 2019 more + -rwsr-xr-x 1 root root 50592 Jan 10 2019 mount + -rwxr-xr-x 1 root root 13724 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 157832 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38660 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 46852 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 75588 Mar 1 2019 rm + -rwxr-xr-x 1 root root 42756 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 22276 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 15 20:27 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 14 22:25 sh.distrib -> dash + -rwxr-xr-x 1 root root 34532 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 79652 Mar 1 2019 stty + -rwsr-xr-x 1 root root 71072 Jan 10 2019 su + -rwxr-xr-x 1 root root 34564 Mar 1 2019 sync + -rwxr-xr-x 1 root root 504024 Apr 24 2019 tar + -rwxr-xr-x 1 root root 13860 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 104292 Mar 1 2019 touch + -rwxr-xr-x 1 root root 34532 Mar 1 2019 true + -rwxr-xr-x 1 root root 17768 Apr 23 09:38 ulockmgr_server + -rwsr-xr-x 1 root root 30108 Jan 10 2019 umount + -rwxr-xr-x 1 root root 34532 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 149736 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34208 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/3572/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -231,7 +265,7 @@ Get: 31 http://deb.debian.org/debian buster/main i386 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 32 http://deb.debian.org/debian buster/main i386 po-debconf all 1.0.21 [248 kB] Get: 33 http://deb.debian.org/debian buster/main i386 debhelper all 12.1.1 [1016 kB] -Fetched 19.4 MB in 0s (86.2 MB/s) +Fetched 19.4 MB in 5s (3882 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (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 ... 19234 files and directories currently installed.) @@ -386,7 +420,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/recoverdm-0.20/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/recoverdm-0.20/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package recoverdm dpkg-buildpackage: info: source version 0.20-6 dpkg-buildpackage: info: source distribution unstable @@ -396,7 +430,7 @@ fakeroot debian/rules clean dh clean dh_auto_clean - make -j18 clean + make -j10 clean make[1]: Entering directory '/build/recoverdm-0.20' rm -f recoverdm.o dev.o io.o utils.o error.o mergebad.o io.o utils.o error.o recoverdm mergebad core make[1]: Leaving directory '/build/recoverdm-0.20' @@ -407,7 +441,7 @@ dh_autoreconf dh_auto_configure dh_auto_build - make -j18 "INSTALL=install --strip-program=true" + make -j10 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/recoverdm-0.20' cc -g -O2 -ffile-prefix-map=/build/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o recoverdm.o recoverdm.c cc -g -O2 -ffile-prefix-map=/build/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dev.o dev.c @@ -426,58 +460,36 @@ io.c:42:8: warning: conversion to 'size_t' {aka 'unsigned int'} from 'ssize_t' {aka 'int'} may change the sign of the result [-Wsign-conversion] len -= rc; ^~ +io.c: In function 'WRITE': +io.c:75:8: warning: conversion to 'size_t' {aka 'unsigned int'} from 'ssize_t' {aka 'int'} may change the sign of the result [-Wsign-conversion] + len -= rc; + ^~ recoverdm.c: In function 'lba_to_msf': recoverdm.c:55:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] *minute = (lba + 150) / (60 * 75); ^ utils.c: In function 'mymalloc': -recoverdm.c:57:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] - *second = (lba + 150) / 75; - ^ -io.c: In function 'WRITE': utils.c:21:14: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] error_exit("failed to allocate %d bytes for %s\n", size, what); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -recoverdm.c:59:12: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] - *frame = (lba + 150); - ^ -io.c:75:8: warning: conversion to 'size_t' {aka 'unsigned int'} from 'ssize_t' {aka 'int'} may change the sign of the result [-Wsign-conversion] - len -= rc; - ^~ -recoverdm.c:63:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] - *minute = (lba + 450150) / (60 * 75); - ^ In file included from utils.c:15: error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ -recoverdm.c:65:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] - *second = (lba + 450150) / 75; - ^ -recoverdm.c:67:12: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] - *frame = (lba + 450150); - ^ utils.c: In function 'myrealloc': -recoverdm.c: In function 'create_sector': -recoverdm.c:75:50: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - char *sector_out = (char *)mymalloc(block_size, "sector"); - ^~~~~~~~ utils.c:30:14: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] error_exit("failed to reallocate to %d bytes for %s\n", newsize, what); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +io.c: In function 'phantom_write': In file included from utils.c:15: error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ -In file included from recoverdm.c:13: -utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' - void * mymalloc(size_t size, char *what); - ^~~~~~~~ -io.c: In function 'phantom_write': io.c:111:18: warning: conversion from 'off64_t' {aka 'long long int'} to 'size_t' {aka 'unsigned int'} may change value [-Wconversion] move_a_little = 512 - (curpos & 511); ^~~ utils.c: In function 'get_filesize': +mergebad.c: In function 'read_mapfile': utils.c:40:14: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] error_exit("Failed to retrieve length of file %s: %s (%d)\n", filename, strerror(errno), errno); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -488,44 +500,9 @@ error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ -recoverdm.c:107:25: warning: conversion from 'int' to 'short int' may change value [-Wconversion] - chosen_byte_count = count[loop2]; - ^~~~~ -recoverdm.c:108:19: warning: conversion from 'int' to 'short int' may change value [-Wconversion] - chosen_byte = loop2; - ^~~~~ -recoverdm.c:126:23: warning: conversion from 'short int' to 'char' may change value [-Wconversion] - sector_out[loop] = chosen_byte; - ^~~~~~~~~~~ -In file included from utils.c:13: -utils.c: In function 'copy_block': -io.c:181:10: warning: conversion to 'size_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - nbytes -= rc; - ^~ -gen.h:1:25: warning: conversion from 'off64_t' {aka 'long long int'} to 'size_t' {aka 'unsigned int'} may change value [-Wconversion] - #define min(x, y) ((x)<(y)?(x):(y)) - ^ -utils.c:51:24: note: in expansion of macro 'min' - size_t sector_size = min(block_size, 512); - ^~~ -recoverdm.c:149:23: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] - sector_out[loop] = sectors[max_n_ok_index][loop]; - ^~~~~~~ -recoverdm.c: In function 'get_raw_cd': -mergebad.c: In function 'read_mapfile': -recoverdm.c:169:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); - ^ mergebad.c:191:53: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] bbs = (badblock *)myrealloc(bbs, sizeof(badblock) * (n_bb + 1), "badblocks list"); ^ -recoverdm.c:169:74: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); - ^~~~~~~~~~~~ -In file included from recoverdm.c:13: -utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' - void * mymalloc(size_t size, char *what); - ^~~~~~~~ mergebad.c:191:67: warning: passing argument 3 of 'myrealloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] bbs = (badblock *)myrealloc(bbs, sizeof(badblock) * (n_bb + 1), "badblocks list"); ^~~~~~~~~~~~~~~~ @@ -533,31 +510,13 @@ utils.h:2:8: note: expected 'char *' but argument is of type 'const char *' void * myrealloc(void *oldp, size_t newsize, char *what); ^~~~~~~~~ -recoverdm.c:174:53: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - sector_list[loop] = (char *)mymalloc(block_size, "sector"); - ^~~~~~~~ -In file included from recoverdm.c:13: -utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' - void * mymalloc(size_t size, char *what); - ^~~~~~~~ -recoverdm.c:184:22: warning: passing argument 1 of 'create_sector' from incompatible pointer type [-Wincompatible-pointer-types] - if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1) - ^~~~~~~~~~~ -recoverdm.c:71:35: note: expected 'unsigned char **' but argument is of type 'char **' - int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out) - ~~~~~~~~~~~~~~~~^~~~~~~ +io.c:181:10: warning: conversion to 'size_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + nbytes -= rc; + ^~ mergebad.c:196:24: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'int' [-Wformat=] printf("%d] %lld %lld\n", n_bb, offset, block_size); ~~~^ ~~~~~~~~~~ %d -utils.c: In function 'myseek': -utils.c:78:14: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from utils.c:15: -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - void error_exit(char *format, ...); - ~~~~~~^~~~~~ mergebad.c: In function 'select_most_occuring_byte': mergebad.c:228:20: warning: conversion from 'int' to 'char' may change value [-Wconversion] selected_byte = loop; @@ -569,23 +528,10 @@ error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ -recoverdm.c: In function 'main': -recoverdm.c:235:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] - dev_type = atoi(optarg); - ^~~~ -recoverdm.c:256:16: warning: conversion from 'int' to 'char' may change value [-Wconversion] - n_retries = atoi(optarg); - ^~~~ -recoverdm.c:262:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] - cd_speed = atoi(optarg); - ^~~~ mergebad.c: In function 'main': mergebad.c:272:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); ^ -recoverdm.c:265:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] - n_raw_cd_retries = atoi(optarg); - ^~~~ mergebad.c:272:57: warning: passing argument 3 of 'myrealloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); ^~~~~~~~~~~~~~~~~ @@ -593,43 +539,49 @@ utils.h:2:8: note: expected 'char *' but argument is of type 'const char *' void * myrealloc(void *oldp, size_t newsize, char *what); ^~~~~~~~~ -dev.c: In function 'read_raw_cd': -dev.c:174:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] - memcpy(whereto, &pframe[12 + 4], 2048); - ^~~~~~ -dev.c:174:2: warning: incompatible implicit declaration of built-in function 'memcpy' -dev.c:174:2: note: include '' or provide a declaration of 'memcpy' -dev.c:23:1: -+#include - -dev.c:174:2: - memcpy(whereto, &pframe[12 + 4], 2048); - ^~~~~~ -recoverdm.c:307:40: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - buffer = (char *)mymalloc(block_size, "sectorbuffer"); - ^~~~~~~~~~~~~~ -In file included from recoverdm.c:13: -utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' - void * mymalloc(size_t size, char *what); - ^~~~~~~~ -recoverdm.c:308:41: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); - ^~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from utils.c:13: +utils.c: In function 'copy_block': +recoverdm.c:57:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] + *second = (lba + 150) / 75; + ^ +recoverdm.c:59:12: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] + *frame = (lba + 150); + ^ +recoverdm.c:63:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] + *minute = (lba + 450150) / (60 * 75); + ^ +recoverdm.c:65:13: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] + *second = (lba + 450150) / 75; + ^ +recoverdm.c:67:12: warning: conversion from 'off64_t' {aka 'long long int'} to 'unsigned char' may change value [-Wconversion] + *frame = (lba + 450150); + ^ +recoverdm.c: In function 'create_sector': +recoverdm.c:75:50: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + char *sector_out = (char *)mymalloc(block_size, "sector"); + ^~~~~~~~ In file included from recoverdm.c:13: utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' void * mymalloc(size_t size, char *what); ^~~~~~~~ +gen.h:1:25: warning: conversion from 'off64_t' {aka 'long long int'} to 'size_t' {aka 'unsigned int'} may change value [-Wconversion] + #define min(x, y) ((x)<(y)?(x):(y)) + ^ +utils.c:51:24: note: in expansion of macro 'min' + size_t sector_size = min(block_size, 512); + ^~~ mergebad.c:321:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'off64_t' {aka 'long long int'} [-Wformat=] printf("Length set to: %d\n", length); ~^ ~~~~~~ %lld -recoverdm.c:445:56: warning: conversion to 'size_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - ^ -recoverdm.c:445:32: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] - fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - ~~^ ~~~~~~~~~~~~~~~~~~~~~ - %d +utils.c: In function 'myseek': +utils.c:78:14: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from utils.c:15: +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + void error_exit(char *format, ...); + ~~~~~~^~~~~~ mergebad.c:419:44: warning: conversion to 'size_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] guess_bytes = (unsigned char *)mymalloc(n_imgs, "temp buffer for bytes from each image to select from"); ^~~~~~ @@ -654,9 +606,6 @@ error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ -recoverdm.c:440:10: warning: variable 'ok' set but not used [-Wunused-but-set-variable] - char ok = 1; - ^~ mergebad.c:455:29: warning: conversion from 'off64_t' {aka 'long long int'} to 'size_t' {aka 'unsigned int'} may change value [-Wconversion] output_buffer = mymalloc(n_to_guess, "guessed bytes"); ^~~~~~~~~~ @@ -674,6 +623,91 @@ mergebad.c:189:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fh, "%lld %d", &offset, &block_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +recoverdm.c:107:25: warning: conversion from 'int' to 'short int' may change value [-Wconversion] + chosen_byte_count = count[loop2]; + ^~~~~ +recoverdm.c:108:19: warning: conversion from 'int' to 'short int' may change value [-Wconversion] + chosen_byte = loop2; + ^~~~~ +recoverdm.c:126:23: warning: conversion from 'short int' to 'char' may change value [-Wconversion] + sector_out[loop] = chosen_byte; + ^~~~~~~~~~~ +recoverdm.c:149:23: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] + sector_out[loop] = sectors[max_n_ok_index][loop]; + ^~~~~~~ +recoverdm.c: In function 'get_raw_cd': +recoverdm.c:169:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); + ^ +recoverdm.c:169:74: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); + ^~~~~~~~~~~~ +In file included from recoverdm.c:13: +utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' + void * mymalloc(size_t size, char *what); + ^~~~~~~~ +recoverdm.c:174:53: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + sector_list[loop] = (char *)mymalloc(block_size, "sector"); + ^~~~~~~~ +In file included from recoverdm.c:13: +utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' + void * mymalloc(size_t size, char *what); + ^~~~~~~~ +recoverdm.c:184:22: warning: passing argument 1 of 'create_sector' from incompatible pointer type [-Wincompatible-pointer-types] + if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1) + ^~~~~~~~~~~ +recoverdm.c:71:35: note: expected 'unsigned char **' but argument is of type 'char **' + int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out) + ~~~~~~~~~~~~~~~~^~~~~~~ +recoverdm.c: In function 'main': +recoverdm.c:235:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] + dev_type = atoi(optarg); + ^~~~ +recoverdm.c:256:16: warning: conversion from 'int' to 'char' may change value [-Wconversion] + n_retries = atoi(optarg); + ^~~~ +recoverdm.c:262:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] + cd_speed = atoi(optarg); + ^~~~ +recoverdm.c:265:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] + n_raw_cd_retries = atoi(optarg); + ^~~~ +recoverdm.c:307:40: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + buffer = (char *)mymalloc(block_size, "sectorbuffer"); + ^~~~~~~~~~~~~~ +In file included from recoverdm.c:13: +utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' + void * mymalloc(size_t size, char *what); + ^~~~~~~~ +recoverdm.c:308:41: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); + ^~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from recoverdm.c:13: +utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' + void * mymalloc(size_t size, char *what); + ^~~~~~~~ +recoverdm.c:445:56: warning: conversion to 'size_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + ^ +recoverdm.c:445:32: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] + fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + ~~^ ~~~~~~~~~~~~~~~~~~~~~ + %d +recoverdm.c:440:10: warning: variable 'ok' set but not used [-Wunused-but-set-variable] + char ok = 1; + ^~ +dev.c: In function 'read_raw_cd': +dev.c:174:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] + memcpy(whereto, &pframe[12 + 4], 2048); + ^~~~~~ +dev.c:174:2: warning: incompatible implicit declaration of built-in function 'memcpy' +dev.c:174:2: note: include '' or provide a declaration of 'memcpy' +dev.c:23:1: ++#include + +dev.c:174:2: + memcpy(whereto, &pframe[12 + 4], 2048); + ^~~~~~ cc -Wall -W recoverdm.o dev.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o recoverdm cc -Wall -W mergebad.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o mergebad make[1]: Leaving directory '/build/recoverdm-0.20' @@ -685,7 +719,7 @@ dh_prep dh_installdirs dh_auto_install - make -j18 install DESTDIR=/build/recoverdm-0.20/debian/recoverdm AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" + make -j10 install DESTDIR=/build/recoverdm-0.20/debian/recoverdm AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/recoverdm-0.20' cp recoverdm mergebad /build/recoverdm-0.20/debian/recoverdm/usr/bin echo @@ -717,12 +751,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/3572/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3572/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/31453 and its subdirectories -I: Current time: Tue Aug 17 00:47:29 -12 2021 -I: pbuilder-time-stamp: 1629204449 +I: removing directory /srv/workspace/pbuilder/3572 and its subdirectories +I: Current time: Wed Jul 15 20:28:54 +14 2020 +I: pbuilder-time-stamp: 1594794534