Diff of the two buildlogs: -- --- b1/build.log 2025-01-26 06:29:02.731782580 +0000 +++ b2/build.log 2025-01-26 06:33:41.163246020 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jan 25 18:16:12 -12 2025 -I: pbuilder-time-stamp: 1737872172 +I: Current time: Sun Mar 1 02:52:05 +14 2026 +I: pbuilder-time-stamp: 1772283125 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: applying link-libatomic.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1984613/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/428131/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +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 Feb 28 12:52 /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/428131/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/428131/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='2288189eb56448c8a83fe53ffc77143f' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1984613' - PS1='# ' - PS2='> ' + INVOCATION_ID=509aa35128d747d4bf565046b1bc8782 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=428131 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.gVckKlPZ/pbuilderrc_Ei2A --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.gVckKlPZ/b1 --logfile b1/build.log ruby-re2_2.7.0-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.gVckKlPZ/pbuilderrc_rZZc --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.gVckKlPZ/b2 --logfile b2/build.log ruby-re2_2.7.0-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-30-cloud-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-cloud-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1984613/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/428131/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -291,7 +323,7 @@ Get: 169 http://deb.debian.org/debian trixie/main arm64 ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [90.2 kB] Get: 170 http://deb.debian.org/debian trixie/main arm64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 171 http://deb.debian.org/debian trixie/main arm64 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] -Fetched 71.4 MB in 1s (142 MB/s) +Fetched 71.4 MB in 0s (199 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-minimal:arm64. (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 ... 19970 files and directories currently installed.) @@ -859,8 +891,8 @@ Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun Jan 26 06:17:21 UTC 2025. -Universal Time is now: Sun Jan 26 06:17:21 UTC 2025. +Local time is now: Sat Feb 28 12:52:29 UTC 2026. +Universal Time is now: Sat Feb 28 12:52:29 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -1012,7 +1044,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-re2-2.7.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 > ../ruby-re2_2.7.0-2_source.changes +I: user script /srv/workspace/pbuilder/428131/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/428131/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-re2-2.7.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 > ../ruby-re2_2.7.0-2_source.changes dpkg-buildpackage: info: source package ruby-re2 dpkg-buildpackage: info: source version 2.7.0-2 dpkg-buildpackage: info: source distribution unstable @@ -1089,27 +1125,27 @@ checking for RE2::Set::Match() with error information... yes creating Makefile current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-1998544-yn0aom", "sitelibdir=./.gem.20250125-1998544-yn0aom", "clean"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-433450-7cy9kd", "sitelibdir=./.gem.20260301-433450-7cy9kd", "clean"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' rm -f rm -fr re2.so false *.o *.bak mkmf.log .*.time make[1]: Leaving directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-1998544-yn0aom", "sitelibdir=./.gem.20250125-1998544-yn0aom"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-433450-7cy9kd", "sitelibdir=./.gem.20260301-433450-7cy9kd"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=. -I. -I/usr/include/aarch64-linux-gnu/ruby-3.1.0 -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -DHAVE_STDINT_H -DHAVE_RB_GC_MARK_MOVABLE -DHAVE_ENDPOS_ARGUMENT -DHAVE_ERROR_INFO_ARGUMENT -I/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/include -I/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/libre2/2023-11-01/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-register -fPIC -g -O2 -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -o re2.o -c re2.cc rm -f re2.so g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=. -shared -o re2.so re2.o -L. -L/usr/lib/aarch64-linux-gnu -L/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib -L/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/libre2/2023-11-01/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -pthread /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/libre2/2023-11-01/lib/libre2.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_marshalling.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_reflection.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_private_handle_accessor.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_commandlineflag.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_commandlineflag_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_config.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_program_name.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cord.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cordz_info.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cord_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cordz_functions.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cordz_handle.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc_cord_state.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc32c.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc_cpu_detect.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_raw_hash_set.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_hash.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_city.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_bad_variant_access.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_low_level_hash.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_hashtablez_sampler.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_exponential_biased.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_bad_optional_access.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_str_format_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_synchronization.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_graphcycles_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_kernel_timeout_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_stacktrace.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_symbolize.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_debugging_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_demangle_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_malloc_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_time.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_civil_time.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_strings.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_string_view.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_strings_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_base.a -lrt /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_spinlock_wait.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_int128.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_throw_delegate.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_raw_logging_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_log_severity.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_time_zone.a -Wl,-z,relro -Wl,-z,now -lruby-3.1 -lstdc++ -lm -lc make[1]: Leaving directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-1998544-yn0aom", "sitelibdir=./.gem.20250125-1998544-yn0aom", "install"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-433450-7cy9kd", "sitelibdir=./.gem.20260301-433450-7cy9kd", "install"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' -/bin/mkdir -p . ./.gem.20250125-1998544-yn0aom +/bin/mkdir -p . ./.gem.20260301-433450-7cy9kd exit > .sitearchdir.time -/usr/bin/install -c -m 0755 re2.so ./.gem.20250125-1998544-yn0aom +/usr/bin/install -c -m 0755 re2.so ./.gem.20260301-433450-7cy9kd make[1]: Leaving directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-1998544-yn0aom", "sitelibdir=./.gem.20250125-1998544-yn0aom", "clean"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-433450-7cy9kd", "sitelibdir=./.gem.20260301-433450-7cy9kd", "clean"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' rm -f rm -fr re2.so false *.o *.bak mkmf.log .*.time @@ -1117,13 +1153,13 @@ current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 /usr/bin/ruby3.1 -I/usr/lib/ruby/vendor_ruby extconf.rb current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-1998544-yn0aom sitelibdir\=./.gem.20250125-1998544-yn0aom clean +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-433450-7cy9kd sitelibdir\=./.gem.20260301-433450-7cy9kd clean current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-1998544-yn0aom sitelibdir\=./.gem.20250125-1998544-yn0aom +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-433450-7cy9kd sitelibdir\=./.gem.20260301-433450-7cy9kd current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-1998544-yn0aom sitelibdir\=./.gem.20250125-1998544-yn0aom install +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-433450-7cy9kd sitelibdir\=./.gem.20260301-433450-7cy9kd install current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-1998544-yn0aom sitelibdir\=./.gem.20250125-1998544-yn0aom clean +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-433450-7cy9kd sitelibdir\=./.gem.20260301-433450-7cy9kd clean rm -f /build/reproducible-path/ruby-re2-2.7.0/debian/ruby-re2/usr/lib/aarch64-linux-gnu/ruby/vendor_ruby/3.1.0/mkmf.log ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1157,27 +1193,27 @@ checking for RE2::Set::Match() with error information... yes creating Makefile current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-2035146-kbmpoy", "sitelibdir=./.gem.20250125-2035146-kbmpoy", "clean"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-441075-740mcs", "sitelibdir=./.gem.20260301-441075-740mcs", "clean"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' rm -f rm -fr re2.so false re2.o *.bak mkmf.log .*.time make[1]: Leaving directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-2035146-kbmpoy", "sitelibdir=./.gem.20250125-2035146-kbmpoy"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-441075-740mcs", "sitelibdir=./.gem.20260301-441075-740mcs"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=. -I. -I/usr/include/aarch64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -DHAVE_STDINT_H -DHAVE_RB_GC_MARK_MOVABLE -DHAVE_ENDPOS_ARGUMENT -DHAVE_ERROR_INFO_ARGUMENT -I/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/include -I/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/libre2/2023-11-01/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-register -fPIC -g -O2 -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -o re2.o -c re2.cc rm -f re2.so g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=. -shared -o re2.so re2.o -L. -L/usr/lib/aarch64-linux-gnu -L/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib -L/build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/libre2/2023-11-01/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -pthread /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/libre2/2023-11-01/lib/libre2.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_marshalling.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_reflection.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_private_handle_accessor.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_commandlineflag.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_commandlineflag_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_config.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_flags_program_name.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cord.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cordz_info.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cord_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cordz_functions.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_cordz_handle.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc_cord_state.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc32c.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_crc_cpu_detect.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_raw_hash_set.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_hash.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_city.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_bad_variant_access.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_low_level_hash.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_hashtablez_sampler.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_exponential_biased.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_bad_optional_access.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_str_format_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_synchronization.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_graphcycles_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_kernel_timeout_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_stacktrace.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_symbolize.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_debugging_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_demangle_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_malloc_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_time.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_civil_time.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_strings.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_string_view.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_strings_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_base.a -lrt /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_spinlock_wait.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_int128.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_throw_delegate.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_raw_logging_internal.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_log_severity.a /build/reproducible-path/ruby-re2-2.7.0/ports/aarch64-linux-gnu/abseil/20230802.1/lib/libabsl_time_zone.a -Wl,-z,relro -Wl,-z,now -lruby-3.3 -lstdc++ -lm -lpthread -lc make[1]: Leaving directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-2035146-kbmpoy", "sitelibdir=./.gem.20250125-2035146-kbmpoy", "install"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-441075-740mcs", "sitelibdir=./.gem.20260301-441075-740mcs", "install"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' -/bin/mkdir -p . ./.gem.20250125-2035146-kbmpoy +/bin/mkdir -p . ./.gem.20260301-441075-740mcs exit > .sitearchdir.time -/usr/bin/install -c -m 0755 re2.so ./.gem.20250125-2035146-kbmpoy +/usr/bin/install -c -m 0755 re2.so ./.gem.20260301-441075-740mcs make[1]: Leaving directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20250125-2035146-kbmpoy", "sitelibdir=./.gem.20250125-2035146-kbmpoy", "clean"] +["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-re2-2.7.0=.", "DESTDIR=", "sitearchdir=./.gem.20260301-441075-740mcs", "sitelibdir=./.gem.20260301-441075-740mcs", "clean"] make[1]: Entering directory '/build/reproducible-path/ruby-re2-2.7.0/ext/re2' rm -f rm -fr re2.so false re2.o *.bak mkmf.log .*.time @@ -1185,13 +1221,13 @@ current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 /usr/bin/ruby3.3 -I/usr/lib/ruby/vendor_ruby extconf.rb current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-2035146-kbmpoy sitelibdir\=./.gem.20250125-2035146-kbmpoy clean +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-441075-740mcs sitelibdir\=./.gem.20260301-441075-740mcs clean current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-2035146-kbmpoy sitelibdir\=./.gem.20250125-2035146-kbmpoy +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-441075-740mcs sitelibdir\=./.gem.20260301-441075-740mcs current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-2035146-kbmpoy sitelibdir\=./.gem.20250125-2035146-kbmpoy install +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-441075-740mcs sitelibdir\=./.gem.20260301-441075-740mcs install current directory: /build/reproducible-path/ruby-re2-2.7.0/ext/re2 -make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20250125-2035146-kbmpoy sitelibdir\=./.gem.20250125-2035146-kbmpoy clean +make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-re2-2.7.0\=. DESTDIR\= sitearchdir\=./.gem.20260301-441075-740mcs sitelibdir\=./.gem.20260301-441075-740mcs clean rm -f /build/reproducible-path/ruby-re2-2.7.0/debian/ruby-re2/usr/lib/aarch64-linux-gnu/ruby/vendor_ruby/3.3.0/mkmf.log ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1218,408 +1254,408 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 36380 +Randomized with seed 40193 -Kernel - .RE2 - returns an RE2::Regexp instance given a pattern and options - returns an RE2::Regexp instance given a pattern - allows invalid patterns to be created +RE2::Set + #match + supports matching null bytes + returns an empty array if there is no match + raises an error if called before #compile when :exception is true + returns an empty array if called before #compile when :exception is false + matches against multiple patterns + returns an empty array if there is no match when :exception is true + raises an error if called before #compile by default + raises an error if given non-hash options + raises a Type Error if given input that can't be coerced to a String + accepts input if it can be coerced to a String + raises an error if :exception is true and RE2 does not support it (PENDING: Underlying RE2::Set::Match outputs error information) + #add + raises an error if called after #compile + rejects invalid patterns when added + accepts a pattern that can be coerced to a String + truncates error messages to 100 characters + allows multiple patterns to be added + raises an error if given a pattern that can't be coerced to a String + #initialize + returns an instance given no args + raises an error if given an invalid anchor and options + returns an instance given only an anchor of :anchor_start + raises an error if given an invalid anchor + returns an instance given an anchor and options raises an error if given an inappropriate type - accepts patterns containing null bytes - supports passing something that can be coerced to a String as input + returns an instance given only an anchor of :anchor_both + returns an instance given only an anchor of :unanchored + #compile + compiles the set without error RE2 - .GlobalReplace - does not perform replacement in-place - supports flags in patterns + #QuoteMeta + raises a Type Error for input that can't be converted to String + supports strings containing null bytes + escapes a string so it can be used as a regular expression supports passing something that can be coerced to a String as input + .GlobalReplace returns UTF-8 strings when given a String pattern - raises a Type Error for input that can't be converted to String - supports passing something that can be coerced to a String as a replacement - performs replacement based on regular expressions - supports patterns with null bytes - respects any passed RE2::Regexp's flags - raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String - supports replacements with null bytes + supports passing something that can be coerced to a String as input returns ISO-8859-1 strings if the pattern is not UTF-8 - replaces every occurrence of a pattern supports passing an RE2::Regexp as the pattern - raises a Type Error for a replacement that can't be converted to String - returns UTF-8 strings if the pattern is UTF-8 - supports passing something that can be coerced to a String as a pattern - supports inputs with null bytes - .Replace - raises a Type Error for a replacement that can't be converted to String - raises a Type Error for input that can't be converted to String - supports flags in patterns + supports patterns with null bytes respects any passed RE2::Regexp's flags supports inputs with null bytes - only replaces the first occurrence of the pattern + does not perform replacement in-place + returns UTF-8 strings if the pattern is UTF-8 + raises a Type Error for a replacement that can't be converted to String + replaces every occurrence of a pattern + supports passing something that can be coerced to a String as a pattern + raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String performs replacement based on regular expressions supports passing something that can be coerced to a String as a replacement - does not perform replacements in-place + raises a Type Error for input that can't be converted to String + supports flags in patterns + supports replacements with null bytes + .Replace supports patterns with null bytes - raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String - supports passing something that can be coerced to a String as input returns UTF-8 strings if the pattern is UTF-8 - supports replacements with null bytes - returns ISO-8859-1 strings if the pattern is not UTF-8 - returns UTF-8 strings when given a String pattern + only replaces the first occurrence of the pattern supports passing something that can be coerced to a String as a pattern - supports passing an RE2::Regexp as the pattern - #QuoteMeta supports passing something that can be coerced to a String as input - supports strings containing null bytes - escapes a string so it can be used as a regular expression raises a Type Error for input that can't be converted to String - -RE2::MatchData - reports a larger consuming memory size when it has more matches - #string - does not copy the string if it was already frozen - returns a copy, not the actual original - returns the original string to match against - returns a frozen string - #to_s - returns the matching part of the original string - #to_ary - allows the object to be expanded with an asterisk - #deconstruct_keys - returns only named captures if given names - raises an error if given a non-array of keys - returns named captures up until an invalid name is given - returns an empty hash if given more capture names than exist - returns all named captures if given nil - raises an error if given keys as non-symbols - returns an empty hash if there are no named capturing groups - #inspect - represents missing matches as nil - supports matches with null bytes - returns a text representation of the object and indices - #size - returns the number of capturing groups plus the matching string - #begin - returns the offset of the start of a match by symbol name - returns nil for negative numerical matches - returns the offset of the start of a match by something that can be coerced to a String - returns the offset of the start of a match by string name - returns the offset of the start of a match by index - returns nil for non-existent named matches - raises a type error if given an invalid name or number - returns the offset despite multibyte characters - returns nil for non-existent symbol named matches - returns nil for non-existent numerical matches - #length - returns the number of capturing groups plus the matching string - #regexp - returns the original RE2::Regexp used - #deconstruct - includes optional capturing groups as nil - returns all capturing groups - #end - raises a type error if given an invalid name or number - returns nil for negative numerical matches - returns the offset despite multibyte characters - returns nil for non-existent named matches - returns the offset of the character following the end of a match - returns nil for non-existent numerical matches - returns the offset of a match by something that can be coerced to a String - returns the offset of a match by symbol name - returns nil for non-existent symbol named matches - returns the offset of a match by string name - #to_a - populates optional capturing groups with nil if they are missing - is populated with the match and capturing groups - returns UTF-8 strings if the pattern is UTF-8 returns ISO-8859-1 strings if the pattern is not UTF-8 - #[] - raises an error if given an inappropriate index - returns UTF-8 encoded strings by default - has the whole match as the 0th item - allows access by names and indices with mixed groups - returns nil if no such named group exists - allows access by symbol names when there are named groups - supports access by numerical ranges - returns a UTF-8 string by numerical index if the pattern is UTF-8 - returns nil if attempting to access non-existent capturing groups by index - accesses capturing groups by numerical index - returns a ISO-8859-1 string by numerical index if the pattern is not UTF-8 - supports slicing - allows access by string names when there are named groups - returns Latin 1 strings encoding when utf-8 is false - -RE2::String - #re2_match - supports limiting the number of matches - delegates to RE2::Regexp#match to perform matches - #re2_quote - escapes the string for use in regular expressions - #re2_gsub - delegates to RE2.GlobalReplace to perform replacement - doesn't perform an in-place replacement - #re2_sub - doesn't perform an in-place replacement - delegates to RE2.Replace to perform replacement - #re2_escape - escapes the string for use in regular expressions + raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String + supports passing an RE2::Regexp as the pattern + supports passing something that can be coerced to a String as a replacement + supports replacements with null bytes + respects any passed RE2::Regexp's flags + does not perform replacements in-place + performs replacement based on regular expressions + supports inputs with null bytes + returns UTF-8 strings when given a String pattern + supports flags in patterns + raises a Type Error for a replacement that can't be converted to String RE2::Regexp - #pattern + #program_size + returns -1 for an invalid pattern + returns a numeric value + #scan + returns a scanner + raises a type error if given invalid input + #literal? + returns false by default + can be overridden on initialization + #to_str returns the pattern even if invalid returns the original pattern - #one_line? - can be overridden on initialization - returns false by default - #full_match - returns true or false if there are no capturing groups - accepts anything that can be coerced to a string - can set the number of submatches to extract - raises an error if given non-hash options - only matches the pattern if all of the given text matches - accepts options that can be coerced to a hash - does not allow the anchor to be overridden - #ok? - returns false for invalid patterns - returns true for valid patterns #log_errors? returns true by default can be overridden on initialization - .escape - transforms a string into a regexp - #scan - raises a type error if given invalid input - returns a scanner + .compile + returns an instance given a pattern and options + allows invalid patterns to be created + accepts patterns containing null bytes + supports passing something that can be coerced to a String as input + raises an error if given an inappropriate type + returns an instance given only a pattern + #named_capturing_groups + returns a hash of names to indices + maps names to indices with only one group + maps names to indices with several groups + returns an empty hash for an invalid regexp + #error + returns nil if there is no error + contains the error string if there is an error + #casefold? + returns true by default + can be overridden on initialization + #error_arg + returns nil if there is no error + returns the offending portion of the pattern if there is an error #=~ - returns false if the pattern is invalid - supports matching against text containing null bytes - returns only true or false even if there are capturing groups - raises an exception if text cannot be coerced to a string - #full_match? - supports matching against text containing null bytes raises an exception if text cannot be coerced to a string returns false if the pattern is invalid + supports matching against text containing null bytes returns only true or false even if there are capturing groups - #literal? + #ok? + returns true for valid patterns + returns false for invalid patterns + #one_line? can be overridden on initialization returns false by default + #never_nl? + returns false by default + can be overridden on initialization #partial_match? supports matching against text containing null bytes + returns only true or false even if there are capturing groups + raises an exception if text cannot be coerced to a string returns false if the pattern is invalid + #pattern + returns the pattern even if invalid + returns the original pattern + #utf8? + can be overridden on initialization + returns true by default + #full_match + raises an error if given non-hash options + does not allow the anchor to be overridden + accepts options that can be coerced to a hash + accepts anything that can be coerced to a string + only matches the pattern if all of the given text matches + returns true or false if there are no capturing groups + can set the number of submatches to extract + .quote + transforms a string into a regexp + #partial_match + can set the number of submatches to extract + returns true or false if there are no capturing groups + raises an error if given non-hash options + does not allow the anchor to be overridden + accepts anything that can be coerced to a string + matches the pattern anywhere within the given text + accepts options that can be coerced to a hash + #posix_syntax? + can be overridden on initialization + returns false by default + #options + is populated with overridden options when specified + is populated with default options when nothing has been set + returns a hash of options + #max_mem + returns the default max memory + can be overridden on initialization + #match? raises an exception if text cannot be coerced to a string + returns false if the pattern is invalid returns only true or false even if there are capturing groups - #=== + .escape + transforms a string into a regexp + #number_of_capturing_groups + returns the number of groups in a pattern + returns -1 for an invalid pattern + #full_match? raises an exception if text cannot be coerced to a string returns false if the pattern is invalid + supports matching against text containing null bytes returns only true or false even if there are capturing groups - #never_nl? + #inspect + respects the pattern's original encoding + shows the class name and original pattern + #longest_match? can be overridden on initialization returns false by default - .compile + #perl_classes? + can be overridden on initialization + returns false by default + #initialize raises an error if given an inappropriate type returns an instance given only a pattern - supports passing something that can be coerced to a String as input + accepts patterns containing null bytes returns an instance given a pattern and options allows invalid patterns to be created - accepts patterns containing null bytes - #max_mem - can be overridden on initialization - returns the default max memory - #partial_match - can set the number of submatches to extract - matches the pattern anywhere within the given text - returns true or false if there are no capturing groups - accepts anything that can be coerced to a string - accepts options that can be coerced to a hash - does not allow the anchor to be overridden - raises an error if given non-hash options - #word_boundary? + supports passing something that can be coerced to a String as input + #case_insensitive? can be overridden on initialization returns false by default + #=== + returns only true or false even if there are capturing groups + returns false if the pattern is invalid + raises an exception if text cannot be coerced to a string + #case_sensitive? + can be overridden on initialization + returns true by default #match - raises an exception when given a negative starting offset - returns match data given only text if the pattern has capturing groups - raises an exception when given an invalid anchor - does not anchor matches by default without extracting submatches - raises an error if given an ending offset and RE2 does not support it (PENDING: Underlying RE2::Match has endpos argument) - can anchor matches at the start when extracting submatches - raises an exception when given a non-numeric number of submatches - raises an exception when given an ending offset before the starting offset - accepts an offset at which to end matching - accepts text that can be coerced to a string - accepts an offset at which to start matching - returns only true or false given only text if the pattern has no capturing groups - raises an exception when given a negative ending offset + returns nil if using a starting offset past the end of the text extracts all submatches by default - raises an exception when given a starting offset past the default ending offset - does not anchor matches by default when extracting submatches - accepts passing the number of submatches instead of options for backward compatibility - supports matching against text containing null bytes + raises an exception when given a negative starting offset pads submatches with nil when requesting more than the number of capturing groups - does not anchor matches when given a nil anchor - returns nil with an invalid pattern and options - extracts a specific number of submatches - raises an exception when given a non-symbol anchor raises an exception when given text that cannot be coerced to a string - returns nil with an invalid pattern - raises an exception when given invalid options - accepts anything that can be coerced to a hash as options can anchor matches at both ends when extracting submatches returns nil if using a ending offset at the start of the text + raises an exception when given an invalid anchor defaults to extracting all submatches when given nil - can explicitly match with neither anchoring nor extracting submatches can explicitly match without anchoring when extracting submatches + accepts anything that can be coerced to a hash as options + returns nil with an invalid pattern + raises an exception when given invalid options returns nil if the text does not match the pattern - supports extracting submatches containing null bytes + raises an exception when given a non-symbol anchor + accepts an offset at which to end matching + accepts passing the number of submatches instead of options for backward compatibility + accepts an offset at which to start matching + supports matching against text containing null bytes + raises an exception when given a starting offset past the default ending offset raises an exception when given a negative number of submatches + does not anchor matches by default when extracting submatches can anchor matches at the start without extracting submatches - returns nil if using a starting offset past the end of the text - #initialize - returns an instance given a pattern and options - returns an instance given only a pattern - supports passing something that can be coerced to a String as input - accepts patterns containing null bytes - allows invalid patterns to be created - raises an error if given an inappropriate type - #error - contains the error string if there is an error - returns nil if there is no error - #casefold? - can be overridden on initialization - returns true by default - #named_capturing_groups - maps names to indices with several groups - returns an empty hash for an invalid regexp - maps names to indices with only one group - returns a hash of names to indices - #case_sensitive? - can be overridden on initialization - returns true by default - #perl_classes? - can be overridden on initialization - returns false by default - #number_of_capturing_groups - returns -1 for an invalid pattern - returns the number of groups in a pattern - #match? - raises an exception if text cannot be coerced to a string - returns only true or false even if there are capturing groups - returns false if the pattern is invalid - #to_str - returns the original pattern - returns the pattern even if invalid - #program_size - returns a numeric value - returns -1 for an invalid pattern - #longest_match? - returns false by default - can be overridden on initialization - #options - is populated with overridden options when specified - is populated with default options when nothing has been set - returns a hash of options - #utf8? - can be overridden on initialization - returns true by default - #inspect - shows the class name and original pattern - respects the pattern's original encoding - #case_insensitive? - returns false by default - can be overridden on initialization - #error_arg - returns the offending portion of the pattern if there is an error - returns nil if there is no error - #posix_syntax? + supports extracting submatches containing null bytes + returns nil with an invalid pattern and options + can explicitly match with neither anchoring nor extracting submatches + returns only true or false given only text if the pattern has no capturing groups + raises an exception when given a non-numeric number of submatches + extracts a specific number of submatches + does not anchor matches when given a nil anchor + can anchor matches at the start when extracting submatches + does not anchor matches by default without extracting submatches + raises an error if given an ending offset and RE2 does not support it (PENDING: Underlying RE2::Match has endpos argument) + accepts text that can be coerced to a string + raises an exception when given an ending offset before the starting offset + returns match data given only text if the pattern has capturing groups + raises an exception when given a negative ending offset + #word_boundary? can be overridden on initialization returns false by default - .quote - transforms a string into a regexp - -RE2::Set - #initialize - raises an error if given an inappropriate type - raises an error if given an invalid anchor - returns an instance given only an anchor of :anchor_start - returns an instance given only an anchor of :anchor_both - returns an instance given an anchor and options - returns an instance given no args - returns an instance given only an anchor of :unanchored - raises an error if given an invalid anchor and options - #match - returns an empty array if called before #compile when :exception is false - raises an error if given non-hash options - raises an error if :exception is true and RE2 does not support it (PENDING: Underlying RE2::Set::Match outputs error information) - raises an error if called before #compile by default - matches against multiple patterns - returns an empty array if there is no match when :exception is true - raises a Type Error if given input that can't be coerced to a String - accepts input if it can be coerced to a String - returns an empty array if there is no match - supports matching null bytes - raises an error if called before #compile when :exception is true - #compile - compiles the set without error - #add - accepts a pattern that can be coerced to a String - truncates error messages to 100 characters - raises an error if called after #compile - rejects invalid patterns when added - allows multiple patterns to be added - raises an error if given a pattern that can't be coerced to a String RE2::Scanner is enumerable - #each - returns an enumerator when not given a block - yields each match - #rewind - resets any consumption - resets the eof? check - supports inputs with null bytes + #string + returns the original text for the scanner #scan - returns an empty array if the input is empty - supports scanning inputs with null bytes - returns nil if the regexp is invalid - returns UTF-8 matches if the pattern is UTF-8 - returns nil if there is no match - raises a Type Error if given input that can't be coerced to a String - returns an empty array for every match if the pattern is empty - returns multiple capturing groups at a time - returns an empty array if there are no capturing groups accepts input that can be coerced to a String - supports empty groups with multibyte characters returns the next array of matches + supports empty groups with multibyte characters returns an array of nil if the pattern is an empty capturing group - returns ISO-8859-1 matches if the pattern is not UTF-8 - returns an array of nil with an empty input and capture + returns an empty array if there are no capturing groups returns array of nils with multiple empty capturing groups - #regexp - returns the original pattern for the scanner + returns nil if there is no match + returns UTF-8 matches if the pattern is UTF-8 + returns nil if the regexp is invalid + returns an empty array for every match if the pattern is empty + returns an array of nil with an empty input and capture + returns multiple capturing groups at a time + returns ISO-8859-1 matches if the pattern is not UTF-8 + returns an empty array if the input is empty + raises a Type Error if given input that can't be coerced to a String + supports scanning inputs with null bytes + #each + yields each match + returns an enumerator when not given a block #eof? - returns false if no match is made - returns false if the input has not been consumed - returns false with an empty input that has not been scanned returns true with an empty input that has been matched + returns false with an empty input that has not been scanned + returns false if the input has not been consumed + returns false if no match is made returns true if the input has been consumed returns false with an empty input that has not been matched + #rewind + supports inputs with null bytes + resets the eof? check + resets any consumption + #regexp + returns the original pattern for the scanner + +Kernel + .RE2 + supports passing something that can be coerced to a String as input + returns an RE2::Regexp instance given a pattern + returns an RE2::Regexp instance given a pattern and options + accepts patterns containing null bytes + raises an error if given an inappropriate type + allows invalid patterns to be created + +RE2::String + #re2_quote + escapes the string for use in regular expressions + #re2_match + delegates to RE2::Regexp#match to perform matches + supports limiting the number of matches + #re2_sub + delegates to RE2.Replace to perform replacement + doesn't perform an in-place replacement + #re2_gsub + delegates to RE2.GlobalReplace to perform replacement + doesn't perform an in-place replacement + #re2_escape + escapes the string for use in regular expressions + +RE2::MatchData + reports a larger consuming memory size when it has more matches + #end + returns nil for non-existent numerical matches + returns the offset of a match by symbol name + returns the offset of the character following the end of a match + raises a type error if given an invalid name or number + returns the offset of a match by something that can be coerced to a String + returns nil for non-existent symbol named matches + returns nil for negative numerical matches + returns nil for non-existent named matches + returns the offset despite multibyte characters + returns the offset of a match by string name + #deconstruct + returns all capturing groups + includes optional capturing groups as nil + #length + returns the number of capturing groups plus the matching string + #to_ary + allows the object to be expanded with an asterisk + #begin + returns the offset of the start of a match by symbol name + returns nil for non-existent numerical matches + returns the offset of the start of a match by string name + raises a type error if given an invalid name or number + returns the offset of the start of a match by index + returns nil for negative numerical matches + returns nil for non-existent symbol named matches + returns nil for non-existent named matches + returns the offset despite multibyte characters + returns the offset of the start of a match by something that can be coerced to a String + #regexp + returns the original RE2::Regexp used + #deconstruct_keys + returns an empty hash if there are no named capturing groups + raises an error if given a non-array of keys + returns only named captures if given names + returns named captures up until an invalid name is given + returns all named captures if given nil + raises an error if given keys as non-symbols + returns an empty hash if given more capture names than exist + #[] + supports slicing + returns UTF-8 encoded strings by default + allows access by string names when there are named groups + returns a ISO-8859-1 string by numerical index if the pattern is not UTF-8 + has the whole match as the 0th item + supports access by numerical ranges + returns Latin 1 strings encoding when utf-8 is false + returns a UTF-8 string by numerical index if the pattern is UTF-8 + accesses capturing groups by numerical index + allows access by symbol names when there are named groups + allows access by names and indices with mixed groups + returns nil if attempting to access non-existent capturing groups by index + raises an error if given an inappropriate index + returns nil if no such named group exists #string - returns the original text for the scanner + does not copy the string if it was already frozen + returns a frozen string + returns a copy, not the actual original + returns the original string to match against + #size + returns the number of capturing groups plus the matching string + #to_s + returns the matching part of the original string + #to_a + is populated with the match and capturing groups + populates optional capturing groups with nil if they are missing + returns ISO-8859-1 strings if the pattern is not UTF-8 + returns UTF-8 strings if the pattern is UTF-8 + #inspect + returns a text representation of the object and indices + supports matches with null bytes + represents missing matches as nil Pending: (Failures listed here are expected and do not affect your suite's status) - 1) RE2::Regexp#match raises an error if given an ending offset and RE2 does not support it - # Underlying RE2::Match has endpos argument - # ./spec/re2/regexp_spec.rb:452 - - 2) RE2::Set#match raises an error if :exception is true and RE2 does not support it + 1) RE2::Set#match raises an error if :exception is true and RE2 does not support it # Underlying RE2::Set::Match outputs error information # ./spec/re2/set_spec.rb:172 -Finished in 0.27132 seconds (files took 0.5008 seconds to load) + 2) RE2::Regexp#match raises an error if given an ending offset and RE2 does not support it + # Underlying RE2::Match has endpos argument + # ./spec/re2/regexp_spec.rb:452 + +Finished in 0.09282 seconds (files took 0.16227 seconds to load) 304 examples, 0 failures, 2 pending -Randomized with seed 36380 +Randomized with seed 40193 /usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner @@ -1639,408 +1675,408 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 11518 +Randomized with seed 55979 -Kernel - .RE2 +RE2 + .GlobalReplace supports passing something that can be coerced to a String as input - returns an RE2::Regexp instance given a pattern and options - allows invalid patterns to be created - accepts patterns containing null bytes - returns an RE2::Regexp instance given a pattern - raises an error if given an inappropriate type - -RE2::Scanner - is enumerable - #each - yields each match - returns an enumerator when not given a block - #scan - supports scanning inputs with null bytes - returns array of nils with multiple empty capturing groups - raises a Type Error if given input that can't be coerced to a String - returns an array of nil if the pattern is an empty capturing group - returns an array of nil with an empty input and capture - returns an empty array for every match if the pattern is empty - returns nil if the regexp is invalid - returns ISO-8859-1 matches if the pattern is not UTF-8 - returns an empty array if the input is empty - supports empty groups with multibyte characters - returns UTF-8 matches if the pattern is UTF-8 - returns multiple capturing groups at a time - returns the next array of matches - returns nil if there is no match - accepts input that can be coerced to a String - returns an empty array if there are no capturing groups - #eof? - returns false with an empty input that has not been matched - returns true if the input has been consumed - returns false if no match is made - returns false with an empty input that has not been scanned - returns true with an empty input that has been matched - returns false if the input has not been consumed - #regexp - returns the original pattern for the scanner - #string - returns the original text for the scanner - #rewind - resets any consumption - resets the eof? check + returns ISO-8859-1 strings if the pattern is not UTF-8 + raises a Type Error for input that can't be converted to String + replaces every occurrence of a pattern + respects any passed RE2::Regexp's flags + raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String + supports patterns with null bytes supports inputs with null bytes - -RE2 + supports passing something that can be coerced to a String as a pattern + returns UTF-8 strings if the pattern is UTF-8 + returns UTF-8 strings when given a String pattern + supports replacements with null bytes + supports passing an RE2::Regexp as the pattern + raises a Type Error for a replacement that can't be converted to String + supports flags in patterns + supports passing something that can be coerced to a String as a replacement + performs replacement based on regular expressions + does not perform replacement in-place #QuoteMeta + escapes a string so it can be used as a regular expression supports strings containing null bytes raises a Type Error for input that can't be converted to String - escapes a string so it can be used as a regular expression supports passing something that can be coerced to a String as input .Replace - supports patterns with null bytes - raises a Type Error for a replacement that can't be converted to String - raises a Type Error for input that can't be converted to String - only replaces the first occurrence of the pattern - supports passing something that can be coerced to a String as a pattern - returns UTF-8 strings if the pattern is UTF-8 raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String - performs replacement based on regular expressions - supports flags in patterns - returns UTF-8 strings when given a String pattern - supports passing an RE2::Regexp as the pattern supports passing something that can be coerced to a String as input - returns ISO-8859-1 strings if the pattern is not UTF-8 - does not perform replacements in-place - supports passing something that can be coerced to a String as a replacement - supports replacements with null bytes - respects any passed RE2::Regexp's flags - supports inputs with null bytes - .GlobalReplace supports passing something that can be coerced to a String as a pattern - raises a Type Error for a replacement that can't be converted to String raises a Type Error for input that can't be converted to String + respects any passed RE2::Regexp's flags + supports inputs with null bytes supports flags in patterns + only replaces the first occurrence of the pattern + supports replacements with null bytes + returns ISO-8859-1 strings if the pattern is not UTF-8 supports passing something that can be coerced to a String as a replacement - supports inputs with null bytes supports passing an RE2::Regexp as the pattern - replaces every occurrence of a pattern - does not perform replacement in-place - raises a Type Error for a non-RE2::Regexp pattern that can't be converted to String - respects any passed RE2::Regexp's flags - supports passing something that can be coerced to a String as input + does not perform replacements in-place + returns UTF-8 strings if the pattern is UTF-8 + raises a Type Error for a replacement that can't be converted to String supports patterns with null bytes returns UTF-8 strings when given a String pattern - returns UTF-8 strings if the pattern is UTF-8 - supports replacements with null bytes - returns ISO-8859-1 strings if the pattern is not UTF-8 performs replacement based on regular expressions -RE2::Set - #compile - compiles the set without error - #match - raises a Type Error if given input that can't be coerced to a String - raises an error if :exception is true and RE2 does not support it (PENDING: Underlying RE2::Set::Match outputs error information) - raises an error if given non-hash options - raises an error if called before #compile by default - raises an error if called before #compile when :exception is true - supports matching null bytes - returns an empty array if there is no match when :exception is true - returns an empty array if there is no match - accepts input if it can be coerced to a String - returns an empty array if called before #compile when :exception is false - matches against multiple patterns - #initialize - returns an instance given only an anchor of :anchor_both - returns an instance given an anchor and options - raises an error if given an inappropriate type - returns an instance given no args - raises an error if given an invalid anchor and options - returns an instance given only an anchor of :anchor_start - returns an instance given only an anchor of :unanchored - raises an error if given an invalid anchor - #add - truncates error messages to 100 characters - allows multiple patterns to be added - rejects invalid patterns when added - raises an error if given a pattern that can't be coerced to a String - accepts a pattern that can be coerced to a String - raises an error if called after #compile - -RE2::String - #re2_match - supports limiting the number of matches - delegates to RE2::Regexp#match to perform matches - #re2_quote - escapes the string for use in regular expressions - #re2_sub - doesn't perform an in-place replacement - delegates to RE2.Replace to perform replacement - #re2_escape - escapes the string for use in regular expressions - #re2_gsub - delegates to RE2.GlobalReplace to perform replacement - doesn't perform an in-place replacement - -RE2::MatchData - reports a larger consuming memory size when it has more matches - #[] - returns nil if no such named group exists - raises an error if given an inappropriate index - returns Latin 1 strings encoding when utf-8 is false - supports slicing - allows access by symbol names when there are named groups - supports access by numerical ranges - allows access by names and indices with mixed groups - returns nil if attempting to access non-existent capturing groups by index - accesses capturing groups by numerical index - returns a ISO-8859-1 string by numerical index if the pattern is not UTF-8 - has the whole match as the 0th item - returns a UTF-8 string by numerical index if the pattern is UTF-8 - returns UTF-8 encoded strings by default - allows access by string names when there are named groups - #inspect - supports matches with null bytes - returns a text representation of the object and indices - represents missing matches as nil - #string - does not copy the string if it was already frozen - returns a copy, not the actual original - returns the original string to match against - returns a frozen string - #to_ary - allows the object to be expanded with an asterisk - #deconstruct - includes optional capturing groups as nil - returns all capturing groups - #regexp - returns the original RE2::Regexp used - #size - returns the number of capturing groups plus the matching string - #to_a - is populated with the match and capturing groups - populates optional capturing groups with nil if they are missing - returns UTF-8 strings if the pattern is UTF-8 - returns ISO-8859-1 strings if the pattern is not UTF-8 - #end - returns the offset of the character following the end of a match - returns the offset of a match by something that can be coerced to a String - returns the offset of a match by string name - returns the offset of a match by symbol name - returns nil for non-existent numerical matches - raises a type error if given an invalid name or number - returns the offset despite multibyte characters - returns nil for non-existent symbol named matches - returns nil for negative numerical matches - returns nil for non-existent named matches - #to_s - returns the matching part of the original string - #length - returns the number of capturing groups plus the matching string - #deconstruct_keys - raises an error if given a non-array of keys - returns all named captures if given nil - returns an empty hash if there are no named capturing groups - returns named captures up until an invalid name is given - returns only named captures if given names - raises an error if given keys as non-symbols - returns an empty hash if given more capture names than exist - #begin - returns nil for non-existent numerical matches - returns the offset of the start of a match by index - raises a type error if given an invalid name or number - returns nil for non-existent symbol named matches - returns the offset despite multibyte characters - returns nil for negative numerical matches - returns the offset of the start of a match by string name - returns the offset of the start of a match by symbol name - returns the offset of the start of a match by something that can be coerced to a String - returns nil for non-existent named matches - RE2::Regexp - #case_insensitive? - returns false by default + .escape + transforms a string into a regexp + #=== + returns false if the pattern is invalid + returns only true or false even if there are capturing groups + raises an exception if text cannot be coerced to a string + #max_mem can be overridden on initialization + returns the default max memory + #number_of_capturing_groups + returns the number of groups in a pattern + returns -1 for an invalid pattern + #ok? + returns true for valid patterns + returns false for invalid patterns #options - returns a hash of options - is populated with default options when nothing has been set is populated with overridden options when specified - #pattern - returns the original pattern - returns the pattern even if invalid - #utf8? - returns true by default - can be overridden on initialization - #to_str - returns the original pattern - returns the pattern even if invalid + is populated with default options when nothing has been set + returns a hash of options #case_sensitive? - returns true by default - can be overridden on initialization - #perl_classes? - returns false by default can be overridden on initialization - #partial_match - raises an error if given non-hash options - accepts options that can be coerced to a hash - can set the number of submatches to extract - accepts anything that can be coerced to a string - does not allow the anchor to be overridden - matches the pattern anywhere within the given text - returns true or false if there are no capturing groups + returns true by default #partial_match? + supports matching against text containing null bytes returns only true or false even if there are capturing groups - returns false if the pattern is invalid raises an exception if text cannot be coerced to a string - supports matching against text containing null bytes - #one_line? - can be overridden on initialization - returns false by default - #posix_syntax? + returns false if the pattern is invalid + #longest_match? returns false by default can be overridden on initialization + #log_errors? + can be overridden on initialization + returns true by default + #case_insensitive? + can be overridden on initialization + returns false by default + #full_match? + supports matching against text containing null bytes + returns false if the pattern is invalid + returns only true or false even if there are capturing groups + raises an exception if text cannot be coerced to a string + #initialize + allows invalid patterns to be created + accepts patterns containing null bytes + raises an error if given an inappropriate type + supports passing something that can be coerced to a String as input + returns an instance given only a pattern + returns an instance given a pattern and options + .compile + supports passing something that can be coerced to a String as input + accepts patterns containing null bytes + returns an instance given a pattern and options + raises an error if given an inappropriate type + returns an instance given only a pattern + allows invalid patterns to be created + #inspect + shows the class name and original pattern + respects the pattern's original encoding #match - raises an exception when given a non-symbol anchor - raises an exception when given a negative starting offset - accepts an offset at which to end matching - can anchor matches at the start without extracting submatches - returns nil with an invalid pattern and options - can explicitly match with neither anchoring nor extracting submatches + supports extracting submatches containing null bytes returns only true or false given only text if the pattern has no capturing groups + raises an exception when given a negative number of submatches + extracts all submatches by default + can anchor matches at both ends when extracting submatches + can explicitly match with neither anchoring nor extracting submatches + returns nil if using a starting offset past the end of the text + raises an exception when given a negative starting offset + can explicitly match without anchoring when extracting submatches extracts a specific number of submatches - accepts text that can be coerced to a string - does not anchor matches when given a nil anchor + does not anchor matches by default when extracting submatches + returns match data given only text if the pattern has capturing groups supports matching against text containing null bytes - returns nil if the text does not match the pattern does not anchor matches by default without extracting submatches - supports extracting submatches containing null bytes - raises an exception when given a starting offset past the default ending offset raises an exception when given text that cannot be coerced to a string - can anchor matches at both ends when extracting submatches - does not anchor matches by default when extracting submatches - raises an exception when given invalid options - returns nil with an invalid pattern - defaults to extracting all submatches when given nil - raises an exception when given a negative ending offset - raises an error if given an ending offset and RE2 does not support it (PENDING: Underlying RE2::Match has endpos argument) - returns nil if using a starting offset past the end of the text accepts an offset at which to start matching - can explicitly match without anchoring when extracting submatches - accepts anything that can be coerced to a hash as options - returns nil if using a ending offset at the start of the text + does not anchor matches when given a nil anchor + pads submatches with nil when requesting more than the number of capturing groups + can anchor matches at the start without extracting submatches raises an exception when given a non-numeric number of submatches - can anchor matches at the start when extracting submatches - raises an exception when given a negative number of submatches - extracts all submatches by default - accepts passing the number of submatches instead of options for backward compatibility raises an exception when given an ending offset before the starting offset - pads submatches with nil when requesting more than the number of capturing groups - returns match data given only text if the pattern has capturing groups + accepts an offset at which to end matching + raises an exception when given a negative ending offset + returns nil with an invalid pattern and options + defaults to extracting all submatches when given nil + returns nil if the text does not match the pattern + returns nil if using a ending offset at the start of the text + returns nil with an invalid pattern + accepts passing the number of submatches instead of options for backward compatibility + can anchor matches at the start when extracting submatches + accepts anything that can be coerced to a hash as options + raises an exception when given invalid options + raises an exception when given a starting offset past the default ending offset + raises an error if given an ending offset and RE2 does not support it (PENDING: Underlying RE2::Match has endpos argument) raises an exception when given an invalid anchor - #max_mem - can be overridden on initialization - returns the default max memory - #log_errors? - returns true by default - can be overridden on initialization - #literal? - can be overridden on initialization - returns false by default - #word_boundary? - returns false by default - can be overridden on initialization - #number_of_capturing_groups - returns the number of groups in a pattern + raises an exception when given a non-symbol anchor + accepts text that can be coerced to a string + #program_size + returns a numeric value returns -1 for an invalid pattern #match? - returns false if the pattern is invalid returns only true or false even if there are capturing groups raises an exception if text cannot be coerced to a string - #full_match? - raises an exception if text cannot be coerced to a string - supports matching against text containing null bytes - returns only true or false even if there are capturing groups returns false if the pattern is invalid - #never_nl? - returns false by default + #utf8? can be overridden on initialization - #program_size - returns -1 for an invalid pattern - returns a numeric value - #=~ - supports matching against text containing null bytes - returns only true or false even if there are capturing groups - returns false if the pattern is invalid - raises an exception if text cannot be coerced to a string - #full_match - accepts options that can be coerced to a hash - raises an error if given non-hash options - accepts anything that can be coerced to a string + returns true by default + #partial_match + matches the pattern anywhere within the given text can set the number of submatches to extract + raises an error if given non-hash options + accepts options that can be coerced to a hash returns true or false if there are no capturing groups - only matches the pattern if all of the given text matches + accepts anything that can be coerced to a string does not allow the anchor to be overridden - #inspect - shows the class name and original pattern - respects the pattern's original encoding - #error_arg + #one_line? + can be overridden on initialization + returns false by default + .quote + transforms a string into a regexp + #perl_classes? + returns false by default + can be overridden on initialization + #error + contains the error string if there is an error returns nil if there is no error - returns the offending portion of the pattern if there is an error + #pattern + returns the pattern even if invalid + returns the original pattern + #literal? + returns false by default + can be overridden on initialization #named_capturing_groups - returns an empty hash for an invalid regexp maps names to indices with only one group returns a hash of names to indices maps names to indices with several groups + returns an empty hash for an invalid regexp + #to_str + returns the original pattern + returns the pattern even if invalid #scan returns a scanner raises a type error if given invalid input + #word_boundary? + can be overridden on initialization + returns false by default + #never_nl? + returns false by default + can be overridden on initialization + #posix_syntax? + returns false by default + can be overridden on initialization #casefold? can be overridden on initialization returns true by default - .compile - returns an instance given only a pattern - accepts patterns containing null bytes - raises an error if given an inappropriate type - returns an instance given a pattern and options - allows invalid patterns to be created - supports passing something that can be coerced to a String as input - #=== - returns false if the pattern is invalid + #error_arg + returns nil if there is no error + returns the offending portion of the pattern if there is an error + #full_match + accepts options that can be coerced to a hash + only matches the pattern if all of the given text matches + raises an error if given non-hash options + does not allow the anchor to be overridden + returns true or false if there are no capturing groups + accepts anything that can be coerced to a string + can set the number of submatches to extract + #=~ returns only true or false even if there are capturing groups + returns false if the pattern is invalid + supports matching against text containing null bytes raises an exception if text cannot be coerced to a string - #longest_match? - returns false by default - can be overridden on initialization + +RE2::Scanner + is enumerable + #eof? + returns false if no match is made + returns true if the input has been consumed + returns false with an empty input that has not been scanned + returns false with an empty input that has not been matched + returns false if the input has not been consumed + returns true with an empty input that has been matched + #scan + accepts input that can be coerced to a String + returns an empty array if there are no capturing groups + returns ISO-8859-1 matches if the pattern is not UTF-8 + returns UTF-8 matches if the pattern is UTF-8 + returns an empty array if the input is empty + returns multiple capturing groups at a time + returns an array of nil if the pattern is an empty capturing group + returns nil if there is no match + supports empty groups with multibyte characters + returns nil if the regexp is invalid + returns the next array of matches + returns an empty array for every match if the pattern is empty + returns array of nils with multiple empty capturing groups + supports scanning inputs with null bytes + returns an array of nil with an empty input and capture + raises a Type Error if given input that can't be coerced to a String + #each + yields each match + returns an enumerator when not given a block + #regexp + returns the original pattern for the scanner + #string + returns the original text for the scanner + #rewind + supports inputs with null bytes + resets any consumption + resets the eof? check + +RE2::MatchData + reports a larger consuming memory size when it has more matches + #to_a + is populated with the match and capturing groups + returns UTF-8 strings if the pattern is UTF-8 + populates optional capturing groups with nil if they are missing + returns ISO-8859-1 strings if the pattern is not UTF-8 + #to_ary + allows the object to be expanded with an asterisk + #string + returns a copy, not the actual original + does not copy the string if it was already frozen + returns the original string to match against + returns a frozen string + #[] + accesses capturing groups by numerical index + supports slicing + returns nil if no such named group exists + supports access by numerical ranges + returns nil if attempting to access non-existent capturing groups by index + returns Latin 1 strings encoding when utf-8 is false + has the whole match as the 0th item + returns UTF-8 encoded strings by default + allows access by names and indices with mixed groups + raises an error if given an inappropriate index + allows access by string names when there are named groups + returns a ISO-8859-1 string by numerical index if the pattern is not UTF-8 + allows access by symbol names when there are named groups + returns a UTF-8 string by numerical index if the pattern is UTF-8 + #deconstruct_keys + raises an error if given a non-array of keys + raises an error if given keys as non-symbols + returns all named captures if given nil + returns an empty hash if there are no named capturing groups + returns named captures up until an invalid name is given + returns only named captures if given names + returns an empty hash if given more capture names than exist + #begin + returns nil for negative numerical matches + raises a type error if given an invalid name or number + returns nil for non-existent named matches + returns the offset of the start of a match by index + returns the offset of the start of a match by symbol name + returns the offset of the start of a match by string name + returns nil for non-existent numerical matches + returns the offset despite multibyte characters + returns the offset of the start of a match by something that can be coerced to a String + returns nil for non-existent symbol named matches + #regexp + returns the original RE2::Regexp used + #inspect + represents missing matches as nil + supports matches with null bytes + returns a text representation of the object and indices + #length + returns the number of capturing groups plus the matching string + #deconstruct + includes optional capturing groups as nil + returns all capturing groups + #size + returns the number of capturing groups plus the matching string + #end + returns nil for non-existent numerical matches + raises a type error if given an invalid name or number + returns the offset of the character following the end of a match + returns the offset of a match by symbol name + returns the offset of a match by string name + returns nil for negative numerical matches + returns nil for non-existent symbol named matches + returns nil for non-existent named matches + returns the offset despite multibyte characters + returns the offset of a match by something that can be coerced to a String + #to_s + returns the matching part of the original string + +RE2::Set + #add + allows multiple patterns to be added + raises an error if given a pattern that can't be coerced to a String + truncates error messages to 100 characters + rejects invalid patterns when added + raises an error if called after #compile + accepts a pattern that can be coerced to a String + #match + raises an error if :exception is true and RE2 does not support it (PENDING: Underlying RE2::Set::Match outputs error information) + raises an error if called before #compile by default + raises an error if given non-hash options + returns an empty array if there is no match + returns an empty array if there is no match when :exception is true + accepts input if it can be coerced to a String + supports matching null bytes + matches against multiple patterns + raises an error if called before #compile when :exception is true + raises a Type Error if given input that can't be coerced to a String + returns an empty array if called before #compile when :exception is false + #compile + compiles the set without error #initialize + returns an instance given no args raises an error if given an inappropriate type - returns an instance given only a pattern - supports passing something that can be coerced to a String as input + returns an instance given an anchor and options + returns an instance given only an anchor of :anchor_start + raises an error if given an invalid anchor + returns an instance given only an anchor of :anchor_both + returns an instance given only an anchor of :unanchored + raises an error if given an invalid anchor and options + +Kernel + .RE2 + raises an error if given an inappropriate type + returns an RE2::Regexp instance given a pattern allows invalid patterns to be created + returns an RE2::Regexp instance given a pattern and options + supports passing something that can be coerced to a String as input accepts patterns containing null bytes - returns an instance given a pattern and options - .escape - transforms a string into a regexp - #error - returns nil if there is no error - contains the error string if there is an error - .quote - transforms a string into a regexp - #ok? - returns false for invalid patterns - returns true for valid patterns -Pending: (Failures listed here are expected and do not affect your suite's status) +RE2::String + #re2_gsub + doesn't perform an in-place replacement + delegates to RE2.GlobalReplace to perform replacement + #re2_match + supports limiting the number of matches + delegates to RE2::Regexp#match to perform matches + #re2_escape + escapes the string for use in regular expressions + #re2_quote + escapes the string for use in regular expressions + #re2_sub + delegates to RE2.Replace to perform replacement + doesn't perform an in-place replacement - 1) RE2::Set#match raises an error if :exception is true and RE2 does not support it - # Underlying RE2::Set::Match outputs error information - # ./spec/re2/set_spec.rb:172 +Pending: (Failures listed here are expected and do not affect your suite's status) - 2) RE2::Regexp#match raises an error if given an ending offset and RE2 does not support it + 1) RE2::Regexp#match raises an error if given an ending offset and RE2 does not support it # Underlying RE2::Match has endpos argument # ./spec/re2/regexp_spec.rb:452 -Finished in 0.2643 seconds (files took 0.52447 seconds to load) + 2) RE2::Set#match raises an error if :exception is true and RE2 does not support it + # Underlying RE2::Set::Match outputs error information + # ./spec/re2/set_spec.rb:172 + +Finished in 0.10439 seconds (files took 0.17198 seconds to load) 304 examples, 0 failures, 2 pending -Randomized with seed 11518 +Randomized with seed 55979 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -2079,12 +2115,14 @@ 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/428131/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/428131/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/1984613 and its subdirectories -I: Current time: Sat Jan 25 18:29:01 -12 2025 -I: pbuilder-time-stamp: 1737872941 +I: removing directory /srv/workspace/pbuilder/428131 and its subdirectories +I: Current time: Sun Mar 1 02:56:39 +14 2026 +I: pbuilder-time-stamp: 1772283399