[MacPorts] #69478: OpenSSH 9.7p1 running tests fails

MacPorts noreply at macports.org
Tue Mar 12 02:48:54 UTC 2024


#69478: OpenSSH 9.7p1 running tests fails
-----------------------+--------------------
  Reporter:  artkiver  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  openssh   |
-----------------------+--------------------
Description changed by ryandesign:

Old description:

> While attempting to update the Portfile for OpenSSH to 9.7p1 earlier (PR
> submitted here; prematurely: https://github.com/macports/macports-
> ports/pull/22981)  I ran into an issue which seems very similar to
> https://trac.macports.org/ticket/69456 with OpenSMTPD.
>
> Output of main.log below
>
> {{{
> :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.
> }}}
>
> Since OpenSMTPD was apparently fixed upstream (via
> https://github.com/OpenSMTPD/OpenSMTPD/commit/276e064723bfdc81548950b752595183ea610800
> ) I've made mention of this to OpenSSH developer djm@ as well, but wanted
> to document this in its own Trac issue.
>
> I have not looked into this deeply yet, so my apologies in advance if the
> OpenSMTPD reference mentioned is a red herring.
>
> I probably should have done more due diligence locally before submitting
> a PR in the first place; but previously had often ignored when port test
> failed due to some of the tests attempting to do things which aren't
> really in alignment with my local system(s) (e.g. trying to nectat to
> sshd even though I have a firewall running blocking such access so that
> test would stall out/fail).

New description:

 While attempting to update the Portfile for OpenSSH to 9.7p1 earlier (PR
 submitted here; prematurely: https://github.com/macports/macports-
 ports/pull/22981)  I ran into an issue which seems very similar to #69456
 with OpenSMTPD.

 Output of main.log below

 {{{
 :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.
 }}}

 Since OpenSMTPD was apparently fixed upstream (via
 https://github.com/OpenSMTPD/OpenSMTPD/commit/276e064723bfdc81548950b752595183ea610800
 ) I've made mention of this to OpenSSH developer djm@ as well, but wanted
 to document this in its own Trac issue.

 I have not looked into this deeply yet, so my apologies in advance if the
 OpenSMTPD reference mentioned is a red herring.

 I probably should have done more due diligence locally before submitting a
 PR in the first place; but previously had often ignored when port test
 failed due to some of the tests attempting to do things which aren't
 really in alignment with my local system(s) (e.g. trying to nectat to sshd
 even though I have a firewall running blocking such access so that test
 would stall out/fail).

--

-- 
Ticket URL: <https://trac.macports.org/ticket/69478#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list