Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907892 - net-misc/openssh: unable to update the package from binary
Summary: net-misc/openssh: unable to update the package from binary
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-05 09:55 UTC by Agostino Sarubbo
Modified: 2023-08-02 12:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-06-05 09:55:16 UTC
~ # OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING="yes" emerge -q1 openssh


>>> Running pre-merge checks for net-misc/openssh-9.3_p1-r1
 * net-misc/openssh does not support USE='hpn' anymore.
 * The Base system team *STRONGLY* recommends you not rely on this functionality,
 * since these USE flags required third-party patches that often trigger bugs
 * and are of questionable provenance.
 * 
 * If you must continue relying on this functionality, switch to
 * net-misc/openssh-contrib. You will have to remove net-misc/openssh from your
 * world file first: 'emerge --deselect net-misc/openssh'
 * 
 * In order to prevent loss of SSH remote login access, we will abort the build.
 * Whether you proceed with disabling the USE flags or switch to the -contrib
 * variant, when re-emerging you will have to set
 * 
 *   OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes
 * ERROR: net-misc/openssh-9.3_p1-r1::gentoo failed (pretend phase):
 *   Building net-misc/openssh[-hpn] without OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called pkg_pretend
 *   environment, line 2418:  Called die
 * The specific snippet of code:
 *           die "Building net-misc/openssh[${disabled_eol_flags%,}] without OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes";
 * 
 * If you need support, post the output of `emerge --info '=net-misc/openssh-9.3_p1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/openssh-9.3_p1-r1::gentoo'`.
 * The complete build log is located at '/var/log/emerge-log/net-misc:openssh-9.3_p1-r1:20230605-095230.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/openssh-9.3_p1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-9.3_p1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/openssh-9.3_p1-r1/empty'
 * S: '/var/tmp/portage/net-misc/openssh-9.3_p1-r1/work/openssh-9.3_p1'
>>> Failed to emerge net-misc/openssh-9.3_p1-r1, Log file:
>>>  '/var/log/emerge-log/net-misc:openssh-9.3_p1-r1:20230605-095230.log'

 * Messages for package net-misc/openssh-9.3_p1-r1:
 * Log file: /var/log/emerge-log/net-misc:openssh-9.3_p1-r1:20230605-095230.log

 * net-misc/openssh does not support USE='hpn' anymore.
 * The Base system team *STRONGLY* recommends you not rely on this functionality,
 * since these USE flags required third-party patches that often trigger bugs
 * and are of questionable provenance.
 * 
 * If you must continue relying on this functionality, switch to
 * net-misc/openssh-contrib. You will have to remove net-misc/openssh from your
 * world file first: 'emerge --deselect net-misc/openssh'
 * 
 * In order to prevent loss of SSH remote login access, we will abort the build.
 * Whether you proceed with disabling the USE flags or switch to the -contrib
 * variant, when re-emerging you will have to set
 * 
 *   OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (net-misc/openssh-9.3_p1-r1:0/0::gentoo, binary scheduled for merge), Log file:
 *   '/var/log/emerge-log/net-misc:openssh-9.3_p1-r1:20230605-095230.log'
 *




[binary     U  ] net-misc/openssh-9.3_p1-r1::gentoo [9.1_p1-r3::gentoo] USE="pam (pie) ssl -X -audit (-debug) -kerberos -ldns -libedit -livecd -security-key (-selinux) -static -test -verify-sig -xmss (-X509%) (-hpn%*) (-sctp%)" 0 KiB
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-05 10:06:18 UTC
Please include the environment file, the full build.log, and emerge --info.
Comment 2 Ionen Wolkens gentoo-dev 2023-06-05 10:21:23 UTC
Can reproduce from a quick try, albeit I did cheat to trigger the check given I don't have openssh[hpn] around by using:

    if [[ ${MERGE_TYPE} == binary && ${OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING} != yes ]]; then

And then setting OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes accomplished nothing when doing emerge -K1 openssh with it.

Unless missing something obvious, I guess(?) binpkgs simply stick to what's in the environment file? Not something I ever looked at.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-05 10:27:56 UTC
I guess we'll skip it for binaries then.
Comment 4 Ionen Wolkens gentoo-dev 2023-06-05 10:31:12 UTC
(In reply to Sam James from comment #3)
> I guess we'll skip it for binaries then.
Yeah doesn't hurt I guess, albeit this does feel like an edge case given (as far as I can tell) it'd mean having created the binpkg /without/ using this variable, and then have a target machine that differs and still has openssh[hpn] or so installed.
Comment 5 Larry the Git Cow gentoo-dev 2023-08-02 12:39:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af815ce4c7a7933c36b36b24c29b655bfec37105

commit af815ce4c7a7933c36b36b24c29b655bfec37105
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-08-02 12:38:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-02 12:38:57 +0000

    net-misc/openssh: skip sanity-check for binpkgs
    
    Because of environment saving, we can't allow users to override for binpkgs, so just
    elide the check there.
    
    Closes: https://bugs.gentoo.org/907892
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/openssh/openssh-9.3_p2.ebuild | 3 +++
 1 file changed, 3 insertions(+)