Bug#1078840: libflickr-api-perl: FTBFS: Failed test 'checking the error code for "method not found"'
Santiago Vila
sanvila at debian.org
Sat Aug 17 00:43:27 BST 2024
Package: src:libflickr-api-perl
Version: 1.28-2
Severity: serious
Control: close -1 1.29-1
Tags: ftbfs bullseye bookworm
Dear maintainer:
During a rebuild of all packages in bullseye, your package failed to build:
(Note: The build failure also happens in bookworm)
--------------------------------------------------------------------------------
[...]
debian/rules build
dh build
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro"
############################___ NOTICE ___##############################
# #
# Some of the api authentication and results tests require some #
# information from you. Scripts script/flickr_make_stored_config.pl #
# and script/flickr_make_test_values.pl are an easy way to assemble #
# this information. Executing either script with the --help flag will #
# explain the arguments you need for these scripts. #
# #
# The authentication tests use either the MAKETEST_OAUTH_CFG or the #
# MAKETEST_FLICKR_CFG environment variables or both. The result tests #
# use the MAKETEST_VALUES environment variable. You can use any of #
# environment variables with the others. #
# #
# Tests that interact with Flickr will also need the #
# MAKETEST_OAUTH_CFG or the MAKETEST_FLICKR_CFG environment variables #
# or both. If you want to interact with Flickr, but don't want to #
# go through the authentication process, again, then you can specify #
# MAKETEST_OAUTH_AUTHED=1 and/or MAKETEST_FLICKR_AUTHED=1 as needed #
# to bypass the authentication tests. #
# #
# If you want to run these tests, answer `No' to the question below #
# and run the script or build your own config by hand. When you are #
# ready for "make test" use: #
# make test MAKETEST_OAUTH_CFG=/the/path/to/above/filename #
# or #
# make test MAKETEST_FLICKR_CFG=/the/path/to/above/filename #
# or #
# make test MAKETEST_VALUES=/the/path/to/above/filename #
# or any combination of the above. #
# #
############################___ NOTICE ___##############################
Do you want to continue? [yes] yes
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Flickr::API
Writing MYMETA.yml and MYMETA.json
dh_auto_build
make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp lib/Flickr/API/Response.pm blib/lib/Flickr/API/Response.pm
cp lib/Flickr/API/Upload.pm blib/lib/Flickr/API/Upload.pm
cp lib/Flickr/API/People.pm blib/lib/Flickr/API/People.pm
cp lib/Flickr/API/Cameras.pm blib/lib/Flickr/API/Cameras.pm
cp lib/Flickr/API/Request.pm blib/lib/Flickr/API/Request.pm
cp lib/Flickr/API.pm blib/lib/Flickr/API.pm
cp lib/Flickr/API/Reflection.pm blib/lib/Flickr/API/Reflection.pm
cp script/flickr_dump_stored_config.pl blib/script/flickr_dump_stored_config.pl
cp script/flickr_make_stored_config.pl blib/script/flickr_make_stored_config.pl
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/flickr_dump_stored_config.pl
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/flickr_make_stored_config.pl
cp script/flickr_make_test_values.pl blib/script/flickr_make_test_values.pl
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/flickr_make_test_values.pl
Manifying 3 pod documents
Manifying 7 pod documents
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test
make -j2 test TEST_VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'checking the error code for "method not found"'
# at t/01-test.t line 32.
# got: '212'
# expected: '112'
The 'perms' parameter must be one of: read, write, delete
at t/01-test.t line 77.
# Looks like you failed 1 test of 26.
t/01-test.t ..........................
1..26
ok 1 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 2 - An object of class 'Flickr::API::Response' isa 'Flickr::API::Response'
not ok 3 - checking the error code for "method not found"
ok 4 - checking the error code for "format not found"
ok 5 - checking that http response code propagated
ok 6 - checking that success flag propagated
ok 7 - checking that error code propagated
ok 8 - Signing test 1
ok 9 - Signing test 2
ok 10 - Signing test 3 (unicode=0)
ok 11 - Signing test 4 (unicode=1)
ok 12 - Did request_auth_url object to invalid permission
ok 13 - did request_auth_url accept write permissions
ok 14 - did request_auth_url accept delete permissions
ok 15 - Checking that the frob item in the query matches
ok 16 - Checking that the api_key item in the query matches
ok 17 - Checking that the perms item in the query matches
ok 18 - Checking that the api_sig item in the query matches
ok 19 - Checking that the perms item in the query matches in reverse
ok 20 - Checking that the api_sig item in the query matches in reverse
ok 21 - Checking that the api_key item in the query matches in reverse
ok 22 - Checking that the frob item in the query matches in reverse
ok 23 - Checking correct return path
ok 24 - Checking return domain
ok 25 - Checking return protocol
ok 26 - Checking URL generation without a secret
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/26 subtests
t/02-flickr_api.t ....................
1..15
ok 1 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 2 - Does Flickr::API object identify as Flickr authentication
ok 3 - Does Flickr::API object correctly specify its type as flickr
ok 4 - Did export_config return the api_key
ok 5 - Did constructor remove the older key in favor of api_key
ok 6 - Did export_config return the api secret
ok 7 - Did constructor remove the older secret in favor of api_secret
ok 8 - Did export_config return undef for undefined frob
ok 9 - Did export_config return undef for undefined token
ok 10 - Did export_storable_config produce a readable config
ok 11 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 12 - were we able to import our api key
ok 13 - did we sucessfully shake deprecated 'key' argument
ok 14 - were we able to import our api secret
ok 15 - did we sucessfully shake deprecated 'secret' argument
ok
t/02-oauth_api.t .....................
1..32
ok 1 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 2 - Does Flickr::API object identify as OAuth
ok 3 - Does Flickr::API object identify as consumer request
ok 4 - Does Flickr::API object correctly specify its type as oauth
ok 5 - Did export_config return the consumer_key in consumer/message request
ok 6 - Did export_config return the correct signature_method in consumer/message request
ok 7 - Did export_config return a nonce in consumer/message request
ok 8 - Did export_config return a timestamp in consumer/message request
ok 9 - Did export_config return the consumer_secret in consumer/api request
ok 10 - Did export_config return the correct request_method in consumer/api request
ok 11 - Did export_config return the correct request_url in consumer/api request
ok 12 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 13 - Does Flickr::API object identify as OAuth
ok 14 - Does Flickr::API object identify as protected resource request
ok 15 - Did export_config return the consumer_key in protected resource/message request
ok 16 - Did export_config return the token in protected resource/message request
ok 17 - Did export_config return the correct signature_method in protected resource/message request
ok 18 - Did export_config return a nonce in protected resource/message request
ok 19 - Did export_config return a timestamp in protected resource/message request
ok 20 - Did export_config return the consumer_secret in protected resource/api request
ok 21 - Did export_config return the token_secret in protected resource/api request
ok 22 - Did export_config return the correct request_method in protected resource/api request
ok 23 - Did export_config return the correct request_url in protected resource/api request
ok 24 - Did export_storable_config produce a readable config
ok 25 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 26 - Did import_storable_config get back the config we stored
ok 27 - Does flickr_make_stored_config.pl compile
ok 28 - Does flickr_dump_stored_config.pl compile
ok 29 - Does flickr_make_test_values.pl compile
ok 30 - Did flickr_dump_stored_config.pl run
ok 31 - Did _export_api return the consumer_key when asked
ok 32 - Did _make_nonce return a nonce when asked
ok
t/03-flickr_api.t .................... skipped: These tests require that MAKETEST_FLICKR_CFG points to a valid config, see README.
t/03-oauth_consumer.t ................ skipped: These tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
t/04-flickr_authuri.t ................ skipped: These tests require that MAKETEST_FLICKR_CFG points to a valid config, see README.
t/04-oauth_requesttoken.t ............ skipped: These tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
t/05-flickr_authentication.t ......... skipped: These tests require that MAKETEST_FLICKR_CFG points to a valid config, see README.
t/05-oauth_authentication.t .......... skipped: These tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
t/06-flickr-authenticated-methods.t .. skipped: These tests require that MAKETEST_FLICKR_CFG points to a valid config, see README.
# No MAKETEST_OAUTH_CFG, shallow tests only
t/06-oauth-authenticated-methods.t ...
1..17
ok 1 - An object of class 'Flickr::API' isa 'Flickr::API'
ok 2 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 3 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 4 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 5 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 6 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 7 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 8 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 9 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 10 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 11 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 12 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 13 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 14 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 15 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 16 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok 17 # skip Skipping authentication tests, oauth config isn't there or is not readable
ok
t/07-reflection.t .................... skipped: Reflection tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
t/08-cameras.t ....................... skipped: Cameras tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
t/09-people.t ........................ skipped: People tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
t/10-upload.t ........................ skipped: Upload tests require that MAKETEST_OAUTH_CFG points to a valid config, see README.
Test Summary Report
-------------------
t/01-test.t (Wstat: 256 Tests: 26 Failed: 1)
Failed test: 3
Non-zero exit status: 1
Files=15, Tests=90, 2 wallclock secs ( 0.03 usr 0.01 sys + 1.43 cusr 0.24 csys = 1.71 CPU)
Result: FAIL
Failed 1/15 test programs. 1/90 subtests failed.
make[1]: *** [Makefile:928: test_dynamic] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 test TEST_VERBOSE=1 returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/bullseye/
About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
More information about the pkg-perl-maintainers
mailing list