Skip to content

Instantly share code, notes, and snippets.

@horgh
Created August 8, 2023 18:46
Show Gist options
  • Save horgh/f6c8b7a5ba3b042fcccb4111481bf214 to your computer and use it in GitHub Desktop.
Save horgh/f6c8b7a5ba3b042fcccb4111481bf214 to your computer and use it in GitHub Desktop.
test output
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-XS# git clean -dxff
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-XS# perl Build.PL
Checking for MMDB_lookup_string in -lmaxminddb... Checking for cc... x86_64-linux-gnu-gcc
yes
Checking for maxminddb_config.h... yes
Checking for MMDB_search_node_s.right_record_type... yes
Checking for unsigned __int128... yes
Checking for compute result of (MMDB_UINT128_IS_BYTE_ARRAY)... no
Can't find dist packages without a MANIFEST file
Run 'Build manifest' to generate one
WARNING: Possible missing or corrupt 'MANIFEST' file.
Nothing to enter for 'provides' field in metafile.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'MaxMind-DB-Reader-XS' version '1.000010'
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-XS# ./Build
Building MaxMind-DB-Reader-XS
x86_64-linux-gnu-gcc -Ic -I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -fPIC -std=c99 -fms-extensions -Wall -g -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o c/perl_math_int128.o c/perl_math_int128.c
x86_64-linux-gnu-gcc -Ic -I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -fPIC -std=c99 -fms-extensions -Wall -g -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o c/perl_math_int64.o c/perl_math_int64.c
x86_64-linux-gnu-gcc -Ic -I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -DVERSION="1.000010" -DXS_VERSION="1.000010" -fPIC -std=c99 -fms-extensions -Wall -g -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o lib/MaxMind/DB/Reader/XS.o lib/MaxMind/DB/Reader/XS.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/MaxMind/DB/Reader/XS/XS.bs')
x86_64-linux-gnu-gcc -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/MaxMind/DB/Reader/XS/XS.so lib/MaxMind/DB/Reader/XS.o c/perl_math_int128.o c/perl_math_int64.o -lmaxminddb
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-XS# prove -blv t
t/libmaxminddb-version.t ..
ok 1 - no-op
1..1
# libmaxminddb version is 1.7.1
ok
t/xs-only.t ...............
ok 1 - 'MaxMind::DB::Reader->new()' isa 'MaxMind::DB::Reader::XS'
ok 2 - string in entry data is still valid after mmdb free
ok 3 - string from metadata is still valid after mmdb free
ok 4 - returned boolean values are not read-only
1..4
ok
All tests successful.
Files=2, Tests=5, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.25 cusr 0.04 csys = 0.33 CPU)
Result: PASS
(failed reverse-i-search)`vi': prove -bl^Ct
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-XS# less /usr/local/include/maxminddb.h
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-XS# cd ../MaxMind-DB-Reader-php
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# git clean -dxff
fatal: detected dubious ownership in repository at '/will/MaxMind-DB-Reader-php'
To add an exception for this directory, call:
git config --global --add safe.directory /will/MaxMind-DB-Reader-php
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# git config --global --add safe.directory /will/MaxMind-DB-Reader-php
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# git clean -dxff
Removing .phpunit.result.cache
Removing composer.lock
Removing ext/.libs/
Removing ext/Makefile
Removing ext/Makefile.fragments
Removing ext/Makefile.objects
Removing ext/autom4te.cache/
Removing ext/build/
Removing ext/config.h
Removing ext/config.h.in
Removing ext/config.log
Removing ext/config.nice
Removing ext/config.status
Removing ext/configure
Removing ext/configure.ac
Removing ext/include/
Removing ext/libtool
Removing ext/maxminddb.dep
Removing ext/maxminddb.la
Removing ext/maxminddb.lo
Removing ext/modules/
Removing ext/run-tests.php
Removing vendor/
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# cd ext
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# phpize
Configuring for:
PHP Api Version: 20210902
Zend Module Api No: 20210902
Zend Extension Api No: 420210902
configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
configure.ac:22: the top level
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# ./configure --with-maxminddb --enable-maxminddb-debug
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20210902
checking for PHP installed headers prefix... /usr/include/php/20210902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking Whether to enable the MaxMind DB Reader extension... yes, shared
checking for MaxMind DB debug support... yes
checking for pkg-config... /usr/bin/pkg-config
checking for libmaxminddb... found version 1.7.1
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# make clean
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
rm -f ext/opcache/jit/zend_jit_x86.c
rm -f ext/opcache/jit/zend_jit_arm64.c
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# make
/bin/bash /will/MaxMind-DB-Reader-php/ext/libtool --mode=compile cc -I. -I/will/MaxMind-DB-Reader-php/ext -I/will/MaxMind-DB-Reader-php/ext/include -I/will/MaxMind-DB-Reader-php/ext/main -I/will/MaxMind-DB-Reader-php/ext -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror -DZEND_COMPILE_DL_EXT=1 -c /will/MaxMind-DB-Reader-php/ext/maxminddb.c -o maxminddb.lo -MMD -MF maxminddb.dep -MT maxminddb.lo
libtool: compile: cc -I. -I/will/MaxMind-DB-Reader-php/ext -I/will/MaxMind-DB-Reader-php/ext/include -I/will/MaxMind-DB-Reader-php/ext/main -I/will/MaxMind-DB-Reader-php/ext -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror -DZEND_COMPILE_DL_EXT=1 -c /will/MaxMind-DB-Reader-php/ext/maxminddb.c -MMD -MF maxminddb.dep -MT maxminddb.lo -fPIC -DPIC -o .libs/maxminddb.o
/bin/bash /will/MaxMind-DB-Reader-php/ext/libtool --mode=link cc -shared -I/will/MaxMind-DB-Reader-php/ext/include -I/will/MaxMind-DB-Reader-php/ext/main -I/will/MaxMind-DB-Reader-php/ext -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror -o maxminddb.la -export-dynamic -avoid-version -prefer-pic -module -rpath /will/MaxMind-DB-Reader-php/ext/modules maxminddb.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lmaxminddb
libtool: link: cc -shared -fPIC -DPIC .libs/maxminddb.o -L/usr/local/lib /usr/local/lib/libmaxminddb.so -g -O2 -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,maxminddb.so -o .libs/maxminddb.so
libtool: link: ( cd ".libs" && rm -f "maxminddb.la" && ln -s "../maxminddb.la" "maxminddb.la" )
/bin/bash /will/MaxMind-DB-Reader-php/ext/libtool --mode=install cp ./maxminddb.la /will/MaxMind-DB-Reader-php/ext/modules
libtool: install: cp ./.libs/maxminddb.so /will/MaxMind-DB-Reader-php/ext/modules/maxminddb.so
libtool: install: cp ./.libs/maxminddb.lai /will/MaxMind-DB-Reader-php/ext/modules/maxminddb.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /will/MaxMind-DB-Reader-php/ext/modules
----------------------------------------------------------------------
Libraries have been installed in:
/will/MaxMind-DB-Reader-php/ext/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# cd ..
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# cd ext
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# NO_INTERACTION=1 make test
Build complete.
Don't forget to run 'make test'.
=====================================================================
PHP : /usr/bin/php8.1
PHP_SAPI : cli
PHP_VERSION : 8.1.2-1ubuntu2.13
ZEND_VERSION: 4.1.2
PHP_OS : Linux - Linux 52d3ecc8cebd 5.15.112-19403-gb69e1c36e415 #1 SMP PREEMPT Tue Jul 25 18:25:11 PDT 2023 x86_64
INI actual : /will/MaxMind-DB-Reader-php/ext/tmp-php.ini
More .INIs :
CWD : /will/MaxMind-DB-Reader-php/ext
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2023-08-08 18:40:45
=====================================================================
PASS Check for maxminddb presence [tests/001-load.phpt]
PASS Check that Reader class is not final [tests/002-final.phpt]
PASS openbase_dir is followed [tests/003-open-basedir.phpt]
=====================================================================
TIME END 2023-08-08 18:40:45
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 16
---------------------------------------------------------------------
Number of tests : 3 3
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Tests passed : 3 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken : 0 seconds
=====================================================================
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php/ext# cd ..
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# vendor/bin/phpunit --coverage-text
bash: vendor/bin/phpunit: No such file or directory
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# composer install --no-progress --prefer-dist --optimize-autoloader
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 68 installs, 0 updates, 0 removals
- Locking composer/pcre (3.1.0)
- Locking composer/semver (3.3.2)
- Locking composer/xdebug-handler (3.0.3)
- Locking doctrine/annotations (2.0.1)
- Locking doctrine/instantiator (2.0.0)
- Locking doctrine/lexer (3.0.0)
- Locking friendsofphp/php-cs-fixer (v3.22.0)
- Locking guzzlehttp/guzzle (7.7.0)
- Locking guzzlehttp/promises (2.0.1)
- Locking guzzlehttp/psr7 (2.6.0)
- Locking myclabs/deep-copy (1.11.1)
- Locking nikic/php-parser (v4.16.0)
- Locking phar-io/manifest (2.0.3)
- Locking phar-io/version (3.2.1)
- Locking php-coveralls/php-coveralls (v2.6.0)
- Locking phpstan/phpstan (1.10.28)
- Locking phpunit/php-code-coverage (9.2.27)
- Locking phpunit/php-file-iterator (3.0.6)
- Locking phpunit/php-invoker (3.1.1)
- Locking phpunit/php-text-template (2.0.4)
- Locking phpunit/php-timer (5.0.3)
- Locking phpunit/phpcov (8.2.1)
- Locking phpunit/phpunit (9.6.10)
- Locking psr/cache (3.0.0)
- Locking psr/container (2.0.2)
- Locking psr/event-dispatcher (1.0.0)
- Locking psr/http-client (1.0.2)
- Locking psr/http-factory (1.0.2)
- Locking psr/http-message (2.0)
- Locking psr/log (2.0.0)
- Locking ralouphie/getallheaders (3.0.3)
- Locking sebastian/cli-parser (1.0.1)
- Locking sebastian/code-unit (1.0.8)
- Locking sebastian/code-unit-reverse-lookup (2.0.3)
- Locking sebastian/comparator (4.0.8)
- Locking sebastian/complexity (2.0.2)
- Locking sebastian/diff (4.0.5)
- Locking sebastian/environment (5.1.5)
- Locking sebastian/exporter (4.0.5)
- Locking sebastian/global-state (5.0.6)
- Locking sebastian/lines-of-code (1.0.3)
- Locking sebastian/object-enumerator (4.0.4)
- Locking sebastian/object-reflector (2.0.4)
- Locking sebastian/recursion-context (4.0.5)
- Locking sebastian/resource-operations (3.0.3)
- Locking sebastian/type (3.2.1)
- Locking sebastian/version (3.0.2)
- Locking squizlabs/php_codesniffer (3.7.2)
- Locking symfony/config (v6.3.2)
- Locking symfony/console (v6.3.2)
- Locking symfony/deprecation-contracts (v3.3.0)
- Locking symfony/event-dispatcher (v6.3.2)
- Locking symfony/event-dispatcher-contracts (v3.3.0)
- Locking symfony/filesystem (v6.3.1)
- Locking symfony/finder (v6.3.3)
- Locking symfony/options-resolver (v6.3.0)
- Locking symfony/polyfill-ctype (v1.27.0)
- Locking symfony/polyfill-intl-grapheme (v1.27.0)
- Locking symfony/polyfill-intl-normalizer (v1.27.0)
- Locking symfony/polyfill-mbstring (v1.27.0)
- Locking symfony/polyfill-php80 (v1.27.0)
- Locking symfony/polyfill-php81 (v1.27.0)
- Locking symfony/process (v6.3.2)
- Locking symfony/service-contracts (v3.3.0)
- Locking symfony/stopwatch (v6.3.0)
- Locking symfony/string (v6.3.2)
- Locking symfony/yaml (v6.3.3)
- Locking theseer/tokenizer (1.2.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 68 installs, 0 updates, 0 removals
- Installing composer/pcre (3.1.0): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.3.0): Extracting archive
- Installing symfony/stopwatch (v6.3.0): Extracting archive
- Installing symfony/process (v6.3.2): Extracting archive
- Installing symfony/polyfill-php81 (v1.27.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
- Installing symfony/deprecation-contracts (v3.3.0): Extracting archive
- Installing symfony/options-resolver (v6.3.0): Extracting archive
- Installing symfony/finder (v6.3.3): Extracting archive
- Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
- Installing symfony/filesystem (v6.3.1): Extracting archive
- Installing psr/event-dispatcher (1.0.0): Extracting archive
- Installing symfony/event-dispatcher-contracts (v3.3.0): Extracting archive
- Installing symfony/event-dispatcher (v6.3.2): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
- Installing symfony/string (v6.3.2): Extracting archive
- Installing symfony/console (v6.3.2): Extracting archive
- Installing sebastian/diff (4.0.5): Extracting archive
- Installing doctrine/lexer (3.0.0): Extracting archive
- Installing psr/cache (3.0.0): Extracting archive
- Installing doctrine/annotations (2.0.1): Extracting archive
- Installing psr/log (2.0.0): Extracting archive
- Installing composer/xdebug-handler (3.0.3): Extracting archive
- Installing composer/semver (3.3.2): Extracting archive
- Installing friendsofphp/php-cs-fixer (v3.22.0): Extracting archive
- Installing guzzlehttp/promises (2.0.1): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing psr/http-factory (1.0.2): Extracting archive
- Installing guzzlehttp/psr7 (2.6.0): Extracting archive
- Installing symfony/yaml (v6.3.3): Extracting archive
- Installing symfony/config (v6.3.2): Extracting archive
- Installing psr/http-client (1.0.2): Extracting archive
- Installing guzzlehttp/guzzle (7.7.0): Extracting archive
- Installing php-coveralls/php-coveralls (v2.6.0): Extracting archive
- Installing phpstan/phpstan (1.10.28): Extracting archive
- Installing sebastian/version (3.0.2): Extracting archive
- Installing sebastian/cli-parser (1.0.1): Extracting archive
- Installing sebastian/type (3.2.1): Extracting archive
- Installing sebastian/resource-operations (3.0.3): Extracting archive
- Installing sebastian/recursion-context (4.0.5): Extracting archive
- Installing sebastian/object-reflector (2.0.4): Extracting archive
- Installing sebastian/object-enumerator (4.0.4): Extracting archive
- Installing sebastian/global-state (5.0.6): Extracting archive
- Installing sebastian/exporter (4.0.5): Extracting archive
- Installing sebastian/environment (5.1.5): Extracting archive
- Installing sebastian/comparator (4.0.8): Extracting archive
- Installing sebastian/code-unit (1.0.8): Extracting archive
- Installing phpunit/php-timer (5.0.3): Extracting archive
- Installing phpunit/php-text-template (2.0.4): Extracting archive
- Installing phpunit/php-invoker (3.1.1): Extracting archive
- Installing phpunit/php-file-iterator (3.0.6): Extracting archive
- Installing theseer/tokenizer (1.2.1): Extracting archive
- Installing nikic/php-parser (v4.16.0): Extracting archive
- Installing sebastian/lines-of-code (1.0.3): Extracting archive
- Installing sebastian/complexity (2.0.2): Extracting archive
- Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
- Installing phpunit/php-code-coverage (9.2.27): Extracting archive
- Installing phar-io/version (3.2.1): Extracting archive
- Installing phar-io/manifest (2.0.3): Extracting archive
- Installing myclabs/deep-copy (1.11.1): Extracting archive
- Installing doctrine/instantiator (2.0.0): Extracting archive
- Installing phpunit/phpunit (9.6.10): Extracting archive
- Installing phpunit/phpcov (8.2.1): Extracting archive
- Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
8 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
54 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# vendor/bin/phpunit --coverage-text
PHPUnit 9.6.10 by Sebastian Bergmann and contributors.
Warning: No code coverage driver available
Warning: Your XML configuration validates against a deprecated schema.
Suggestion: Migrate your XML configuration using "--migrate-configuration"!
.......................................... 42 / 42 (100%)
Time: 00:00.116, Memory: 16.00 MB
OK (42 tests, 382 assertions)
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# php -d extension=ext/modules/maxminddb.so vendor/bin/phpunit
PHPUnit 9.6.10 by Sebastian Bergmann and contributors.
Warning: Your XML configuration validates against a deprecated schema.
Suggestion: Migrate your XML configuration using "--migrate-configuration"!
.......................................... 42 / 42 (100%)
Time: 00:00.045, Memory: 16.00 MB
OK (42 tests, 382 assertions)
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-php# cd ../MaxMind-DB-Reader-python/
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-python# git clean -dxff
fatal: detected dubious ownership in repository at '/will/MaxMind-DB-Reader-python'
To add an exception for this directory, call:
git config --global --add safe.directory /will/MaxMind-DB-Reader-python
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-python# git config --global --add safe.directory /will/MaxMind-DB-Reader-python
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-python# git clean -dxff
Removing .mypy_cache/
Removing .tox/
Removing build/
Removing maxminddb.egg-info/
Removing tests/__pycache__/
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-python# CFLAGS="-Werror -Wall -Wextra" python3 setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/const.py -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/errors.py -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/file.py -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/types.py -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/decoder.py -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/reader.py -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/__init__.py -> build/lib.linux-x86_64-3.10/maxminddb
running egg_info
creating maxminddb.egg-info
writing maxminddb.egg-info/PKG-INFO
writing dependency_links to maxminddb.egg-info/dependency_links.txt
writing top-level names to maxminddb.egg-info/top_level.txt
writing manifest file 'maxminddb.egg-info/SOURCES.txt'
reading manifest file 'maxminddb.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'docs/html'
adding license file 'LICENSE'
writing manifest file 'maxminddb.egg-info/SOURCES.txt'
copying maxminddb/extension.pyi -> build/lib.linux-x86_64-3.10/maxminddb
copying maxminddb/py.typed -> build/lib.linux-x86_64-3.10/maxminddb
running build_ext
building 'maxminddb.extension' extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/extension
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -Werror -Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c extension/maxminddb.c -o build/temp.linux-x86_64-3.10/extension/maxminddb.o -Wall -Wextra
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Werror -Wall -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/extension/maxminddb.o -lmaxminddb -o build/lib.linux-x86_64-3.10/maxminddb/extension.cpython-310-x86_64-linux-gnu.so
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-python# MM_FORCE_EXT_TESTS=1 tox
ROOT: tox-gh-actions won't override envlist because tox is not running in GitHub Actions
py37-test: skipped because could not find python interpreter with spec(s): py37
py37-test: SKIP ⚠ in 0.01 seconds
py38-test: skipped because could not find python interpreter with spec(s): py38
py38-test: SKIP ⚠ in 0.01 seconds
py39-test: skipped because could not find python interpreter with spec(s): py39
py39-test: SKIP ⚠ in 0.01 seconds
py310-test: install_deps> python -I -m pip install pytest
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
.pkg: _optional_hooks> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: install_requires_for_build_wheel> python -I -m pip install wheel
.pkg: prepare_metadata_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
py310-test: install_package> python -I -m pip install --force-reinstall --no-deps /will/MaxMind-DB-Reader-python/.tox/.tmp/package/1/maxminddb-2.4.0.tar.gz
py310-test: commands[0]> pytest tests
========================================================================= test session starts ==========================================================================
platform linux -- Python 3.10.12, pytest-7.4.0, pluggy-1.2.0
cachedir: .tox/py310-test/.pytest_cache
rootdir: /will/MaxMind-DB-Reader-python
collected 255 items
tests/decoder_test.py .............. [ 5%]
tests/reader_test.py ........................................................................................................................................... [ 60%]
...................................................................................................... [100%]
========================================================================= 255 passed in 3.47s ==========================================================================
py310-test: OK ✔ in 15.13 seconds
py310-black: install_deps> python -I -m pip install black
py310-black: install_package> python -I -m pip install --force-reinstall --no-deps /will/MaxMind-DB-Reader-python/.tox/.tmp/package/2/maxminddb-2.4.0.tar.gz
py310-black: commands[0]> black --check --diff .
All done! ✨ 🍰 ✨
13 files would be left unchanged.
py310-black: OK ✔ in 7.84 seconds
py310-lint: install_deps> python -I -m pip install pylint
py310-lint: install_package> python -I -m pip install --force-reinstall --no-deps /will/MaxMind-DB-Reader-python/.tox/.tmp/package/3/maxminddb-2.4.0.tar.gz
py310-lint: commands[0]> pylint maxminddb
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
py310-lint: OK ✔ in 11.98 seconds
py310-flake8: install_deps> python -I -m pip install flake8
py310-flake8: install_package> python -I -m pip install --force-reinstall --no-deps /will/MaxMind-DB-Reader-python/.tox/.tmp/package/4/maxminddb-2.4.0.tar.gz
py310-flake8: commands[0]> flake8 maxminddb
py310-flake8: OK ✔ in 6.44 seconds
py310-mypy: install_deps> python -I -m pip install mypy
py310-mypy: install_package> python -I -m pip install --force-reinstall --no-deps /will/MaxMind-DB-Reader-python/.tox/.tmp/package/5/maxminddb-2.4.0.tar.gz
py310-mypy: commands[0]> mypy maxminddb tests
Success: no issues found in 10 source files
.pkg: _exit> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
py37-test: SKIP (0.01 seconds)
py38-test: SKIP (0.01 seconds)
py39-test: SKIP (0.01 seconds)
py310-test: OK (15.13=setup[11.35]+cmd[3.78] seconds)
py310-black: OK (7.84=setup[7.32]+cmd[0.52] seconds)
py310-lint: OK (11.98=setup[8.86]+cmd[3.12] seconds)
py310-flake8: OK (6.44=setup[6.14]+cmd[0.30] seconds)
py310-mypy: OK (10.76=setup[8.42]+cmd[2.34] seconds)
congratulations :) (52.27 seconds)
root@52d3ecc8cebd:/will/MaxMind-DB-Reader-python#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment