Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/j/java-diff-utils/java-diff-utils_4.9-1_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/java-diff-utils-4.9-174_mp5ss/java-diff-utils_4.9-1_all.buildinfo Get source package info: java-diff-utils=4.9-1 Source URL: http://snapshot.notset.fr/mr/package/java-diff-utils/4.9-1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=ant=1.10.9-2 autoconf=2.69-14 automake=1:1.16.3-2 autopoint=0.21-4 autotools-dev=20180224.1+nmu1 base-files=11 base-passwd=3.5.48 bash=5.1-2 binutils=2.35.1-7 binutils-common=2.35.1-7 binutils-x86-64-linux-gnu=2.35.1-7 bnd=5.0.1-3 bsdextrautils=2.36.1-6 bsdutils=1:2.36.1-6 build-essential=12.9 bzip2=1.0.8-4 ca-certificates=20210119 ca-certificates-java=20190909 coreutils=8.32-4+b1 cpp=4:10.2.1-1 cpp-10=10.2.1-6 dash=0.5.11+git20200708+dd9ef66-5 debconf=1.5.74 debhelper=13.3.3 debianutils=4.11.2 default-jdk=2:1.11-72 default-jdk-headless=2:1.11-72 default-jre=2:1.11-72 default-jre-headless=2:1.11-72 dh-autoreconf=19 dh-strip-nondeterminism=1.10.0-1 diffutils=1:3.7-5 dpkg=1.20.7.1 dpkg-dev=1.20.7.1 dwz=0.13+20210126-1 file=1:5.39-3 findutils=4.8.0-1 fontconfig-config=2.13.1-4.2 fonts-dejavu-core=2.37-2 g++=4:10.2.1-1 g++-10=10.2.1-6 gcc=4:10.2.1-1 gcc-10=10.2.1-6 gcc-10-base=10.2.1-6 gettext=0.21-4 gettext-base=0.21-4 grep=3.6-1 groff-base=1.22.4-6 gzip=1.10-2 hostname=3.23 init-system-helpers=1.60 intltool-debian=0.35.0+20060710.5 java-common=0.72 java-wrappers=0.3 junit4=4.13.1-1 junit5=5.3.2-4 libacl1=2.2.53-10 libaopalliance-java=20070526-6 libapache-pom-java=18-1 libapiguardian-java=1.1.0-2 libarchive-zip-perl=1.68-1 libasan6=10.2.1-6 libasm-java=9.0-1 libasound2=1.2.4-1.1 libasound2-data=1.2.4-1.1 libassertj-core-java=2.3.0-4 libatinject-jsr330-api-java=1.0+ds1-5 libatomic1=10.2.1-6 libattr1=1:2.4.48-6 libaudit-common=1:3.0-2 libaudit1=1:3.0-2 libavahi-client3=0.8-3 libavahi-common-data=0.8-3 libavahi-common3=0.8-3 libbatik-java=1.12-4 libbinutils=2.35.1-7 libblkid1=2.36.1-6 libbrotli1=1.0.9-2+b2 libbsd0=0.10.0-1 libbsh-java=2.0b4-20 libbyte-buddy-java=1.8.2-2 libbz2-1.0=1.0.8-4 libc-bin=2.31-9 libc-dev-bin=2.31-9 libc6=2.31-9 libc6-dev=2.31-9 libcap-ng0=0.7.9-2.2+b1 libcc1-0=10.2.1-6 libcdi-api-java=1.2-3 libcom-err2=1.45.7-1 libcommons-beanutils-java=1.9.4-1 libcommons-cli-java=1.4-2 libcommons-codec-java=1.15-1 libcommons-collections3-java=3.2.2-2 libcommons-compress-java=1.20-1 libcommons-configuration-java=1.10-5 libcommons-digester-java=1.8.1-5 libcommons-io-java=2.8.0-1 libcommons-lang-java=2.6-9 libcommons-lang3-java=3.11-1 libcommons-logging-java=1.2-2 libcommons-parent-java=43-1 libcommons-validator-java=1:1.6-2 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.1-7 libctf0=2.35.1-7 libcups2=2.3.3op2-2 libdb5.3=5.3.28+dfsg1-0.6 libdbus-1-3=1.12.20-1 libdebconfclient0=0.256 libdebhelper-perl=13.3.3 libdom4j-java=2.1.3-1 libdoxia-core-java=1.7-2 libdoxia-java=1.7-2 libdoxia-sitetools-java=1.7.5-2 libdpkg-perl=1.20.7.1 libdrm-amdgpu1=2.4.104-1 libdrm-common=2.4.104-1 libdrm-intel1=2.4.104-1 libdrm-nouveau2=2.4.104-1 libdrm-radeon1=2.4.104-1 libdrm2=2.4.104-1 libeclipse-jdt-annotation-java=2.2.600+eclipse4.18-1 libedit2=3.1-20191231-2+b1 libel-api-java=3.0.0-3 libelf1=0.182+20210203-1 libexpat1=2.2.10-1 libfelix-bundlerepository-java=2.0.10-4 libfelix-framework-java=4.6.1-2.1 libfelix-gogo-runtime-java=0.16.2-1.1 libfelix-resolver-java=1.16.0-1 libfelix-utils-java=1.8.6-1.1 libffi7=3.3-5 libfile-stripnondeterminism-perl=1.10.0-1 libfontbox2-java=2.0.22-1 libfontconfig1=2.13.1-4.2 libfop-java=1:2.5-3 libfreetype6=2.10.4+dfsg-1 libgcc-10-dev=10.2.1-6 libgcc-s1=10.2.1-6 libgcrypt20=1.8.7-2 libgdbm-compat4=1.19-2 libgdbm6=1.19-2 libgeronimo-annotation-1.3-spec-java=1.3-1 libgeronimo-interceptor-3.0-spec-java=1.0.1-4 libgif7=5.1.9-2 libgl1=1.3.2-1 libgl1-mesa-dri=20.3.4-1 libglapi-mesa=20.3.4-1 libglib2.0-0=2.66.5-1 libglvnd0=1.3.2-1 libglx-mesa0=20.3.4-1 libglx0=1.3.2-1 libgmp10=2:6.2.1+dfsg-1 libgnutls30=3.7.0-5 libgomp1=10.2.1-6 libgoogle-gson-java=2.8.6-1 libgpg-error0=1.38-2 libgraphite2-3=1.3.14-1 libgssapi-krb5-2=1.18.3-4 libguava-java=29.0-6 libguice-java=4.2.3-2 libhamcrest-java=1.3-9 libharfbuzz0b=2.7.4-1 libhawtjni-runtime-java=1.17-1 libhogweed6=3.7-2 libhttpclient-java=4.5.13-1 libhttpcore-java=4.4.14-1 libicu67=67.1-6 libidn2-0=2.3.0-5 libisl23=0.23-1 libitext1-java=1.4-7 libitm1=10.2.1-6 libjansi-java=1.18-1 libjansi-native-java=1.8-1 libjavaewah-java=1.1.7-1 libjaxen-java=1.1.6-4 libjaxp1.3-java=1.3.05-6 libjdom1-java=1.1.3-2 libjetty9-java=9.4.36-1 libjgit-java=4.11.9-1 libjline2-java=2.14.6-4 libjpeg62-turbo=1:2.0.5-2 libjsch-java=0.1.55-1 libjsp-api-java=2.3.4-3 libjsr305-java=0.1~+svn49-11 libjtidy-java=7+svn20110807-5 libjzlib-java=1.1.3-2 libk5crypto3=1.18.3-4 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-4 libkrb5support0=1.18.3-4 liblcms2-2=2.12~rc1-2 libllvm11=1:11.0.1-2 liblog4j1.2-java=1.2.17-9 liblsan0=10.2.1-6 liblz4-1=1.9.3-1 liblzma5=5.2.5-1.0 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmaven-archiver-java=3.2.0-2.1 libmaven-artifact-transfer-java=0.9.1-4 libmaven-bundle-plugin-java=3.5.1-2 libmaven-clean-plugin-java=3.1.0-1 libmaven-common-artifact-filters-java=3.0.1-3 libmaven-compiler-plugin-java=3.8.1-4 libmaven-dependency-tree-java=3.0.1-1.1 libmaven-deploy-plugin-java=2.8.2-3 libmaven-file-management-java=3.0.0-1 libmaven-filtering-java=3.1.1-1 libmaven-install-plugin-java=2.5.2-4.1 libmaven-jar-plugin-java=3.1.2-1 libmaven-parent-java=31-2 libmaven-plugin-tools-java=3.6.0-1 libmaven-reporting-api-java=3.0-1.1 libmaven-reporting-exec-java=1.4-2 libmaven-reporting-impl-java=3.0.0-2 libmaven-resolver-java=1.4.2-1 libmaven-resources-plugin-java=3.1.0-1 libmaven-shared-incremental-java=1.1-3 libmaven-shared-io-java=3.0.0-3 libmaven-shared-utils-java=3.3.0-1 libmaven-site-plugin-java=3.6-3 libmaven3-core-java=3.6.3-3 libmockito-java=2.23.0-1 libmount1=2.36.1-6 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libncurses6=6.2+20201114-2 libncursesw6=6.2+20201114-2 libnettle8=3.7-2 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libnspr4=2:4.29-1 libnss3=2:3.60-1 libobjenesis-java=3.1-1 libopentest4j-java=1.2.0-2 liboro-java=2.0.8a-14 libosgi-annotation-java=7.0.0-2 libosgi-compendium-java=7.0.0-1 libosgi-core-java=7.0.0-2 libp11-kit0=0.23.22-1 libpam-modules=1.4.0-4 libpam-modules-bin=1.4.0-4 libpam-runtime=1.4.0-4 libpam0g=1.4.0-4 libparboiled-java=1.1.7-2.1 libpciaccess0=0.16-1 libpcre2-8-0=10.36-2 libpcre3=2:8.39-13 libpcsclite1=1.9.0-1 libpegdown-java=1.6.0-1.1 libperl5.32=5.32.1-2 libpipeline1=1.5.3-1 libplexus-ant-factory-java=1.0~alpha2.1-4 libplexus-archiver-java=3.6.0-2 libplexus-bsh-factory-java=1.0~alpha7-4.1 libplexus-build-api-java=0.0.7-4 libplexus-cipher-java=1.7-3 libplexus-classworlds-java=2.6.0-1 libplexus-compiler-java=2.8.8-2 libplexus-component-annotations-java=2.1.0-1 libplexus-container-default-java=2.1.0-1 libplexus-container-default1.5-java=2.1.0-1 libplexus-i18n-java=1.0-beta-10-5 libplexus-interpolation-java=1.26-1 libplexus-io-java=3.2.0-1 libplexus-languages-java=0.9.10-2 libplexus-sec-dispatcher-java=1.4-4 libplexus-utils2-java=3.3.0-1 libplexus-velocity-java=1.2-3.1 libpng16-16=1.6.37-3 libprocps8=2:3.3.16-5 libqdox-java=1.12.1-3 libqdox2-java=2.0.0-1 libquadmath0=10.2.1-6 libseccomp2=2.5.1-1 libselinux1=3.1-2+b2 libsensors-config=1:3.6.0-7 libsensors5=1:3.6.0-7 libservlet-api-java=4.0.1-2 libservlet3.1-java=1:4.0.1-2 libsigsegv2=2.13-1 libsisu-guice-java=4.2.0-1 libsisu-inject-java=0.3.4-2 libsisu-ioc-java=2.3.0-11 libsisu-plexus-java=0.3.4-2 libslf4j-java=1.7.30-1 libsmartcols1=2.36.1-6 libsnappy-java=1.1.8.3-1 libsnappy-jni=1.1.8.3-1 libsnappy1v5=1.1.8-1 libsqlite3-0=3.34.1-1 libssl1.1=1.1.1i-3 libstdc++-10-dev=10.2.1-6 libstdc++6=10.2.1-6 libsub-override-perl=0.09-2 libsurefire-java=2.22.2-2 libsystemd0=247.3-1 libtasn1-6=4.16.0-2 libtinfo6=6.2+20201114-2 libtirpc-common=1.3.1-1 libtirpc-dev=1.3.1-1 libtirpc3=1.3.1-1 libtool=2.4.6-15 libtsan0=10.2.1-6 libubsan1=10.2.1-6 libuchardet0=0.0.7-1 libudev1=247.3-1 libunistring2=0.9.10-4 libunivocity-parsers-java=2.8.3-2 libuuid1=2.36.1-6 libvelocity-tools-java=2.0-7 libvulkan1=1.2.162.0-1 libwagon-file-java=3.3.4-1 libwagon-http-shaded-java=3.3.4-1 libwagon-provider-api-java=3.3.4-1 libwebsocket-api-java=1.1-2 libx11-6=2:1.7.0-2 libx11-data=2:1.7.0-2 libx11-xcb1=2:1.7.0-2 libxalan2-java=2.7.2-4 libxau6=1:1.0.9-1 libxbean-reflect-java=4.5-8 libxcb-dri2-0=1.14-3 libxcb-dri3-0=1.14-3 libxcb-glx0=1.14-3 libxcb-present0=1.14-3 libxcb-shm0=1.14-3 libxcb-sync1=1.14-3 libxcb-xfixes0=1.14-3 libxcb1=1.14-3 libxdamage1=1:1.1.5-2 libxdmcp6=1:1.1.2-3 libxerces2-java=2.12.1-1 libxext6=2:1.3.3-1.1 libxfixes3=1:5.0.3-2 libxi6=2:1.7.10-1 libxml-commons-external-java=1.4.01-5 libxml-commons-resolver1.1-java=1.2-11 libxml2=2.9.10+dfsg-6.3+b1 libxml2-utils=2.9.10+dfsg-6.3+b1 libxmlgraphics-commons-java=2.4-1 libxrender1=1:0.9.10-1 libxshmfence1=1.3-1 libxtst6=2:1.2.3-1 libxxf86vm1=1:1.1.4-1+b2 libxz-java=1.8-2 libyaml-snake-java=1.27+ds-1 libz3-4=4.8.10-1 libzstd1=1.4.8+dfsg-1 linux-libc-dev=5.10.12-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-5 make=4.3-4 man-db=2.9.3-2 maven=3.6.3-3 maven-debian-helper=2.5 maven-repo-helper=1.9.4 mawk=1.3.4.20200120-2 ncurses-base=6.2+20201114-2 ncurses-bin=6.2+20201114-2 openjdk-11-jdk=11.0.10+9-1 openjdk-11-jdk-headless=11.0.10+9-1 openjdk-11-jre=11.0.10+9-1 openjdk-11-jre-headless=11.0.10+9-1 openssl=1.1.1i-3 patch=2.7.6-7 perl=5.32.1-2 perl-base=5.32.1-2 perl-modules-5.32=5.32.1-2 po-debconf=1.0.21+nmu1 procps=2:3.3.16-5 sed=4.7-1 sensible-utils=0.0.14 sgml-base=1.30 sysvinit-utils=2.96-5 tar=1.32+dfsg-1 ucf=3.0043 unzip=6.0-26 util-linux=2.36.1-6 velocity=1.7-5.1 x11-common=1:7.7+21 xz-utils=5.2.5-1.0 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210204T083352Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d java-diff-utils=4.9-1 && mkdir -p /build/java-diff-utils-hE4k8d && dpkg-source --no-check -x /*.dsc /build/java-diff-utils-hE4k8d/java-diff-utils-4.9 && chown -R builduser:builduser /build/java-diff-utils-hE4k8d" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/java-diff-utils-hE4k8d/java-diff-utils-4.9 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1612393511" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/java-diff-utils-hE4k8d /tmp/java-diff-utils-4.9-174_mp5ss bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20210204T083352Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.OyKsN1eS17 as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.OyKsN1eS17 Reading package lists... Building dependency tree... util-linux is already the newest version (2.36.1-6). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20210204T083352Z unstable/main amd64 libfakeroot amd64 1.25.3-1.1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20210204T083352Z unstable/main amd64 fakeroot amd64 1.25.3-1.1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (624 kB/s) Selecting previously unselected package libfakeroot:amd64. (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 ... 4663 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1.1_amd64.deb ... Unpacking fakeroot (1.25.3-1.1) ... Setting up libfakeroot:amd64 (1.25.3-1.1) ... Setting up fakeroot (1.25.3-1.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-9) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210204T083352Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.OyKsN1eS17 Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20210204T083352Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 20s (1150 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.OyKsN1eS17 I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d java-diff-utils=4.9-1 && mkdir -p /build/java-diff-utils-hE4k8d && dpkg-source --no-check -x /*.dsc /build/java-diff-utils-hE4k8d/java-diff-utils-4.9 && chown -R builduser:builduser /build/java-diff-utils-hE4k8d"' exec /tmp/mmdebstrap.OyKsN1eS17 Reading package lists... NOTICE: 'java-diff-utils' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/java-team/java-diff-utils.git Please use: git clone https://salsa.debian.org/java-team/java-diff-utils.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 1719 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main java-diff-utils 4.9-1 (dsc) [2205 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main java-diff-utils 4.9-1 (tar) [1713 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main java-diff-utils 4.9-1 (diff) [3556 B] Fetched 1719 kB in 2s (1096 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'java-diff-utils_4.9-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting java-diff-utils in /build/java-diff-utils-hE4k8d/java-diff-utils-4.9 dpkg-source: info: unpacking java-diff-utils_4.9.orig.tar.xz dpkg-source: info: unpacking java-diff-utils_4.9-1.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/java-diff-utils-hE4k8d/java-diff-utils-4.9 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1612393511" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.OyKsN1eS17 dpkg-buildpackage: info: source package java-diff-utils dpkg-buildpackage: info: source version 4.9-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Emmanuel Bourg dpkg-source --before-build . fakeroot debian/rules clean dh clean dh_auto_clean bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done" mh_unpatchpoms -plibdiffutils-java dh_clean debian/rules build-indep dh build-indep dh_update_autotools_config -i dh_autoreconf -i dh_auto_configure -i mh_patchpoms -plibdiffutils-java --debian-build --keep-pom-version --maven-repo=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven-repo dh_auto_build -i /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9 -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian -Dmaven.repo.local=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] java-diff-utils-parent [pom] [INFO] java-diff-utils [jar] [INFO] java-diff-utils-jgit [jar] [INFO] [INFO] ----------< io.github.java-diff-utils:java-diff-utils-parent >---------- [INFO] Building java-diff-utils-parent 4.9 [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-bundle-plugin:3.5.1:manifest (bundle-manifest) @ java-diff-utils-parent --- [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] [INFO] [INFO] -------------< io.github.java-diff-utils:java-diff-utils >-------------- [INFO] Building java-diff-utils 4.9 [2/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ java-diff-utils --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ java-diff-utils --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 26 source files to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/target/classes [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/main/java/com/github/difflib/patch/DeleteDelta.java: Some input files use unchecked or unsafe operations. [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/main/java/com/github/difflib/patch/DeleteDelta.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-bundle-plugin:3.5.1:manifest (bundle-manifest) @ java-diff-utils --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ java-diff-utils --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ java-diff-utils --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/target/test-classes [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/test/java/com/github/difflib/patch/PatchTest.java: Some input files use unchecked or unsafe operations. [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/test/java/com/github/difflib/patch/PatchTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ java-diff-utils --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ java-diff-utils --- [INFO] Building jar: /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/target/java-diff-utils-4.9.jar [INFO] [INFO] -----------< io.github.java-diff-utils:java-diff-utils-jgit >----------- [INFO] Building java-diff-utils-jgit 4.9 [3/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ java-diff-utils-jgit --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ java-diff-utils-jgit --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/target/classes [INFO] [INFO] --- maven-bundle-plugin:3.5.1:manifest (bundle-manifest) @ java-diff-utils-jgit --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ java-diff-utils-jgit --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ java-diff-utils-jgit --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/target/test-classes [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/src/test/java/com/github/difflib/algorithm/jgit/LRHistogramDiffTest.java: Some input files use unchecked or unsafe operations. [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/src/test/java/com/github/difflib/algorithm/jgit/LRHistogramDiffTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ java-diff-utils-jgit --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ java-diff-utils-jgit --- [INFO] Building jar: /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/target/java-diff-utils-jgit-4.9.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for java-diff-utils-parent 4.9: [INFO] [INFO] java-diff-utils-parent ............................. SUCCESS [ 5.202 s] [INFO] java-diff-utils .................................... SUCCESS [ 50.485 s] [INFO] java-diff-utils-jgit ............................... SUCCESS [ 12.804 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:09 min [INFO] Finished at: 2021-10-09T02:29:52Z [INFO] ------------------------------------------------------------------------ dh_auto_test -i /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9 -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian -Dmaven.repo.local=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven-repo --batch-mode test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] java-diff-utils-parent [pom] [INFO] java-diff-utils [jar] [INFO] java-diff-utils-jgit [jar] [INFO] [INFO] ----------< io.github.java-diff-utils:java-diff-utils-parent >---------- [INFO] Building java-diff-utils-parent 4.9 [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-bundle-plugin:3.5.1:manifest (bundle-manifest) @ java-diff-utils-parent --- [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] [INFO] [INFO] -------------< io.github.java-diff-utils:java-diff-utils >-------------- [INFO] Building java-diff-utils 4.9 [2/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ java-diff-utils --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ java-diff-utils --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 26 source files to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/target/classes [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/main/java/com/github/difflib/patch/DeleteDelta.java: Some input files use unchecked or unsafe operations. [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/main/java/com/github/difflib/patch/DeleteDelta.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-bundle-plugin:3.5.1:manifest (bundle-manifest) @ java-diff-utils --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ java-diff-utils --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ java-diff-utils --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/target/test-classes [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/test/java/com/github/difflib/patch/PatchTest.java: Some input files use unchecked or unsafe operations. [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/src/test/java/com/github/difflib/patch/PatchTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ java-diff-utils --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.github.difflib.text.StringUtilsTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.1 s - in com.github.difflib.text.StringUtilsTest [INFO] Running com.github.difflib.text.DiffRowGeneratorTest [[CHANGE,Ich möchte nicht **mehr **mit ~einem~**dir** ~Bot ~sprechen.** Leite mich weiter.**,Ich möchte nicht mehr mit dir sprechen. Leite mich weiter.], [CHANGE,~Ich~**Kannst** ~soll~**du** ~das~**mich** ~schon~**zum** ~wieder~**Kundendienst** ~wiederholen?~**weiterleiten?**,Kannst du mich zum Kundendienst weiterleiten?]] This is a test ~senctence~**for diffutils**. |original|new| |--------|---| |This is a test ~senctence~.|This is a test **for diffutils**.| |This is the second line.|This is the second line.| |~And here is the finish.~|| [CHANGE,anything ,anything] [CHANGE, ,] [EQUAL,other,other] [test, , ,, , test2] [test, ,, test2, ,] [CHANGE,Testester,ester] [CHANGE,Testester
feature best,ester feature best] [[CHANGE,Ich möchte nicht mit ~e~i~nem~ ~Bot ~sprechen.,Ich möchte nicht m**ehr m**it **d**i**r** sprechen.** Leite mi**ch **weiter.**], [CHANGE,~I~ch s~oll~ d~as~ ~s~ch~on~ ~wi~ede~r~ wie~de~r~ho~len?,**Kann**s**t** d**u** **mi**ch **zum Kund**e**n**d**i**e**nst** w**e**i**t**erle**ite**n?]] [CHANGE,Tester,ester] [CHANGE,test,anything] [CHANGE,anything ,] [CHANGE, ,] [EQUAL,other,other] [INSERT,test,test] [INSERT,test2,test2] [CHANGE,anything ,anything] [CHANGE, ,] [EQUAL,other,other] [CHANGE,anything ,anything] [CHANGE, ,] [EQUAL,other,other] [EQUAL,anything ,anything ] [EQUAL, , ] [EQUAL,other,other] [CHANGE,more lines,some more lines] [[CHANGE,American bobtail jaguar. American bobtail bombay but turkish angora and tomcat.,bobtail jaguar. American bobtail turkish angora and tomcat.], [CHANGE,Russian blue leopard. Lion. Tabby scottish fold for russian blue, so savannah yet lynx. Tomcat singa
pura, cheetah.,Russian blue leopard. Lion. Tabby scottish folded for russian blu
e, so savannah yettie? lynx. Tomcat singapura, cheetah.], [CHANGE,Bengal tiger panther but singapura but bombay munchkin for cougar.,Bengal tiger panther but singapura but bombay munchkin for cougar. And m
ore.
]] [EQUAL,MessageTime,MessageType,Instrument,InstrumentState,TradePrice,TradeVolume,TradeCond,TradeId,AskPrice1,AskVol1,BidPrice1,BidVol1,AskPrice2,AskVol2,BidPrice2,BidVol2,AskPrice3,AskVol3,BidPrice3,BidVol3,AskPrice4,AskVol4,BidPrice4,BidVol4,AskPrice5,AskVol5,BidPrice5,BidVol5,MessageTime,MessageType,Instrument,InstrumentState,TradePrice,TradeVolume,TradeCond,TradeId,AskPrice1,AskVol1,BidPrice1,BidVol1,AskPrice2,AskVol2,BidPrice2,BidVol2,AskPrice3,AskVol3,BidPrice3,BidVol3,AskPrice4,AskVol4,BidPrice4,BidVol4,AskPrice5,AskVol5,BidPrice5,BidVol5] [CHANGE,2020-04-~04T08:00:00~.000Z,S,HHD_MAY20,Open,,,,,,,,,,,,,,,,,,,,,,,,,2020-04-**02T08:00:00**.000Z,S,HHD_MAY20,Open,,,,,,,,,,,,,,,,,,,,,,,,] [CHANGE,2020-04-~04T08:00:00~.000Z,S,FHK_C23.5_MAY20,Open,,,,,,,,,,,,,,,,,,,,,,,,,2020-04-**02T08:00:00**.000Z,S,FHK_C23.5_MAY20,Open,,,,,,,,,,,,,,,,,,,,,,,,] [EQUAL,2020-04-04T13:49:11.522Z,Q,HHD_MAY20,,,,,,2.6,10,2.6,10,,,,,,,,,,,,,,,,,2020-04-04T13:49:11.522Z,Q,HHD_MAY20,,,,,,2.6,10,2.6,10,,,,,,,,,,,,,,,,] [CHANGE,2020-04-04T13:49:18.210Z,T,HHD_MAY20,,2.6,~1~,Screen,0,,,,,,,,,,,,,,,,,,,,,2020-**04xs-04T17dw:00:00.000Z,Sdwdw,HHD_MAY20dwdw,Closdwde,,,,,,,,,,,,,,,,,,,,,,,,**] [CHANGE,,**2020-**04-04T13:49:18.210Z,T,HHD_MAY20,,2.6,**2**,Screen,0,,,,,,,,,,,,,,,,,,,,] [EQUAL,2020-04-04T17:00:00.000Z,S,HHD_MAY20,Close,,,,,,,,,,,,,,,,,,,,,,,,,2020-04-04T17:00:00.000Z,S,HHD_MAY20,Close,,,,,,,,,,,,,,,,,,,,,,,,] [EQUAL,2020-04-04T17:00:00.000Z,S,FHK_C23.5_MAY20,Close,,,,,,,,,,,,,,,,,,,,,,,,,2020-04-04T17:00:00.000Z,S,FHK_C23.5_MAY20,Close,,,,,,,,,,,,,,,,,,,,,,,,] ~J. G. Feldstein~**T. P. Pastor**, Chair |TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, NULLABLE,| TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, NULLABLE, | |~ACTIONS_C17005~, ID, NUMBER, 22, 19, N,| **ACTIONS_C16913**, ID, NUMBER, 22, 19, N, | |~ACTIONS_C17005~, ISSUEID, NUMBER, 22, 19, Y,| **ACTIONS_C16913**, ISSUEID, NUMBER, 22, 19, Y, | |~ACTIONS_C17005~, MODIFIED, NUMBER, 22, 10, Y,| **ACTIONS_C16913**, MODIFIED, NUMBER, 22, 10, Y, | |~ACTIONS_C17005~, ~TABLE~, ~VARCHAR2~, ~1020~, ~null~, Y,| **ACTIONS_C16913**, **VRS**, **NUMBER**, **22**, **1**, Y, | |~ACTIONS_C17005~, ~S_NAME~, ~CLOB~, ~4000~, null, Y,| **ACTIONS_C16913**, **ZTABS**, **VARCHAR2**, **255**, null, Y, | |~ACTIONS_C17008~, ~ID~, ~NUMBER~, ~22~, ~19~, ~N~,| **ACTIONS_C16913**, **ZTABS_S**, **VARCHAR2**, **255**, **null**, **Y**, | |~ACTIONS_C17008~, ~ISSUEID~, ~NUMBER~, ~22~, ~19~, Y,| **ACTIONS_C16913**, **TASK**, **VARCHAR2**, **255**, **null**, Y, | |~ACTIONS_C17008~, ~MODIFIED~, ~NUMBER~, ~22~, ~10~, Y,| **ACTIONS_C16913**, **HOURS_SPENT**, **VARCHAR2**, **255**, **null**, Y, | |original|new| |--------|---| |This is a test ~senctence~.|This is a test **for diffutils**.| ||**This is the second line.**| [CHANGE,Ich möchte nicht m**ehr m**it ~e~**d**i~nem~**r** ~Bot ~sprechen.~ I~** Leite mi**ch **weiter.**,Ich möchte nicht mehr mit dir sprechen. Leite mich weiter.] [CHANGE,**Kann**s~oll~**t** d~as~**u** ~s~**mi**ch~on~ ~wi~**zum Kund**e**n**d**i**e~r~**nst** w**e**i**t**e~de~r~ho~le**ite**n?,Kannst du mich zum Kundendienst weiterleiten?] [CHANGE,anyth
ing ,anyth
ing] [CHANGE, ,] [EQUAL,other,other] [[CHANGE,Ich möchte nicht mit einem Bot sprechen.,Ich möchte nicht mehr mit dir sprechen. Leite mich weiter.], [CHANGE,Ich soll das schon wieder wiederholen?,Kannst du mich zum Kundendienst weiterleiten?]] [CHANGE,anything ,anything] [CHANGE, ,] [EQUAL,other,other] [CHANGE,anything ,anything] [CHANGE, ,] [EQUAL,other,other] [INFO] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.293 s - in com.github.difflib.text.DiffRowGeneratorTest [INFO] Running com.github.difflib.unifieddiff.UnifiedDiffReaderTest com.github.difflib.unifieddiff.UnifiedDiff@7c0c77c7 com.github.difflib.unifieddiff.UnifiedDiff@1b1473ab com.github.difflib.unifieddiff.UnifiedDiff@2f7c2f4f com.github.difflib.unifieddiff.UnifiedDiff@6af93788 [INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.301 s - in com.github.difflib.unifieddiff.UnifiedDiffReaderTest [INFO] Running com.github.difflib.unifieddiff.UnifiedDiffRoundTripTest header -- tail header --- original +++ revised @@ -1,4 +1,5 @@ test line1 test line2 +@@ -2,6 +2,7 @@ test line 4 test line 5 -- tail header --- 5A.txt +++ 5B.txt @@ -106,20 +106,28 @@ +++ b/x @@ -1,6 +1,6 @@ -whitespace at beginning + whitespace at beginning whitespace change -whitespace in the middle +white space in the middle whitespace at end unchanged line CR at endQ +git diff -b --ignore-space-at-eol > out +test_expect_failure 'another test, with -b --ignore-space-at-eol' 'test_cmp expect out' + +tr 'Q' '\015' << EOF > expect +diff --git a/x b/x +index d99af23..8b32fb5 100644 +--- a/x ++++ b/x EOF git diff -b > out test_expect_success 'another test, with -b' 'test_cmp expect out' test_expect_success 'check mixed spaces and tabs in indent' ' # This is indented with SP HT SP. echo " foo();" > x && git diff --check | grep "space before tab in indent" @@ -363,10 +371,11 @@ git config core.autocrlf true && test_must_fail git merge master && git diff | sed -e "1,/^@@@/d" >actual && ! grep "^-" actual ' test_done + -- tail header --- original.txt +++ revised.txt @@ -1,27 +1,27 @@ /* Copyright 2009 Dmitry Naumenko (dm.naumenko@gmail.com) - This file is part of Java Diff Utills Library. + This file is part of Java Diff Utils Library. - Java Diff Utills Library is free software: you can redistribute it and/or modify + Java Diff Utils Library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Java Diff Utills Library is distributed in the hope that it will be useful, + Java Diff Utils Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with Java Diff Utills Library. If not, see . + along with Java Diff Utils Library. If not, see . */ package difflib; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import difflib.myers.*; /** @@ -71,21 +71,21 @@ } /** * Unpatch the revised text for a given patch * * @param revised the revised text * @param patch the given patch * @return the original text */ public static List unpatch(List revised, Patch patch) { - return patch.restore(revised); + return patch.restore(revised); // bla-bla-bla } /** * Parse the given text in unified format and creates the list of deltas for it. * * @param diff the text in unified format * @return the patch with deltas. */ public static Patch parseUnifiedDiff(List diff) { boolean inPrelude = true; @@ -145,30 +145,164 @@ } } } } // Process the lines in the last chunk if (rawChunk.size() != 0) { List oldChunkLines = new ArrayList(); List newChunkLines = new ArrayList(); - for (Object[] raw_line: rawChunk) { + for (Object[] raw_line: rawChunk) + { tag = (String)raw_line[0]; rest = (String)raw_line[1]; - if (tag.equals(" ") || tag.equals("-")) { + if (tag.equals(" ") || tag.equals("-")) + { oldChunkLines.add(rest); } - if (tag.equals(" ") || tag.equals("+")) { + if (tag.equals(" ") || tag.equals("+")) + { newChunkLines.add(rest); } } patch.addDelta(new ChangeDelta(new Chunk(old_ln - 1, old_n, oldChunkLines), new Chunk(new_ln - 1, new_n, newChunkLines))); rawChunk.clear(); } return patch; } + + /** + * generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing the Patch. + * @author Bill James (tankerbay@gmail.com) + * + * @param fname1 - Filename of the original (unrevised file) + * @param fname2 - Filename of the revised file + * @param originalLines - Lines of the original file + * @param patch - Patch created by the diff() function + * @param contextSize - number of lines of context output around each difference in the file. + * @return List of strings representing the Unified Diff representation of the Patch argument. + */ + public static List generateUnifiedDiff(String fname1, String fname2, List originalLines, Patch patch, int contextSize ) { + List ret = new ArrayList(); + ret.add( "--- " + fname1 ); + ret.add( "+++ " + fname2 ); + + List cur = new ArrayList(); // current list of Delta's to process + int deltact = patch.getDeltas().size(); + // if there's more than 1 Delta, we may need to output them together + if ( deltact > 1 ) { + Delta curDelta = patch.getDelta(0); + cur.add( curDelta ); // add the first Delta to the current set + for ( int i = 1; i < deltact; i++ ) { + int curpos = curDelta.getOriginal().getPosition(); // store the current position of the first Delta + Delta nextDelta = patch.getDelta(i); // Check if the next Delta is too close to the current position + if ( (curpos + curDelta.getOriginal().getSize() + contextSize) >= ( nextDelta.getOriginal().getPosition()-contextSize ) ) { + cur.add( nextDelta ); // if it is, add it to the current set + } else { + List curBlock = processDeltas( originalLines, cur, contextSize ); + ret.addAll( curBlock ); // if it isn't, output the current set, then create a new + cur.clear(); // set and add the current Delta to it. + cur.add( nextDelta ); + } + curDelta = nextDelta; + } + List curBlock = processDeltas( originalLines, cur, contextSize ); // don't forget to process the last set of Deltas + ret.addAll( curBlock ); + } + + return ret; + } + + /** + * processDeltas takes a list of Deltas and outputs them together in a single block of Unified-Diff-format text. + * @author Bill James (tankerbay@gmail.com) + * + * @param origLines - the lines of the original file + * @param deltas - the Deltas to be output as a single block + * @param contextSize - the number of lines of context to place around block + * @return + */ + private static List processDeltas( List origLines, List deltas, int contextSize ) { + List buffer = new ArrayList(); + int origTotal = 0; // counter for total lines output from Original + int revTotal = 0; // counter for total lines output from Original + int line; + + Delta curDelta = deltas.get(0); // start with the first Delta + int origStart = curDelta.getOriginal().getPosition()+1 - contextSize; // note the +1 to overcome the 0-offset Position + if ( origStart < 1 ) origStart = 1; // clamp to the start of the file + int revStart = curDelta.getRevised().getPosition()+1 - contextSize; // note the +1 to overcome the 0-offset Position + if ( revStart < 1 ) revStart = 1; // clamp to the start of the file + int contextStart = curDelta.getOriginal().getPosition() - contextSize; // find the start of the wrapper context code + if ( contextStart < 0 ) contextStart = 0; // clamp to the start of the file + for ( line = contextStart; line < curDelta.getOriginal().getPosition(); line++ ) { // output the context before the first Delta + buffer.add( " " + origLines.get( line ) ); + origTotal++; + revTotal++; + } + buffer.addAll( getDeltaText( curDelta ) ); // output the first Delta + origTotal += curDelta.getOriginal().getLines().size(); + revTotal += curDelta.getRevised().getLines().size(); + + int deltaIndex = 1; + while ( deltaIndex < deltas.size() ) { // for each of the other Deltas + Delta nextDelta = deltas.get( deltaIndex ); + int intermediateStart = curDelta.getOriginal().getPosition() + curDelta.getOriginal().getLines().size(); + for ( line = intermediateStart; line < nextDelta.getOriginal().getPosition(); line++ ) { + buffer.add( " " + origLines.get( line ) ); // output the code between the last Delta and this one + origTotal++; + revTotal++; + } + buffer.addAll( getDeltaText( nextDelta ) ); // output the Delta + origTotal += nextDelta.getOriginal().getLines().size(); + revTotal += nextDelta.getRevised().getLines().size(); + curDelta = nextDelta; + deltaIndex++; // increment the iterator + } + + // Now output the post-Delta context code, clamping the end of the file + contextStart = curDelta.getOriginal().getPosition() + curDelta.getOriginal().getLines().size(); + for ( line = contextStart; ( line < (contextStart + contextSize )) && ( line < origLines.size() ); line++ ) { + buffer.add( " " + origLines.get( line ) ); + origTotal++; + revTotal++; + } + + // Create and insert the block header, conforming to the Unified Diff standard + StringBuffer header = new StringBuffer(); + header.append( "@@ -" ); + header.append( origStart ); + header.append( "," ); + header.append( origTotal ); + header.append( " +" ); + header.append( revStart ); + header.append( "," ); + header.append( revTotal ); + header.append( " @@" ); + buffer.add( 0, header.toString() ); + + return buffer; + } + + /** + * getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter + * @author Bill James (tankerbay@gmail.com) + * + * @param delta - the Delta to output + * @return list of String lines of code. + */ + private static List getDeltaText( Delta delta ) { + List buffer = new ArrayList(); + for ( Object line: delta.getOriginal().getLines() ) { + buffer.add( "-" + line ); + } + for ( Object line: delta.getRevised().getLines() ) { + buffer.add( "+" + line ); + } + return buffer; + } } -- tail header --- one_delta_test_original.txt +++ one_delta_test_revised.txt @@ -1,54 +1,11 @@ -

Esta é uma obra Online.

-

 

-

Este texto é negrito

-

Este texto é itálico

-

Este texto está sublinhado

-

Este texto está riscado

-

Este texto está centralizado

-

Este texto está alinhado a direita

-
    -
  1. Este texto está em uma lista numérica
      -
    1. Este texto está identado
    2. -
  2. -
-

Este -aqui é um link

-

 

-

 

-

 

, -

 

-

Página 1

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

Página 2

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

Página 3

-

 

+

Revisão 3

 

Esta é uma obra +Online.

 

Este texto é +negrit

Este texto é itálico/p>

Este texto está +sublinhado

Este texto está riscado agora não +está mais

p style="text-align: left;">Este texto está +centralizado nem este

Este texto +está alinhado a direita

  1. Este texto está em uma +lista numérica

Este aqui é um +link

-- tail [WARNING] Tests run: 7, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.307 s - in com.github.difflib.unifieddiff.UnifiedDiffRoundTripTest [INFO] Running com.github.difflib.unifieddiff.UnifiedDiffWriterTest From 3209a16c55c1976d5b772c607fd4b9d5fb9f9483 Mon Sep 17 00:00:00 2001 From: wumpz Date: Tue, 19 Feb 2019 01:35:14 +0100 Subject: [PATCH] fixes #753 --- src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt | 5 +++-- .../net/sf/jsqlparser/statement/select/SelectTest.java | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt b/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt index cd9bcd1..5f4b2b7 100644 --- src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt +++ src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt @@ -184,6 +184,7 @@ -| -| -| -| -| -| +| +| +| +| +| +| +| @@ -1034,7 +1035,7 @@ - | tk= | tk= | tk= | tk= - | tk= - | tk= | tk= | tk= | tk= - | tk= | tk= | tk= -/* | tk= | tk= | tk= | tk= */ - ) - + | tk= | tk= | tk= | tk= + | tk= + | tk= | tk= | tk= | tk= + | tk= | tk= | tk= | tk= +/* | tk= | tk= | tk= | tk= */ + ) + @@ -3113,7 +3114,7 @@ - Expression expr1 = null; -} -{ - ["{fn" { retval.setEscaped(true); } ] - - funcName=RelObjectNameExt() - + Expression expr1 = null; +} +{ + ["{" { retval.setEscaped(true); } ] + + funcName=RelObjectNameExt() + diff --git a/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java b/src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java index 7ee9b38..d39bfd3 100644 --- src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java +++ src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java @@ -1058,6 +1058,13 @@ - assertSqlCanBeParsedAndDeparsed("SELECT {fn concat(a, b)} AS COL"); - } - - @Test - public void testNamedParametersPR702() throws JSQLParserException { - assertSqlCanBeParsedAndDeparsed("SELECT substring(id, 2, 3), substring(id from 2 for 3), substring(id from 2), trim(BOTH ' ' from 'foo bar '), trim(LEADING ' ' from 'foo bar '), trim(TRAILING ' ' from 'foo bar '), trim(' ' from 'foo bar '), position('foo' in 'bar'), overlay('foo' placing 'bar' from 1), overlay('foo' placing 'bar' from 1 for 2) FROM my table"); + assertSqlCanBeParsedAndDeparsed("SELECT {fn concat(a, b)} AS COL"); + } + + @Test + public void testEscapedFunctionsIssue753() throws JSQLParserException { + Statement stmt = CCJSqlParserUtil.parse("SELECT { fn test(0)} AS COL"); + assertEquals("SELECT {fn test(0)} AS COL", stmt.toString()); + assertSqlCanBeParsedAndDeparsed("SELECT fn FROM fn"); + } + + @Test + public void testNamedParametersPR702() throws JSQLParserException { + assertSqlCanBeParsedAndDeparsed("SELECT substring(id, 2, 3), substring(id from 2 for 3), substring(id from 2), trim(BOTH ' ' from 'foo bar '), trim(LEADING ' ' from 'foo bar '), trim(TRAILING ' ' from 'foo bar '), trim(' ' from 'foo bar '), position('foo' in 'bar'), overlay('foo' placing 'bar' from 1), overlay('foo' placing 'bar' from 1 for 2) FROM my table"); -- 2.17.1.windows.2 --- /dev/null +++ revised @@ -0,0 +1,2 @@ +line1 +line2 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in com.github.difflib.unifieddiff.UnifiedDiffWriterTest [INFO] Running com.github.difflib.algorithm.myers.MyersDiffTest [start, 0 - 14, 1 - 14, 2 - 14, 3 - 14, 4 - 14, 5 - 14, end] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.github.difflib.algorithm.myers.MyersDiffTest [INFO] Running com.github.difflib.GenerateUnifiedDiffTest --- 5A.txt +++ 5B.txt @@ -106,20 +106,28 @@ +++ b/x @@ -1,6 +1,6 @@ -whitespace at beginning + whitespace at beginning whitespace change -whitespace in the middle +white space in the middle whitespace at end unchanged line CR at endQ +git diff -b --ignore-space-at-eol > out +test_expect_failure 'another test, with -b --ignore-space-at-eol' 'test_cmp expect out' + +tr 'Q' '\015' << EOF > expect +diff --git a/x b/x +index d99af23..8b32fb5 100644 +--- a/x ++++ b/x EOF git diff -b > out test_expect_success 'another test, with -b' 'test_cmp expect out' test_expect_success 'check mixed spaces and tabs in indent' ' # This is indented with SP HT SP. echo " foo();" > x && git diff --check | grep "space before tab in indent" @@ -363,10 +371,11 @@ git config core.autocrlf true && test_must_fail git merge master && git diff | sed -e "1,/^@@@/d" >actual && ! grep "^-" actual ' test_done + --- original.txt +++ revised.txt @@ -1,27 +1,27 @@ /* Copyright 2009 Dmitry Naumenko (dm.naumenko@gmail.com) - This file is part of Java Diff Utills Library. + This file is part of Java Diff Utils Library. - Java Diff Utills Library is free software: you can redistribute it and/or modify + Java Diff Utils Library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Java Diff Utills Library is distributed in the hope that it will be useful, + Java Diff Utils Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with Java Diff Utills Library. If not, see . + along with Java Diff Utils Library. If not, see . */ package difflib; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import difflib.myers.*; /** @@ -71,21 +71,21 @@ } /** * Unpatch the revised text for a given patch * * @param revised the revised text * @param patch the given patch * @return the original text */ public static List unpatch(List revised, Patch patch) { - return patch.restore(revised); + return patch.restore(revised); // bla-bla-bla } /** * Parse the given text in unified format and creates the list of deltas for it. * * @param diff the text in unified format * @return the patch with deltas. */ public static Patch parseUnifiedDiff(List diff) { boolean inPrelude = true; @@ -145,30 +145,164 @@ } } } } // Process the lines in the last chunk if (rawChunk.size() != 0) { List oldChunkLines = new ArrayList(); List newChunkLines = new ArrayList(); - for (Object[] raw_line: rawChunk) { + for (Object[] raw_line: rawChunk) + { tag = (String)raw_line[0]; rest = (String)raw_line[1]; - if (tag.equals(" ") || tag.equals("-")) { + if (tag.equals(" ") || tag.equals("-")) + { oldChunkLines.add(rest); } - if (tag.equals(" ") || tag.equals("+")) { + if (tag.equals(" ") || tag.equals("+")) + { newChunkLines.add(rest); } } patch.addDelta(new ChangeDelta(new Chunk(old_ln - 1, old_n, oldChunkLines), new Chunk(new_ln - 1, new_n, newChunkLines))); rawChunk.clear(); } return patch; } + + /** + * generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing the Patch. + * @author Bill James (tankerbay@gmail.com) + * + * @param fname1 - Filename of the original (unrevised file) + * @param fname2 - Filename of the revised file + * @param originalLines - Lines of the original file + * @param patch - Patch created by the diff() function + * @param contextSize - number of lines of context output around each difference in the file. + * @return List of strings representing the Unified Diff representation of the Patch argument. + */ + public static List generateUnifiedDiff(String fname1, String fname2, List originalLines, Patch patch, int contextSize ) { + List ret = new ArrayList(); + ret.add( "--- " + fname1 ); + ret.add( "+++ " + fname2 ); + + List cur = new ArrayList(); // current list of Delta's to process + int deltact = patch.getDeltas().size(); + // if there's more than 1 Delta, we may need to output them together + if ( deltact > 1 ) { + Delta curDelta = patch.getDelta(0); + cur.add( curDelta ); // add the first Delta to the current set + for ( int i = 1; i < deltact; i++ ) { + int curpos = curDelta.getOriginal().getPosition(); // store the current position of the first Delta + Delta nextDelta = patch.getDelta(i); // Check if the next Delta is too close to the current position + if ( (curpos + curDelta.getOriginal().getSize() + contextSize) >= ( nextDelta.getOriginal().getPosition()-contextSize ) ) { + cur.add( nextDelta ); // if it is, add it to the current set + } else { + List curBlock = processDeltas( originalLines, cur, contextSize ); + ret.addAll( curBlock ); // if it isn't, output the current set, then create a new + cur.clear(); // set and add the current Delta to it. + cur.add( nextDelta ); + } + curDelta = nextDelta; + } + List curBlock = processDeltas( originalLines, cur, contextSize ); // don't forget to process the last set of Deltas + ret.addAll( curBlock ); + } + + return ret; + } + + /** + * processDeltas takes a list of Deltas and outputs them together in a single block of Unified-Diff-format text. + * @author Bill James (tankerbay@gmail.com) + * + * @param origLines - the lines of the original file + * @param deltas - the Deltas to be output as a single block + * @param contextSize - the number of lines of context to place around block + * @return + */ + private static List processDeltas( List origLines, List deltas, int contextSize ) { + List buffer = new ArrayList(); + int origTotal = 0; // counter for total lines output from Original + int revTotal = 0; // counter for total lines output from Original + int line; + + Delta curDelta = deltas.get(0); // start with the first Delta + int origStart = curDelta.getOriginal().getPosition()+1 - contextSize; // note the +1 to overcome the 0-offset Position + if ( origStart < 1 ) origStart = 1; // clamp to the start of the file + int revStart = curDelta.getRevised().getPosition()+1 - contextSize; // note the +1 to overcome the 0-offset Position + if ( revStart < 1 ) revStart = 1; // clamp to the start of the file + int contextStart = curDelta.getOriginal().getPosition() - contextSize; // find the start of the wrapper context code + if ( contextStart < 0 ) contextStart = 0; // clamp to the start of the file + for ( line = contextStart; line < curDelta.getOriginal().getPosition(); line++ ) { // output the context before the first Delta + buffer.add( " " + origLines.get( line ) ); + origTotal++; + revTotal++; + } + buffer.addAll( getDeltaText( curDelta ) ); // output the first Delta + origTotal += curDelta.getOriginal().getLines().size(); + revTotal += curDelta.getRevised().getLines().size(); + + int deltaIndex = 1; + while ( deltaIndex < deltas.size() ) { // for each of the other Deltas + Delta nextDelta = deltas.get( deltaIndex ); + int intermediateStart = curDelta.getOriginal().getPosition() + curDelta.getOriginal().getLines().size(); + for ( line = intermediateStart; line < nextDelta.getOriginal().getPosition(); line++ ) { + buffer.add( " " + origLines.get( line ) ); // output the code between the last Delta and this one + origTotal++; + revTotal++; + } + buffer.addAll( getDeltaText( nextDelta ) ); // output the Delta + origTotal += nextDelta.getOriginal().getLines().size(); + revTotal += nextDelta.getRevised().getLines().size(); + curDelta = nextDelta; + deltaIndex++; // increment the iterator + } + + // Now output the post-Delta context code, clamping the end of the file + contextStart = curDelta.getOriginal().getPosition() + curDelta.getOriginal().getLines().size(); + for ( line = contextStart; ( line < (contextStart + contextSize )) && ( line < origLines.size() ); line++ ) { + buffer.add( " " + origLines.get( line ) ); + origTotal++; + revTotal++; + } + + // Create and insert the block header, conforming to the Unified Diff standard + StringBuffer header = new StringBuffer(); + header.append( "@@ -" ); + header.append( origStart ); + header.append( "," ); + header.append( origTotal ); + header.append( " +" ); + header.append( revStart ); + header.append( "," ); + header.append( revTotal ); + header.append( " @@" ); + buffer.add( 0, header.toString() ); + + return buffer; + } + + /** + * getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter + * @author Bill James (tankerbay@gmail.com) + * + * @param delta - the Delta to output + * @return list of String lines of code. + */ + private static List getDeltaText( Delta delta ) { + List buffer = new ArrayList(); + for ( Object line: delta.getOriginal().getLines() ) { + buffer.add( "-" + line ); + } + for ( Object line: delta.getRevised().getLines() ) { + buffer.add( "+" + line ); + } + return buffer; + } } --- one_delta_test_original.txt +++ one_delta_test_revised.txt @@ -1,54 +1,11 @@ -

Esta é uma obra Online.

-

 

-

Este texto é negrito

-

Este texto é itálico

-

Este texto está sublinhado

-

Este texto está riscado

-

Este texto está centralizado

-

Este texto está alinhado a direita

-
    -
  1. Este texto está em uma lista numérica
      -
    1. Este texto está identado
    2. -
  2. -
-

Este -aqui é um link

-

 

-

 

-

 

, -

 

-

Página 1

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

Página 2

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

 

-

Página 3

-

 

+

Revisão 3

 

Esta é uma obra +Online.

 

Este texto é +negrit

Este texto é itálico/p>

Este texto está +sublinhado

Este texto está riscado agora não +está mais

p style="text-align: left;">Este texto está +centralizado nem este

Este texto +está alinhado a direita

  1. Este texto está em uma +lista numérica

Este aqui é um +link

[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.11 s - in com.github.difflib.GenerateUnifiedDiffTest [INFO] Running com.github.difflib.patch.PatchTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.github.difflib.patch.PatchTest [INFO] Running com.github.difflib.DiffUtilsTest Patch{deltas=[[EqualDelta, position: 0, lines: [The]], [ChangeDelta, position: 1, lines: [dog] to [fox]], [EqualDelta, position: 2, lines: [is]], [ChangeDelta, position: 3, lines: [brown] to [down]]]} [DeleteDelta, position: 0, lines: [1]] [ChangeDelta, position: 4, lines: [5] to [6]] [WARNING] Tests run: 14, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 s - in com.github.difflib.DiffUtilsTest [INFO] [INFO] Results: [INFO] [WARNING] Tests run: 92, Failures: 0, Errors: 0, Skipped: 2 [INFO] [INFO] [INFO] -----------< io.github.java-diff-utils:java-diff-utils-jgit >----------- [INFO] Building java-diff-utils-jgit 4.9 [3/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ java-diff-utils-jgit --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ java-diff-utils-jgit --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/target/classes [INFO] [INFO] --- maven-bundle-plugin:3.5.1:manifest (bundle-manifest) @ java-diff-utils-jgit --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ java-diff-utils-jgit --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ java-diff-utils-jgit --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/target/test-classes [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/src/test/java/com/github/difflib/algorithm/jgit/LRHistogramDiffTest.java: Some input files use unchecked or unsafe operations. [INFO] /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/src/test/java/com/github/difflib/algorithm/jgit/LRHistogramDiffTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ java-diff-utils-jgit --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.github.difflib.algorithm.jgit.HistogramDiffTest Patch{deltas=[[DeleteDelta, position: 0, lines: [A, B]], [DeleteDelta, position: 3, lines: [A, B]], [InsertDelta, position: 7, lines: [B, A, C]]]} [start, 0 - 13, 11 - 13, 9 - 14, 9 - 14, 5 - 14, 3 - 14, 2 - 13, 7 - 13, 9 - 14, 9 - 14, 5 - 13, 8 - 13, 7 - 13, 5 - 13, 10 - 13, 8 - 14, 2 - 14, end] Patch{deltas=[[DeleteDelta, position: 0, lines: [A, B]], [DeleteDelta, position: 3, lines: [A, B]], [InsertDelta, position: 7, lines: [B, A, C]]]} [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.122 s - in com.github.difflib.algorithm.jgit.HistogramDiffTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for java-diff-utils-parent 4.9: [INFO] [INFO] java-diff-utils-parent ............................. SUCCESS [ 5.214 s] [INFO] java-diff-utils .................................... SUCCESS [01:01 min] [INFO] java-diff-utils-jgit ............................... SUCCESS [ 15.389 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:22 min [INFO] Finished at: 2021-10-09T02:31:22Z [INFO] ------------------------------------------------------------------------ create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-indep dh binary-indep dh_testroot -i dh_prep -i dh_auto_install -i /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9 -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian -Dmaven.repo.local=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven-repo --batch-mode -Ddebian.dir=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian -Ddebian.package=libdiffutils-java -Dmaven.repo.local=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven-repo -Dinstall.to.usj=true org.debian.maven:debian-maven-plugin:2.5:install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] java-diff-utils-parent [pom] [INFO] java-diff-utils [jar] [INFO] java-diff-utils-jgit [jar] [INFO] [INFO] ----------< io.github.java-diff-utils:java-diff-utils-parent >---------- [INFO] Building java-diff-utils-parent 4.9 [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- debian-maven-plugin:2.5:install (default-cli) @ java-diff-utils-parent --- [INFO] Cleaning pom file: /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/pom.xml.save with options: [INFO] --keep-pom-version --package=libdiffutils-java --has-package-version [INFO] --rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.rules [INFO] --ignore-rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.ignoreRules [INFO] --published-rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.publishedRules [INFO] [INFO] -------------< io.github.java-diff-utils:java-diff-utils >-------------- [INFO] Building java-diff-utils 4.9 [2/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- debian-maven-plugin:2.5:install (default-cli) @ java-diff-utils --- [INFO] Cleaning pom file: /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils/pom.xml.save with options: [INFO] --keep-pom-version --package=libdiffutils-java --has-package-version [INFO] --rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.rules [INFO] --ignore-rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.ignoreRules [INFO] --published-rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.publishedRules [INFO] Install jar for java-diff-utils into /usr/share/java [INFO] [INFO] -----------< io.github.java-diff-utils:java-diff-utils-jgit >----------- [INFO] Building java-diff-utils-jgit 4.9 [3/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- debian-maven-plugin:2.5:install (default-cli) @ java-diff-utils-jgit --- [INFO] Cleaning pom file: /build/java-diff-utils-hE4k8d/java-diff-utils-4.9/java-diff-utils-jgit/pom.xml.save with options: [INFO] --keep-pom-version --package=libdiffutils-java --has-package-version [INFO] --rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.rules [INFO] --ignore-rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.ignoreRules [INFO] --published-rules=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9/debian/maven.publishedRules [INFO] Install jar for java-diff-utils-jgit into /usr/share/java [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for java-diff-utils-parent 4.9: [INFO] [INFO] java-diff-utils-parent ............................. SUCCESS [ 3.169 s] [INFO] java-diff-utils .................................... SUCCESS [ 0.226 s] [INFO] java-diff-utils-jgit ............................... SUCCESS [ 0.107 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.210 s [INFO] Finished at: 2021-10-09T02:31:35Z [INFO] ------------------------------------------------------------------------ mh_resolve_dependencies --non-interactive --offline --build -plibdiffutils-java --base-directory=/build/java-diff-utils-hE4k8d/java-diff-utils-4.9 --non-explore Analysing pom.xml... Analysing java-diff-utils/pom.xml... Checking the parent dependency in the sub project java-diff-utils/pom.xml Analysing java-diff-utils-jgit/pom.xml... Checking the parent dependency in the sub project java-diff-utils-jgit/pom.xml mh_unpatchpoms -plibdiffutils-java dh_installdocs -i dh_installchangelogs -i dh_perl -i dh_link -i dh_strip_nondeterminism -i dh_compress -i dh_fixperms -i dh_missing -i dh_installdeb -i dh_gencontrol -i dpkg-gencontrol: warning: package libdiffutils-java: substitution variable ${maven:CompileDepends} unused, but is defined dh_md5sums -i dh_builddeb -i dpkg-deb: building package 'libdiffutils-java' in '../libdiffutils-java_4.9-1_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../java-diff-utils_4.9-1_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/java-diff-utils-hE4k8d /tmp/java-diff-utils-4.9-174_mp5ss I: cleaning package lists and apt cache... W: deleting files in /tmp: hsperfdata_builduser W: deleting files in /tmp: hsperfdata_root I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.OyKsN1eS17... I: success in 918.9558 seconds md5: libdiffutils-java_4.9-1_all.deb: OK sha1: libdiffutils-java_4.9-1_all.deb: OK sha256: libdiffutils-java_4.9-1_all.deb: OK Checksums: OK