Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36038 closed defect (duplicate)

openssh: patch fails

Reported by: vkuznet (Valentin Kuznetsov) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: jyrkiwahlstedt, rob.patro@…
Port: openssh

Description

Hi, I have Lion and recent macports (2.1.2). I have installed openssh as openssh @6.0p1_0+gsskex (active)

Once I invoke the upgrade, it fails with the following log:

cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/main.log
version:1
:msg:main --->  Computing dependencies for openssh:info:main .:debug:main openssh has no conflicts
:debug:main Searching for dependency: autoconf
:debug:main Found Dependency: receipt exists for autoconf
:debug:main Searching for dependency: automake
:debug:main Found Dependency: receipt exists for automake
:debug:main Searching for dependency: libtool
:debug:main Found Dependency: receipt exists for libtool
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: kerberos5
:debug:main Found Dependency: receipt exists for kerberos5
:debug:main Searching for dependency: xauth
:debug:main Found Dependency: receipt exists for xauth
:msg:main 
:debug:main Executing org.macports.main (openssh)
:debug:main Skipping completed org.macports.archivefetch (openssh)
:debug:main Skipping completed org.macports.fetch (openssh)
:debug:main Skipping completed org.macports.checksum (openssh)
:debug:main Skipping completed org.macports.extract (openssh)
:debug:patch patch phase started at Fri Sep  7 13:36:16 EDT 2012
:debug:patch Executing org.macports.patch (openssh)
:notice:patch --->  Applying patches to openssh
:info:patch --->  Applying openssh-5.9p1-gsskex-all-20110920.patch
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/work/openssh-6.1p1" && /usr/bin/patch -p1'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/work/openssh-6.1p1" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/net/openssh/files/openssh-5.9p1-gsskex-all-20110920.patch'
:info:patch The next patch would create the file ChangeLog.gssapi,
:info:patch which already exists!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file ChangeLog.gssapi.rej
:info:patch patching file Makefile.in
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored -- saving rejects to file Makefile.in.rej
:info:patch patching file auth-krb5.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 3 out of 3 hunks ignored -- saving rejects to file auth-krb5.c.rej
:info:patch patching file auth2-gss.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 5 out of 5 hunks ignored -- saving rejects to file auth2-gss.c.rej
:info:patch patching file auth2.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored -- saving rejects to file auth2.c.rej
:info:patch patching file clientloop.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored -- saving rejects to file clientloop.c.rej
:info:patch patching file configure.ac
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file configure.ac.rej
:info:patch patching file gss-genr.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 8 out of 8 hunks ignored -- saving rejects to file gss-genr.c.rej
:info:patch patching file gss-serv-krb5.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 5 out of 5 hunks ignored -- saving rejects to file gss-serv-krb5.c.rej
:info:patch patching file gss-serv.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 11 out of 11 hunks ignored -- saving rejects to file gss-serv.c.rej
:info:patch patching file kex.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored -- saving rejects to file kex.c.rej
:info:patch patching file kex.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 3 out of 3 hunks ignored -- saving rejects to file kex.h.rej
:info:patch The next patch would create the file kexgssc.c,
:info:patch which already exists!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file kexgssc.c.rej
:info:patch The next patch would create the file kexgsss.c,
:info:patch which already exists!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file kexgsss.c.rej
:info:patch patching file key.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored -- saving rejects to file key.c.rej
:info:patch patching file key.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file key.h.rej
:info:patch patching file monitor.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 12 out of 12 hunks ignored -- saving rejects to file monitor.c.rej
:info:patch patching file monitor.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file monitor.h.rej
:info:patch patching file monitor_wrap.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored -- saving rejects to file monitor_wrap.c.rej
:info:patch patching file monitor_wrap.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file monitor_wrap.h.rej
:info:patch patching file readconf.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 5 out of 5 hunks ignored -- saving rejects to file readconf.c.rej
:info:patch patching file readconf.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file readconf.h.rej
:info:patch patching file servconf.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 6 out of 6 hunks ignored -- saving rejects to file servconf.c.rej
:info:patch patching file servconf.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file servconf.h.rej
:info:patch patching file ssh-gss.h
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 6 out of 6 hunks ignored -- saving rejects to file ssh-gss.h.rej
:info:patch patching file ssh_config
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file ssh_config.rej
:info:patch patching file ssh_config.5
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file ssh_config.5.rej
:info:patch patching file sshconnect2.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 8 out of 8 hunks ignored -- saving rejects to file sshconnect2.c.rej
:info:patch patching file sshd.c
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 5 out of 5 hunks ignored -- saving rejects to file sshd.c.rej
:info:patch patching file sshd_config
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file sshd_config.rej
:info:patch patching file sshd_config.5
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n] 
:info:patch Apply anyway? [n] 
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file sshd_config.5.rej
:info:patch Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/work/openssh-6.1p1" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/net/openssh/files/openssh-5.9p1-gsskex-all-20110920.patch'
:info:patch Exit code: 1
:error:patch org.macports.patch for port openssh returned: command execution failed
:debug:patch Error code: CHILDSTATUS 30347 1
:debug:patch Backtrace: command execution failed
    while executing
"system $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec patch "" "< '$patch'""
    (procedure "portpatch::patch_main" line 35)
    invoked from within
"$procedure $targetname"
:info:patch Warning: targets not executed for openssh: org.macports.install org.macports.patch org.macports.configure org.macports.build org.macports.destroot
:notice:patch Please see the log file for port openssh for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/main.log

Please advise. Thanks, Valentin.

Attachments (1)

main.log (8.6 KB) - added by vkuznet (Valentin Kuznetsov) 12 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: openssh removed
Owner: changed from macports-tickets@… to jwa@…
Port: openssh added

"sudo port clean openssh" and try again.

comment:2 Changed 12 years ago by vkuznet (Valentin Kuznetsov)

It does not work. Here is output:

vk@localhost(14:36:40)> sudo port clean openssh
--->  Cleaning openssh
vk@localhost(14:37:19)> sudo port list outdated
openssh                        @6.1p1          net/openssh
vk@localhost(14:37:26)> sudo port -c -u upgrade installed
Warning: No port ncursesw found in the index.
--->  Computing dependencies for openssh
--->  Fetching archive for openssh
--->  Attempting to fetch openssh-6.1p1_0+gsskex.darwin_11.x86_64.tbz2 from http://packages.macports.org/openssh
--->  Attempting to fetch openssh-6.1p1_0+gsskex.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/openssh
--->  Attempting to fetch openssh-6.1p1_0+gsskex.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/openssh
--->  Fetching distfiles for openssh
--->  Verifying checksum(s) for openssh
--->  Extracting openssh
--->  Applying patches to openssh
Error: org.macports.patch for port openssh returned: command execution failed
Please see the log file for port openssh for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_openssh/openssh/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

where log file from port upgrade command I posted earlier.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added
Resolution: duplicate
Status: newclosed
Summary: fail to upgrade opensshopenssh: patch fails

We would need to see the main.log file from the clean attempt to know for sure, but I believe this is a duplicate of #33955.

Changed 12 years ago by vkuznet (Valentin Kuznetsov)

Attachment: main.log added

comment:4 Changed 12 years ago by rob.patro@…

Cc: rob.patro@… added

Cc Me!

Note: See TracTickets for help on using tickets.