Opened 8 months ago

Closed 7 months ago

#69456 closed defect (fixed)

opensmtpd: running tests is broken: Error code: POSIX EACCES {permission denied}

Reported by: barracuda156 Owned by: ryanakca (Ryan Kavanagh)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: sonoma Cc:
Port: opensmtpd

Description

--->  Testing opensmtpd
  Error: Failed to test opensmtpd: /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_mail_opensmtpd/opensmtpd/work/destroot/opt/local/var/spool/smtpd: permission denied
  DEBUG: Error code: POSIX EACCES {permission denied}
  DEBUG: Backtrace: /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_mail_opensmtpd/opensmtpd/work/destroot/opt/local/var/spool/smtpd: permission denied
      while executing
  "fs-traverse -depth fullpath [list [option destpath]] {
          if {[file type $fullpath] ne "file"} {
              continue
          }
          if {[file..."
      (procedure "porttest::test_archs" line 11)
      invoked from within
  "porttest::test_archs"
      (procedure "porttest::test_main" line 5)
      invoked from within
  "$procedure $targetname"
  Error: See /opt/local/var/macports/logs/_Users_runner_work_macports-ports_macports-ports_ports_mail_opensmtpd/opensmtpd/main.log for details.
  Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
  Error: Processing of port opensmtpd failed
  Testing 'opensmtpd' failed.
  /Users/runner/work/macports-ports/macports-ports/mpbb/mpbb: error: `test-port' failed to run successfully

https://github.com/macports/macports-ports/pull/22930#issuecomment-1982360080

Change History (3)

comment:1 Changed 8 months ago by artkiver (グレェ)

Thanks for this; I had noticed the PR, but when attempting to update OpenSSH to 9.7p1 I ran into something similar.

(This should have a publicly visible version of the buildbot CI error log: https://github.com/macports/macports-ports/actions/runs/8236427906/job/22522806191?pr=22981 )

I've tagged OpenSSH developer djm@ on the FediVerse and linked to this Trac ticket for reference since it also links to the GitHub PR with op@'s upstream fix in OpenSMTPD.

Here's an excerpt from my main.log as reference, though I will probably open a separate Trac ticket for OpenSSH 9.7p1, I thought I would make mention of it here too just in the event someone else may find it helpful.

:notice:test --->  Testing openssh
:debug:test Executing org.macports.test (openssh)
:error:test Failed to test openssh: fopen(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openssh/openssh/work/destroot/opt/local/libexec/ssh-keysign): permission denied
:debug:test Error code: POSIX EACCES {permission denied}
:debug:test Backtrace: fopen(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openssh/openssh/work/destroot/opt/local/libexec/ssh-keysign): permission denied
:debug:test     while executing
:debug:test "fileIsBinary $fullpath"
:debug:test     invoked from within
:debug:test "fs-traverse -depth fullpath [list [option destpath]] {
:debug:test         if {[file type $fullpath] ne "file"} {
:debug:test             continue
:debug:test         }
:debug:test         if {[file..."
:debug:test     (procedure "porttest::test_archs" line 11)
:debug:test     invoked from within
:debug:test "porttest::test_archs"
:debug:test     (procedure "porttest::test_main" line 5)
:debug:test     invoked from within
:debug:test "$procedure $targetname"
:error:test See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_openssh/openssh/main.log for details.

comment:2 Changed 8 months ago by jmroot (Joshua Root)

As mentioned in #69478, You can set test.ignore_archs yes to disable the arch check test for any port it doesn't work in. That will be necessary until the base fix to skip unreadable files rolls out.

comment:3 Changed 7 months ago by artkiver (グレェ)

Resolution: fixed
Status: assignedclosed

In 12a052535c23600d4829bec9fe3b80859812bef7/macports-ports (master):

opensmtpd: update to 7.5.0p0

Closes: #68573
Closes: #69456

Note: See TracTickets for help on using tickets.