Diff of the two buildlogs: -- --- b1/build.log 2023-04-26 23:32:29.147615862 +0000 +++ b2/build.log 2023-04-26 23:35:49.606720245 +0000 @@ -1,9 +1,6 @@ -W: cgroups are not available on the host, not using them. -unshare: unshare failed: Cannot allocate memory -W: pbuilder: unshare CLONE_NEWNET not available -I: pbuilder: network access is available during build! -I: Current time: Wed Apr 26 11:27:14 -12 2023 -I: pbuilder-time-stamp: 1682551634 +I: pbuilder: network access will be disabled during build +I: Current time: Wed May 29 19:57:30 +14 2024 +I: pbuilder-time-stamp: 1716962250 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -20,7 +17,7 @@ I: copying [./octave-geometry_4.0.0.orig.tar.gz] I: copying [./octave-geometry_4.0.0-6.debian.tar.xz] I: Extracting source -gpgv: Signature made Sun Dec 4 22:26:50 2022 -12 +gpgv: Signature made Tue Dec 6 00:26:50 2022 +14 gpgv: using RSA key 3F464391498FE874BDB5D98F2124AA1983785C90 gpgv: issuer "rafael@debian.org" gpgv: Can't check signature: No public key @@ -34,136 +31,169 @@ dpkg-source: info: applying octave7.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/4074/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/126529/tmp/hooks/D01_modify_environment starting +debug: Running on ionos6-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 May 29 19:57 /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/126529/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/126529/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=8' - DISTRIBUTION='bookworm' - 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]="15" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.15(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=15' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - 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='4074' - PS1='# ' - PS2='> ' + INVOCATION_ID=6db15c85120a46d6bad016d57d6b9baa + 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=126529 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.i4SriCUd/pbuilderrc_jw8k --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.i4SriCUd/b1 --logfile b1/build.log octave-geometry_4.0.0-6.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/sbin/chroot' - http_proxy='http://78.137.99.97: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.i4SriCUd/pbuilderrc_8im6 --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.i4SriCUd/b2 --logfile b2/build.log --extrapackages usrmerge octave-geometry_4.0.0-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://85.184.249.68:3128 I: uname -a - Linux ionos12-i386 5.10.0-21-686-pae #1 SMP Debian 5.10.162-1 (2023-01-21) i686 GNU/Linux + Linux i-capture-the-hostname 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux I: ls -l /bin total 6036 - -rwxr-xr-x 1 root root 1408088 Apr 23 09:24 bash - -rwxr-xr-x 3 root root 38404 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 38404 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 38404 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 17892 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 42920 Sep 20 2022 cat - -rwxr-xr-x 1 root root 79816 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 67496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 79816 Sep 20 2022 chown - -rwxr-xr-x 1 root root 162024 Sep 20 2022 cp - -rwxr-xr-x 1 root root 136916 Jan 5 01:20 dash - -rwxr-xr-x 1 root root 137160 Sep 20 2022 date - -rwxr-xr-x 1 root root 100364 Sep 20 2022 dd - -rwxr-xr-x 1 root root 108940 Sep 20 2022 df - -rwxr-xr-x 1 root root 162152 Sep 20 2022 dir - -rwxr-xr-x 1 root root 87760 Mar 22 22:20 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 01:33 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 01:33 domainname -> hostname - -rwxr-xr-x 1 root root 38760 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 02:43 egrep - -rwxr-xr-x 1 root root 34664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 02:43 fgrep - -rwxr-xr-x 1 root root 84272 Mar 22 22:20 findmnt - -rwsr-xr-x 1 root root 30240 Mar 22 20:38 fusermount - -rwxr-xr-x 1 root root 218680 Jan 24 02:43 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 100952 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 21916 Dec 19 01:33 hostname - -rwxr-xr-x 1 root root 75756 Sep 20 2022 ln - -rwxr-xr-x 1 root root 55600 Mar 22 23:43 login - -rwxr-xr-x 1 root root 162152 Sep 20 2022 ls - -rwxr-xr-x 1 root root 214568 Mar 22 22:20 lsblk - -rwxr-xr-x 1 root root 96328 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 84008 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 38792 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 63016 Mar 22 22:20 more - -rwsr-xr-x 1 root root 58912 Mar 22 22:20 mount - -rwxr-xr-x 1 root root 13856 Mar 22 22:20 mountpoint - -rwxr-xr-x 1 root root 157932 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 01:33 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 18:25 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38792 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 09:24 rbash -> bash - -rwxr-xr-x 1 root root 51080 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 75720 Sep 20 2022 rm - -rwxr-xr-x 1 root root 51080 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 22308 Nov 2 04:31 run-parts - -rwxr-xr-x 1 root root 133224 Jan 5 07:55 sed - lrwxrwxrwx 1 root root 4 Jan 5 01:20 sh -> dash - -rwxr-xr-x 1 root root 38760 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 87976 Sep 20 2022 stty - -rwsr-xr-x 1 root root 83492 Mar 22 22:20 su - -rwxr-xr-x 1 root root 38792 Sep 20 2022 sync - -rwxr-xr-x 1 root root 598456 Apr 6 02:25 tar - -rwxr-xr-x 1 root root 13860 Nov 2 04:31 tempfile - -rwxr-xr-x 1 root root 120776 Sep 20 2022 touch - -rwxr-xr-x 1 root root 34664 Sep 20 2022 true - -rwxr-xr-x 1 root root 17892 Mar 22 20:38 ulockmgr_server - -rwsr-xr-x 1 root root 30236 Mar 22 22:20 umount - -rwxr-xr-x 1 root root 38760 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 162152 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 71216 Mar 22 22:20 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 01:33 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/4074/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1408088 Apr 24 2023 bash + -rwxr-xr-x 3 root root 38404 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 38404 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 38404 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 17892 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 42920 Sep 21 2022 cat + -rwxr-xr-x 1 root root 79816 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 67496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 79816 Sep 21 2022 chown + -rwxr-xr-x 1 root root 162024 Sep 21 2022 cp + -rwxr-xr-x 1 root root 136916 Jan 6 2023 dash + -rwxr-xr-x 1 root root 137160 Sep 21 2022 date + -rwxr-xr-x 1 root root 100364 Sep 21 2022 dd + -rwxr-xr-x 1 root root 108940 Sep 21 2022 df + -rwxr-xr-x 1 root root 162152 Sep 21 2022 dir + -rwxr-xr-x 1 root root 87760 Mar 24 2023 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 2022 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 2022 domainname -> hostname + -rwxr-xr-x 1 root root 38760 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 2023 egrep + -rwxr-xr-x 1 root root 34664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 2023 fgrep + -rwxr-xr-x 1 root root 84272 Mar 24 2023 findmnt + -rwsr-xr-x 1 root root 30240 Mar 23 2023 fusermount + -rwxr-xr-x 1 root root 218680 Jan 25 2023 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 100952 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 21916 Dec 20 2022 hostname + -rwxr-xr-x 1 root root 75756 Sep 21 2022 ln + -rwxr-xr-x 1 root root 55600 Mar 24 2023 login + -rwxr-xr-x 1 root root 162152 Sep 21 2022 ls + -rwxr-xr-x 1 root root 214568 Mar 24 2023 lsblk + -rwxr-xr-x 1 root root 96328 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 84008 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 38792 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 63016 Mar 24 2023 more + -rwsr-xr-x 1 root root 58912 Mar 24 2023 mount + -rwxr-xr-x 1 root root 13856 Mar 24 2023 mountpoint + -rwxr-xr-x 1 root root 157932 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 2022 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 2023 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38792 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 2023 rbash -> bash + -rwxr-xr-x 1 root root 51080 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 75720 Sep 21 2022 rm + -rwxr-xr-x 1 root root 51080 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 22308 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 133224 Jan 6 2023 sed + lrwxrwxrwx 1 root root 9 May 29 19:57 sh -> /bin/bash + -rwxr-xr-x 1 root root 38760 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 87976 Sep 21 2022 stty + -rwsr-xr-x 1 root root 83492 Mar 24 2023 su + -rwxr-xr-x 1 root root 38792 Sep 21 2022 sync + -rwxr-xr-x 1 root root 598456 Apr 7 2023 tar + -rwxr-xr-x 1 root root 13860 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 120776 Sep 21 2022 touch + -rwxr-xr-x 1 root root 34664 Sep 21 2022 true + -rwxr-xr-x 1 root root 17892 Mar 23 2023 ulockmgr_server + -rwsr-xr-x 1 root root 30236 Mar 24 2023 umount + -rwxr-xr-x 1 root root 38760 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 162152 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 71216 Mar 24 2023 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 2022 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/126529/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -727,7 +757,7 @@ Get: 518 http://deb.debian.org/debian bookworm/main i386 libxslt1.1 i386 1.1.35-1 [253 kB] Get: 519 http://deb.debian.org/debian bookworm/main i386 octave-matgeom all 1.2.3-3 [343 kB] Get: 520 http://deb.debian.org/debian bookworm/main i386 python3-lxml i386 4.9.2-1+b1 [1182 kB] -Fetched 213 MB in 5s (40.2 MB/s) +Fetched 213 MB in 5s (41.0 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal: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 ... 19604 files and directories currently installed.) @@ -2861,8 +2891,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/octave-geometry-4.0.0/ && 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 > ../octave-geometry_4.0.0-6_source.changes +I: user script /srv/workspace/pbuilder/126529/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/126529/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/octave-geometry-4.0.0/ && 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 > ../octave-geometry_4.0.0-6_source.changes dpkg-buildpackage: info: source package octave-geometry dpkg-buildpackage: info: source version 4.0.0-6 dpkg-buildpackage: info: source distribution unstable @@ -2896,13 +2937,13 @@ make[1]: Entering directory '/build/octave-geometry-4.0.0/src' /usr/bin/mkoctfile --verbose -Wall -mex -g clipper.cpp mexclipper.cpp /usr/bin/mkoctfile --verbose -c connector.cpp -o connector.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -g -Wall -I. -DMEX_DEBUG clipper.cpp -o /tmp/oct-0UfL2s.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security connector.cpp -o connector.o /usr/bin/mkoctfile --verbose -c martinez.cpp -o martinez.o /usr/bin/mkoctfile --verbose -c polygon.cpp -o polygon.o +/usr/bin/mkoctfile --verbose -c utilities.cpp -o utilities.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -g -Wall -I. -DMEX_DEBUG clipper.cpp -o /tmp/oct-tos3Xl.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security connector.cpp -o connector.o g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security martinez.cpp -o martinez.o g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security polygon.cpp -o polygon.o -/usr/bin/mkoctfile --verbose -c utilities.cpp -o utilities.o g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security utilities.cpp -o utilities.o polygon.cpp:96:37: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 96 | struct SegmentComp : public binary_function { @@ -2954,6 +2995,12 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +martinez.h:67:40: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 67 | struct SweepEventComp : public binary_function { // for sortening events + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ clipper.cpp: In function 'void ClipperLib::InitEdge(TEdge*, TEdge*, TEdge*, const IntPoint&)': clipper.cpp:750:14: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct ClipperLib::TEdge'; use assignment or value-initialization instead [-Wclass-memaccess] 750 | std::memset(e, 0, sizeof(TEdge)); @@ -2961,14 +3008,8 @@ clipper.cpp:95:8: note: 'struct ClipperLib::TEdge' declared here 95 | struct TEdge { | ^~~~~ -martinez.h:67:40: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 67 | struct SweepEventComp : public binary_function { // for sortening events - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ /usr/bin/mkoctfile --verbose connector.o martinez.o polygon.o utilities.o polybool_mrf.cc -o polybool_mrf.oct -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security polybool_mrf.cc -o /tmp/oct-dV2Fpa.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security polybool_mrf.cc -o /tmp/oct-ixqkRO.o In file included from polybool_mrf.cc:21: martinez.h:40:37: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 40 | struct SegmentComp : public binary_function { // for sorting edges in the sweep line @@ -2986,60 +3027,78 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -g -Wall -I. -DMEX_DEBUG mexclipper.cpp -o /tmp/oct-CfqVxz.o -g++ -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -o polybool_mrf.oct connector.o martinez.o polygon.o utilities.o /tmp/oct-dV2Fpa.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/i386-linux-gnu -shared -Wl,-Bsymbolic -Wl,-z,relro -g++ -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -g -Wall -o clipper.mex /tmp/oct-0UfL2s.o /tmp/oct-CfqVxz.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/i386-linux-gnu -shared -Wl,-Bsymbolic -Wl,-z,relro +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -g -Wall -I. -DMEX_DEBUG mexclipper.cpp -o /tmp/oct-wAqfJD.o +g++ -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -o polybool_mrf.oct connector.o martinez.o polygon.o utilities.o /tmp/oct-ixqkRO.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/i386-linux-gnu -shared -Wl,-Bsymbolic -Wl,-z,relro +g++ -I/usr/include/octave-7.3.0/octave/.. -I/usr/include/octave-7.3.0/octave -pthread -fopenmp -mieee-fp -g -O2 -ffile-prefix-map=/build/octave-geometry-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -g -Wall -o clipper.mex /tmp/oct-tos3Xl.o /tmp/oct-wAqfJD.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/i386-linux-gnu -shared -Wl,-Bsymbolic -Wl,-z,relro make[1]: Leaving directory '/build/octave-geometry-4.0.0/src' copyfile /build/octave-geometry-4.0.0/./src/polybool_mrf.oct /build/octave-geometry-4.0.0/./src/clipper.mex /build/octave-geometry-4.0.0/./inst/i686-pc-linux-gnu-api-v57 For information about changes from previous versions of the geometry package, run 'news geometry'. dh_octave_check -O--buildsystem=octave Checking package... Checking m files ... +[inst/simplifyPolygon_geometry.m] +>>>>> /build/octave-geometry-4.0.0/inst/simplifyPolygon_geometry.m +***** test + P = [0 0; 1 0; 0 1]; + P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; + assert(simplifyPolygon_geometry (P2),P,min(P2(:))*eps) +***** demo + + P = [0 0; 1 0; 0 1]; + P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; + Pr = simplifyPolygon_geometry (P2); + + cla + drawPolygon(P,'or;Reference;'); + hold on + drawPolygon(P2,'x-b;Redundant;'); + drawPolygon(Pr,'*g;Simplified;'); + hold off + + # -------------------------------------------------------------------------- + # The two polygons describe the same figure, a triangle. Extra points are + # removed from the redundant one. +1 test, 1 passed, 0 known failure, 0 skipped +[inst/ispolycw.m] +>>>>> /build/octave-geometry-4.0.0/inst/ispolycw.m +***** shared pccw, pcw, ph + pccw = pcw = [0 0; 1 0; 1 1; 0 1]; + pcw([2 4],:) = pcw([4 2], :); + ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; +***** assert (~ispolycw (pccw)); +***** assert (ispolycw (pcw)); +***** assert (ispolycw ({pccw;pcw}), [false;true]); +***** assert (ispolycw ({pccw,pcw}), [false,true]); +***** assert (ispolycw(ph),[false;true]); +***** test + phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; + assert (ispolycw(phcw),[true;false]); +***** test + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + assert(ispolycw(x,y),[true;false]); +7 tests, 7 passed, 0 known failure, 0 skipped [inst/polygon2shape.m] >>>>> /build/octave-geometry-4.0.0/inst/polygon2shape.m ***** test pp = [0 0; 1 0; 1 1; 0 1]; s = polygon2shape (pp); 1 test, 1 passed, 0 known failure, 0 skipped -[inst/orientPolygon.m] ->>>>> /build/octave-geometry-4.0.0/inst/orientPolygon.m -***** shared pccw, pcw, pxccw, pyccw, pxnan, pynan, pnan - pccw = [0 0; 1 0; 1 1; 0 1]; - pcw = reversePolygon (pccw); - pxccw = pccw(:,1); - pyccw = pccw(:,2); - pxnan = [2; 2; 0; 0; NaN; 0; 0; 2]; - pynan = [0; 2; 2; 0; NaN; 0; 3; 0]; - pnan = [pxnan pynan]; -***** test - x = orientPolygon (pccw,[],"ccw"); - assert (x, pccw); -***** test - x = orientPolygon (pccw,[],"cw"); - assert (x, pcw); -***** test - x = orientPolygon (pcw,[],"ccw"); - assert (x, pccw); -***** test - x = orientPolygon (pcw,[],"cw"); - assert (x, pcw); -***** test - x = orientPolygon (pnan,[],"cw"); - y = splitPolygons (pnan); - y = joinPolygons ({reversePolygon(y{1}); y{2}}); - assert (x, y); -***** test - x = orientPolygon (pnan,[],"ccw"); - y = splitPolygons (pnan); - y = joinPolygons ({y{1}; reversePolygon(y{2})}); - assert (x, y); +[inst/poly2ccw.m] +>>>>> /build/octave-geometry-4.0.0/inst/poly2ccw.m ***** test - [x y] = orientPolygon (pxccw,pyccw,"ccw"); - assert ([x y], pccw); + x = [0 0 1 1 0]; y = [0 1 1 0 0]; + [xccw,yccw] = poly2ccw(x,y); + xexp = [0; 1; 1; 0; 0]; yexp = [0; 0; 1; 1; 0]; + assert (xccw,xexp); + assert (yccw,yexp); ***** test - [x y] = orientPolygon (pxccw,pyccw,"cw"); - assert ([x y], pcw); -8 tests, 8 passed, 0 known failure, 0 skipped + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + [xccw,yccw]=poly2ccw(x,y); + xexp=[0; 2; 2; 0; NaN; 0; 2; 0]; + yexp=[0; 0; 2; 2; NaN; 0; 0; 3]; + assert (xccw,xexp); + assert (yccw,yexp); +2 tests, 2 passed, 0 known failure, 0 skipped [inst/shapeArea.m] >>>>> /build/octave-geometry-4.0.0/inst/shapeArea.m ***** demo # non-convex piece-wise polynomial shape @@ -3070,6 +3129,31 @@ A = shapeArea (circle); assert (pi*5^2, A, 5e-2); 2 tests, 2 passed, 0 known failure, 0 skipped +[inst/isPolygonCCW.m] +>>>>> /build/octave-geometry-4.0.0/inst/isPolygonCCW.m +***** shared pccw, pcw, pxccw, pyccw, pxnan, pynan, pnan + pccw = [0 0; 1 0; 1 1; 0 1]; + pcw = reversePolygon (pccw); + pxccw = pccw(:,1); + pyccw = pccw(:,2); + pxnan = [2; 2; 0; 0; NaN; 0; 0; 2]; + pynan = [0; 2; 2; 0; NaN; 0; 3; 0]; + pnan = [pxnan pynan]; +***** assert (isPolygonCCW (pccw)); +***** assert (isPolygonCCW (pxccw, pyccw)); +***** assert (isPolygonCCW ({pxccw, pxccw}, {pyccw, pyccw}), {true, true}); +***** assert (~isPolygonCCW (pcw)); +***** assert (isPolygonCCW ({pccw;pcw}), {true;false}); +***** assert (isPolygonCCW(pnan), [true; false]); +***** assert (isPolygonCCW({pnan,pcw}),{[true;false], false}); +***** assert (isPolygonCCW (pccw,[],"clipper")); +***** assert (isPolygonCCW (pxccw, pyccw,"clipper")); +***** assert (isPolygonCCW ({pxccw, pxccw}, {pyccw, pyccw},"clipper"), {true, true}); +***** assert (~isPolygonCCW (pcw,[],"clipper")); +***** assert (isPolygonCCW ({pccw;pcw},[],"clipper"), {true;false}); +***** xtest assert (isPolygonCCW(pnan,[],"clipper"), [true; false]); +***** xtest assert (isPolygonCCW({pnan,pcw},[],"clipper"),{[true; false], false}); +14 tests, 14 passed, 0 known failure, 0 skipped [inst/clipPolygon.m] >>>>> /build/octave-geometry-4.0.0/inst/clipPolygon.m ***** error clipPolygon([],[],[],'abracadabra') @@ -3121,6 +3205,197 @@ axis off endfor 2 tests, 2 passed, 0 known failure, 0 skipped +[inst/orientPolygon.m] +>>>>> /build/octave-geometry-4.0.0/inst/orientPolygon.m +***** shared pccw, pcw, pxccw, pyccw, pxnan, pynan, pnan + pccw = [0 0; 1 0; 1 1; 0 1]; + pcw = reversePolygon (pccw); + pxccw = pccw(:,1); + pyccw = pccw(:,2); + pxnan = [2; 2; 0; 0; NaN; 0; 0; 2]; + pynan = [0; 2; 2; 0; NaN; 0; 3; 0]; + pnan = [pxnan pynan]; +***** test + x = orientPolygon (pccw,[],"ccw"); + assert (x, pccw); +***** test + x = orientPolygon (pccw,[],"cw"); + assert (x, pcw); +***** test + x = orientPolygon (pcw,[],"ccw"); + assert (x, pccw); +***** test + x = orientPolygon (pcw,[],"cw"); + assert (x, pcw); +***** test + x = orientPolygon (pnan,[],"cw"); + y = splitPolygons (pnan); + y = joinPolygons ({reversePolygon(y{1}); y{2}}); + assert (x, y); +***** test + x = orientPolygon (pnan,[],"ccw"); + y = splitPolygons (pnan); + y = joinPolygons ({y{1}; reversePolygon(y{2})}); + assert (x, y); +***** test + [x y] = orientPolygon (pxccw,pyccw,"ccw"); + assert ([x y], pccw); +***** test + [x y] = orientPolygon (pxccw,pyccw,"cw"); + assert ([x y], pcw); +8 tests, 8 passed, 0 known failure, 0 skipped +[inst/ispolyccw.m] +>>>>> /build/octave-geometry-4.0.0/inst/ispolyccw.m +***** shared pccw, pcw, ph + pccw = pcw = [0 0; 1 0; 1 1; 0 1]; + pcw([2 4],:) = pcw([4 2], :); + ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; +***** assert (ispolyccw (pccw)); +***** assert (~ispolyccw (pcw)); +***** assert (ispolyccw ({pccw;pcw}), {true false}); +***** assert (ispolyccw(ph),[true;false]); +***** test + phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; + assert (ispolyccw(phcw),[false;true]); +***** test + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + assert(ispolyccw(x,y),[false;true]); +6 tests, 6 passed, 0 known failure, 0 skipped +[inst/polybool.m] +>>>>> /build/octave-geometry-4.0.0/inst/polybool.m +***** shared ipol, cpol, ix, iy, cx, cy, xi, yi, xc, yc + ipol = [0 0; 3 0; 3 3; 0 3; 0 0]; + cpol = [2, 1; 5, 1; 5, 4; 2, 4; 2, 1]; + ix = {ipol(:, 1)'}; + iy = {ipol(:, 2)'}; + cx = {cpol(:, 1)'}; + cy = {cpol(:, 2)'}; + xi = {ipol(:, 1)}; + yi = {ipol(:, 2)}; + xc = {cpol(:, 1)}; + yc = {cpol(:, 2)}; +***** test + opol = polybool (0, ipol, cpol); + assert (size (opol), [7, 2]); + assert (polygonArea (opol), 7); +***** test + [ox, oy] = polybool (0, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [7, 2]); + assert (polygonArea (opol), 7); +***** test + [ox, oy] = polybool (0, xi, yi, xc, yc); + opol = [ox{1}, oy{1}]; + assert (size (opol), [7, 2]); + assert (polygonArea (opol), 7); +***** test + opol = polybool (1, cpol, ipol); + assert (size (opol), [5, 2]); + assert (polygonArea (opol), 2); +***** test + [ox, oy] = polybool (1, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [5, 2]); + assert (polygonArea (opol), 2); +***** test + opol = polybool (2, cpol, ipol); + assert (size (opol), [15, 2]); + assert (polygonArea (opol), 14); +***** test + [ox, oy] = polybool (2, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [15, 2]); + assert (polygonArea (opol), 14); +***** test + opol = polybool (3, cpol, ipol); + assert (size (opol), [9, 2]); + assert (polygonArea (opol), 16); +***** test + [ox, oy] = polybool (3, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [9, 2]); + assert (polygonArea (opol), 16); +***** error polybool ("a", 1, 2, 3 ,4); +***** error polybool (-1, 1, 2); +***** error polybool (-1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4]); +***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3]); +***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3; 6 6 7]); +***** error polybool (1, {1, 2}, [1, 2]); +***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3, 4]}); +***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4, 5]}); +***** error polybool ('z', {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4]}); +***** error polybool (1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4], "abc") +19 tests, 19 passed, 0 known failure, 0 skipped +[inst/polyjoin.m] +>>>>> /build/octave-geometry-4.0.0/inst/polyjoin.m +***** demo + x = {[1 2]'; [3 4]'} + y = {[10 20]'; [30 40]'} + [vecx, vecy] = polyjoin (x, y) +***** test + x = {[1 2]'; [3 4]'}; y = {[10 20]'; [30 40]'}; + [vecx, vecy] = polyjoin (x, y); + assert (vecx, [1; 2; NaN; 3; 4]); + assert (vecy, [10; 20; NaN; 30; 40]); +***** test + x = {[1;2]; [3;4]; [3]}; y = {[10;20]; [30;40]; [10]}; + [vecx, vecy] = polyjoin (x, y); + assert (vecx, [1; 2; NaN; 3; 4; NaN; 3]); + assert (vecy, [10; 20; NaN; 30; 40; NaN; 10]); +***** test + x = {[1 2 3]'; 4; [5 6 7 8 NaN 9]'}; + y = {[9 8 7]'; 6; [5 4 3 2 NaN 1]'}; + [vecx, vecy] = polyjoin (x, y); + assert (vecx, [1; 2; 3; NaN; 4; NaN; 5; 6; 7; 8; NaN; 9]); + assert (vecy, [9; 8; 7; NaN; 6; NaN; 5; 4; 3; 2; NaN; 1]); +***** test + xyi = {[0 0; 0 10; 10, 10; 10, 0; 0, 0]; [1 5; 2 5; 2 6; 1 6; 1 5]}; + xyo = polyjoin (xyi); + assert (polyjoin (xyi), [0 0; 0 10; 10 10; 10 0; 0 0; NaN, NaN; 1 5; 2 5; 2 6; 1 6; 1 5], eps); +***** test + xyi = {[0 0 1; 0 10 2; 10, 10 3; 10, 0 2; 0, 0 1]; [1 5 1.5; 2 5 2; 2 6 2.5; 1 6 2; 1 5 1.5]}; + xyo = polyjoin (xyi); + assert (polyjoin (xyi), [0 0 1; 0 10 2; 10 10 3; 10 0 2; 0 0 1; NaN, NaN NaN; 1 5 1.5; 2 5 2; 2 6 2.5; 1 6 2; 1 5 1.5], eps); +***** test + assert (polyjoin ({[2, 3]}), [2, 3], eps); +***** error polyjoin (1); +***** error polyjoin ({2}); +***** error polyjoin ({2, 3}); +***** error polyjoin ({1; 2}, [3 4]); +***** warning polyjoin ({1; 2}, {3 4}); +11 tests, 11 passed, 0 known failure, 0 skipped +[inst/@svg/svg.m] +>>>>> /build/octave-geometry-4.0.0/inst/@svg/svg.m +***** test + dc = svg('drawing5.svg'); + dc.getpath(); + dc.pathid(); + dc.getpath('path3756'); + + dc = svg('drawing.svg'); + ids = dc.pathid(); + dc.getpath({ids{[1 3]}}); +***** xtest + dc = svg('drawing6.svg'); + ids = dc.pathid(); + P = dc.path2polygon(ids{1}); +!!!!! known failure +cat: dimension mismatch +***** xtest + dc = svg('drawing6.svg'); + dc.plot(); + dc.plot('color','r','linewidth',2); +warning: using the gnuplot graphics toolkit is discouraged + +The gnuplot graphics toolkit is not actively maintained and has a number +of limitations that are unlikely to be fixed. Communication with gnuplot +uses a one-directional pipe and limited information is passed back to the +Octave interpreter so most changes made interactively in the plot window +will not be reflected in the graphics properties managed by Octave. For +example, if the plot window is closed with a mouse click, Octave will not +be notified and will not update its internal list of open figure windows. +The qt toolkit is recommended instead. +3 tests, 2 passed, 1 known failure, 0 skipped [inst/plotShape.m] >>>>> /build/octave-geometry-4.0.0/inst/plotShape.m ***** demo @@ -3138,16 +3413,6 @@ s = {[0.1 1; 1 0]}; ***** test plotShape (s); close; -warning: using the gnuplot graphics toolkit is discouraged - -The gnuplot graphics toolkit is not actively maintained and has a number -of limitations that are unlikely to be fixed. Communication with gnuplot -uses a one-directional pipe and limited information is passed back to the -Octave interpreter so most changes made interactively in the plot window -will not be reflected in the graphics properties managed by Octave. For -example, if the plot window is closed with a mouse click, Octave will not -be notified and will not update its internal list of open figure windows. -The qt toolkit is recommended instead. ***** test plotShape (s,'tol', 1e-4);close; ***** test @@ -3163,99 +3428,18 @@ ***** test plotShape (s,'-om', 'tol', 1e-4, 'tol', 1e-2);close; 7 tests, 7 passed, 0 known failure, 0 skipped -[inst/isPolygonCCW.m] ->>>>> /build/octave-geometry-4.0.0/inst/isPolygonCCW.m -***** shared pccw, pcw, pxccw, pyccw, pxnan, pynan, pnan - pccw = [0 0; 1 0; 1 1; 0 1]; - pcw = reversePolygon (pccw); - pxccw = pccw(:,1); - pyccw = pccw(:,2); - pxnan = [2; 2; 0; 0; NaN; 0; 0; 2]; - pynan = [0; 2; 2; 0; NaN; 0; 3; 0]; - pnan = [pxnan pynan]; -***** assert (isPolygonCCW (pccw)); -***** assert (isPolygonCCW (pxccw, pyccw)); -***** assert (isPolygonCCW ({pxccw, pxccw}, {pyccw, pyccw}), {true, true}); -***** assert (~isPolygonCCW (pcw)); -***** assert (isPolygonCCW ({pccw;pcw}), {true;false}); -***** assert (isPolygonCCW(pnan), [true; false]); -***** assert (isPolygonCCW({pnan,pcw}),{[true;false], false}); -***** assert (isPolygonCCW (pccw,[],"clipper")); -***** assert (isPolygonCCW (pxccw, pyccw,"clipper")); -***** assert (isPolygonCCW ({pxccw, pxccw}, {pyccw, pyccw},"clipper"), {true, true}); -***** assert (~isPolygonCCW (pcw,[],"clipper")); -***** assert (isPolygonCCW ({pccw;pcw},[],"clipper"), {true;false}); -***** xtest assert (isPolygonCCW(pnan,[],"clipper"), [true; false]); -***** xtest assert (isPolygonCCW({pnan,pcw},[],"clipper"),{[true; false], false}); -14 tests, 14 passed, 0 known failure, 0 skipped -[inst/poly2cw.m] ->>>>> /build/octave-geometry-4.0.0/inst/poly2cw.m -***** test - x = [0; 1; 1; 0; 0]; y = [0; 0; 1; 1; 0]; - [xcw,ycw] = poly2cw(x,y); - xexp = [0; 0; 1; 1; 0]; yexp = [0; 1; 1; 0; 0]; - assert (xcw,xexp); - assert (ycw,yexp); -***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - [xcw,ycw]=poly2cw(x,y); - xexp=[0; 0; 2; 2; NaN; 0; 0; 2]; - yexp=[0; 2; 2; 0; NaN; 0; 3; 0]; - assert (xcw,xexp); - assert (ycw,yexp); -2 tests, 2 passed, 0 known failure, 0 skipped -[inst/polysplit.m] ->>>>> /build/octave-geometry-4.0.0/inst/polysplit.m -***** test - x=[1 ;2 ;NaN ;3 ;4]; y=[4 ;3 ;NaN ;2 ;1]; - [cellx,celly]=polysplit(x,y); - assert (cellx, {[1; 2];[3; 4]}); - assert (celly, {[4; 3];[2; 1]}); -***** test - x=[1 2 NaN 3 4]; y=[4 3 NaN 2 1]; - [cellx,celly]=polysplit(x,y); - assert (cellx, {[1 2];[3 4]}); - assert (celly, {[4 3];[2 1]}); -***** test - x=[0 ;2 ;2 ;0 ;0 ;NaN ;NaN]; y=[0 ;0 ;3 ;3 ;0 ;NaN ;NaN]; - [cellx,celly]=polysplit(x,y); - assert (cellx, {[0 ;2 ;2 ;0 ;0]}); - assert (celly, {[0 ;0 ;3 ;3 ;0]}); -3 tests, 3 passed, 0 known failure, 0 skipped -[inst/ispolycw.m] ->>>>> /build/octave-geometry-4.0.0/inst/ispolycw.m -***** shared pccw, pcw, ph - pccw = pcw = [0 0; 1 0; 1 1; 0 1]; - pcw([2 4],:) = pcw([4 2], :); - ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; -***** assert (~ispolycw (pccw)); -***** assert (ispolycw (pcw)); -***** assert (ispolycw ({pccw;pcw}), [false;true]); -***** assert (ispolycw ({pccw,pcw}), [false,true]); -***** assert (ispolycw(ph),[false;true]); -***** test - phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; - assert (ispolycw(phcw),[true;false]); +[inst/joinPolygons.m] +>>>>> /build/octave-geometry-4.0.0/inst/joinPolygons.m ***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - assert(ispolycw(x,y),[true;false]); -7 tests, 7 passed, 0 known failure, 0 skipped -[inst/poly2ccw.m] ->>>>> /build/octave-geometry-4.0.0/inst/poly2ccw.m + assert (joinPolygons ({1,2}), [1 2]); ***** test - x = [0 0 1 1 0]; y = [0 1 1 0 0]; - [xccw,yccw] = poly2ccw(x,y); - xexp = [0; 1; 1; 0; 0]; yexp = [0; 0; 1; 1; 0]; - assert (xccw,xexp); - assert (yccw,yexp); + assert (joinPolygons ({}), []); ***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - [xccw,yccw]=poly2ccw(x,y); - xexp=[0; 2; 2; 0; NaN; 0; 2; 0]; - yexp=[0; 0; 2; 2; NaN; 0; 0; 3]; - assert (xccw,xexp); - assert (yccw,yexp); -2 tests, 2 passed, 0 known failure, 0 skipped + XY = joinPolygons ({[1 6; 2 5; 3 4]; [4 3; 5 2; 6 1]}); + assert (XY, [1 6; 2 5; 3 4; NaN NaN; 4 3; 5 2; 6 1]); +***** error joinPolygons ([1 2 NaN 3 4]) +***** error joinPolygons ({[1,0], [0,2]}); +5 tests, 5 passed, 0 known failure, 0 skipped [inst/clipPolygon_mrf.m] >>>>> /build/octave-geometry-4.0.0/inst/clipPolygon_mrf.m ***** test @@ -3395,160 +3579,40 @@ axis off title "7. Clip - sub"; 4 tests, 4 passed, 0 known failure, 0 skipped -[inst/ispolyccw.m] ->>>>> /build/octave-geometry-4.0.0/inst/ispolyccw.m -***** shared pccw, pcw, ph - pccw = pcw = [0 0; 1 0; 1 1; 0 1]; - pcw([2 4],:) = pcw([4 2], :); - ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; -***** assert (ispolyccw (pccw)); -***** assert (~ispolyccw (pcw)); -***** assert (ispolyccw ({pccw;pcw}), {true false}); -***** assert (ispolyccw(ph),[true;false]); -***** test - phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; - assert (ispolyccw(phcw),[false;true]); -***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - assert(ispolyccw(x,y),[false;true]); -6 tests, 6 passed, 0 known failure, 0 skipped -[inst/polybool.m] ->>>>> /build/octave-geometry-4.0.0/inst/polybool.m -***** shared ipol, cpol, ix, iy, cx, cy, xi, yi, xc, yc - ipol = [0 0; 3 0; 3 3; 0 3; 0 0]; - cpol = [2, 1; 5, 1; 5, 4; 2, 4; 2, 1]; - ix = {ipol(:, 1)'}; - iy = {ipol(:, 2)'}; - cx = {cpol(:, 1)'}; - cy = {cpol(:, 2)'}; - xi = {ipol(:, 1)}; - yi = {ipol(:, 2)}; - xc = {cpol(:, 1)}; - yc = {cpol(:, 2)}; -***** test - opol = polybool (0, ipol, cpol); - assert (size (opol), [7, 2]); - assert (polygonArea (opol), 7); -***** test - [ox, oy] = polybool (0, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [7, 2]); - assert (polygonArea (opol), 7); -***** test - [ox, oy] = polybool (0, xi, yi, xc, yc); - opol = [ox{1}, oy{1}]; - assert (size (opol), [7, 2]); - assert (polygonArea (opol), 7); -***** test - opol = polybool (1, cpol, ipol); - assert (size (opol), [5, 2]); - assert (polygonArea (opol), 2); -***** test - [ox, oy] = polybool (1, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [5, 2]); - assert (polygonArea (opol), 2); -***** test - opol = polybool (2, cpol, ipol); - assert (size (opol), [15, 2]); - assert (polygonArea (opol), 14); -***** test - [ox, oy] = polybool (2, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [15, 2]); - assert (polygonArea (opol), 14); -***** test - opol = polybool (3, cpol, ipol); - assert (size (opol), [9, 2]); - assert (polygonArea (opol), 16); -***** test - [ox, oy] = polybool (3, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [9, 2]); - assert (polygonArea (opol), 16); -***** error polybool ("a", 1, 2, 3 ,4); -***** error polybool (-1, 1, 2); -***** error polybool (-1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4]); -***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3]); -***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3; 6 6 7]); -***** error polybool (1, {1, 2}, [1, 2]); -***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3, 4]}); -***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4, 5]}); -***** error polybool ('z', {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4]}); -***** error polybool (1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4], "abc") -19 tests, 19 passed, 0 known failure, 0 skipped -[inst/@svg/svg.m] ->>>>> /build/octave-geometry-4.0.0/inst/@svg/svg.m -***** test - dc = svg('drawing5.svg'); - dc.getpath(); - dc.pathid(); - dc.getpath('path3756'); - - dc = svg('drawing.svg'); - ids = dc.pathid(); - dc.getpath({ids{[1 3]}}); -***** xtest - dc = svg('drawing6.svg'); - ids = dc.pathid(); - P = dc.path2polygon(ids{1}); -!!!!! known failure -cat: dimension mismatch -***** xtest - dc = svg('drawing6.svg'); - dc.plot(); - dc.plot('color','r','linewidth',2); -3 tests, 2 passed, 1 known failure, 0 skipped -[inst/polyjoin.m] ->>>>> /build/octave-geometry-4.0.0/inst/polyjoin.m -***** demo - x = {[1 2]'; [3 4]'} - y = {[10 20]'; [30 40]'} - [vecx, vecy] = polyjoin (x, y) -***** test - x = {[1 2]'; [3 4]'}; y = {[10 20]'; [30 40]'}; - [vecx, vecy] = polyjoin (x, y); - assert (vecx, [1; 2; NaN; 3; 4]); - assert (vecy, [10; 20; NaN; 30; 40]); -***** test - x = {[1;2]; [3;4]; [3]}; y = {[10;20]; [30;40]; [10]}; - [vecx, vecy] = polyjoin (x, y); - assert (vecx, [1; 2; NaN; 3; 4; NaN; 3]); - assert (vecy, [10; 20; NaN; 30; 40; NaN; 10]); -***** test - x = {[1 2 3]'; 4; [5 6 7 8 NaN 9]'}; - y = {[9 8 7]'; 6; [5 4 3 2 NaN 1]'}; - [vecx, vecy] = polyjoin (x, y); - assert (vecx, [1; 2; 3; NaN; 4; NaN; 5; 6; 7; 8; NaN; 9]); - assert (vecy, [9; 8; 7; NaN; 6; NaN; 5; 4; 3; 2; NaN; 1]); -***** test - xyi = {[0 0; 0 10; 10, 10; 10, 0; 0, 0]; [1 5; 2 5; 2 6; 1 6; 1 5]}; - xyo = polyjoin (xyi); - assert (polyjoin (xyi), [0 0; 0 10; 10 10; 10 0; 0 0; NaN, NaN; 1 5; 2 5; 2 6; 1 6; 1 5], eps); +[inst/polysplit.m] +>>>>> /build/octave-geometry-4.0.0/inst/polysplit.m ***** test - xyi = {[0 0 1; 0 10 2; 10, 10 3; 10, 0 2; 0, 0 1]; [1 5 1.5; 2 5 2; 2 6 2.5; 1 6 2; 1 5 1.5]}; - xyo = polyjoin (xyi); - assert (polyjoin (xyi), [0 0 1; 0 10 2; 10 10 3; 10 0 2; 0 0 1; NaN, NaN NaN; 1 5 1.5; 2 5 2; 2 6 2.5; 1 6 2; 1 5 1.5], eps); + x=[1 ;2 ;NaN ;3 ;4]; y=[4 ;3 ;NaN ;2 ;1]; + [cellx,celly]=polysplit(x,y); + assert (cellx, {[1; 2];[3; 4]}); + assert (celly, {[4; 3];[2; 1]}); ***** test - assert (polyjoin ({[2, 3]}), [2, 3], eps); -***** error polyjoin (1); -***** error polyjoin ({2}); -***** error polyjoin ({2, 3}); -***** error polyjoin ({1; 2}, [3 4]); -***** warning polyjoin ({1; 2}, {3 4}); -11 tests, 11 passed, 0 known failure, 0 skipped -[inst/joinPolygons.m] ->>>>> /build/octave-geometry-4.0.0/inst/joinPolygons.m + x=[1 2 NaN 3 4]; y=[4 3 NaN 2 1]; + [cellx,celly]=polysplit(x,y); + assert (cellx, {[1 2];[3 4]}); + assert (celly, {[4 3];[2 1]}); ***** test - assert (joinPolygons ({1,2}), [1 2]); + x=[0 ;2 ;2 ;0 ;0 ;NaN ;NaN]; y=[0 ;0 ;3 ;3 ;0 ;NaN ;NaN]; + [cellx,celly]=polysplit(x,y); + assert (cellx, {[0 ;2 ;2 ;0 ;0]}); + assert (celly, {[0 ;0 ;3 ;3 ;0]}); +3 tests, 3 passed, 0 known failure, 0 skipped +[inst/poly2cw.m] +>>>>> /build/octave-geometry-4.0.0/inst/poly2cw.m ***** test - assert (joinPolygons ({}), []); + x = [0; 1; 1; 0; 0]; y = [0; 0; 1; 1; 0]; + [xcw,ycw] = poly2cw(x,y); + xexp = [0; 0; 1; 1; 0]; yexp = [0; 1; 1; 0; 0]; + assert (xcw,xexp); + assert (ycw,yexp); ***** test - XY = joinPolygons ({[1 6; 2 5; 3 4]; [4 3; 5 2; 6 1]}); - assert (XY, [1 6; 2 5; 3 4; NaN NaN; 4 3; 5 2; 6 1]); -***** error joinPolygons ([1 2 NaN 3 4]) -***** error joinPolygons ({[1,0], [0,2]}); -5 tests, 5 passed, 0 known failure, 0 skipped + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + [xcw,ycw]=poly2cw(x,y); + xexp=[0; 0; 2; 2; NaN; 0; 0; 2]; + yexp=[0; 2; 2; 0; NaN; 0; 3; 0]; + assert (xcw,xexp); + assert (ycw,yexp); +2 tests, 2 passed, 0 known failure, 0 skipped [inst/shapeCentroid.m] >>>>> /build/octave-geometry-4.0.0/inst/shapeCentroid.m ***** demo # non-convex bezier shape @@ -3642,29 +3706,6 @@ vn = shapeCentroid (nshape)(:); assert(vn,[0; 0],1e-2); 6 tests, 6 passed, 0 known failure, 0 skipped -[inst/simplifyPolygon_geometry.m] ->>>>> /build/octave-geometry-4.0.0/inst/simplifyPolygon_geometry.m -***** test - P = [0 0; 1 0; 0 1]; - P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; - assert(simplifyPolygon_geometry (P2),P,min(P2(:))*eps) -***** demo - - P = [0 0; 1 0; 0 1]; - P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; - Pr = simplifyPolygon_geometry (P2); - - cla - drawPolygon(P,'or;Reference;'); - hold on - drawPolygon(P2,'x-b;Redundant;'); - drawPolygon(Pr,'*g;Simplified;'); - hold off - - # -------------------------------------------------------------------------- - # The two polygons describe the same figure, a triangle. Extra points are - # removed from the redundant one. -1 test, 1 passed, 0 known failure, 0 skipped Checking C++ files ... Summary: 103 tests, 102 passed, 1 known failures, 0 skipped dh_installdocs -O--buildsystem=octave @@ -3704,12 +3745,15 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload +I: copying local configuration +I: user script /srv/workspace/pbuilder/126529/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/126529/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/4074 and its subdirectories -I: Current time: Wed Apr 26 11:30:28 -12 2023 -I: pbuilder-time-stamp: 1682551828 +I: removing directory /srv/workspace/pbuilder/126529 and its subdirectories +I: Current time: Wed May 29 19:58:49 +14 2024 +I: pbuilder-time-stamp: 1716962329