Skip to content

Testing Test::PostgreSQL 1.29 on macOS Sonoma 14.8.5 (darwin 23.6.0) in MacPorts package manager with Perl 5.38.5 fails with "failed to chown dir" #49

Description

@ballapete

Hello!

MacPorts or its command line utility port is launched with elevated privileges, either with sudo or by the root super-user. It then creates kind of a sandbox in which an under-privileged user, macports without login shell, executes build or test. The working directory is below /opt/local/var/macports/build, here in /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29. A sandbox effect mostly bends /tmp to /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp.

The failures are:

--->  Testing p5.38-test-postgresql
Executing:  cd "/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29" && /opt/local/bin/perl5.38 Build test 
t/00-base.t .............. ok
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/01-raii.t .............. skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.IJFCI:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/02-multi.t ............. skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.f1q8o:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/04-multiprocess.t ...... skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.UJ6xy:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/05-recycle-base-dir.t .. skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/X93zHHilpJ:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/06-unix-socket.t ....... skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.43Nhx:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/07-configs.t ........... skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.iEXS5:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/08-postgresql_conf.t ... skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.fJ2kQ:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/09-run_psql.t .......... skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.lKEen:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/10-seed_scripts.t ...... skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.FTFT6:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
Use of uninitialized value in chown at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
t/deadlock.t ............. skipped: failed to chown dir:/opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/.tmp/pgtest.nlcTk:Operation not permitted at /opt/local/var/macports/build/p5.38-test-postgresql-4391f175/work/Test-PostgreSQL-1.29/blib/lib/Test/PostgreSQL.pm line 622.
All tests successful.
Files=11, Tests=1,  3 wallclock secs ( 0.04 usr  0.03 sys +  2.35 cusr  0.44 csys =  2.86 CPU)
Result: PASS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions