Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Update openssh pre-merge checks fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kyle``
n00b
n00b


Joined: 01 Oct 2004
Posts: 12
Location: Germany - BW

PostPosted: Fri May 26, 2023 6:58 am    Post subject: [SOLVED] Update openssh pre-merge checks fail Reply with quote

Hi, i have a problem with updating openssh. I had the use-flag "X509" active. Openssh does not support this use-flag anymore. So i removed it.
But i still can`t update. Any ideas? What am i doing wrong?

Code:
emerge -av openssh

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 13.27 s.

[ebuild     U  ] net-misc/openssh-9.3_p1-r1::gentoo [9.2_p1-r2::gentoo] USE="X pam pie ssl -audit (-debug) -kerberos -ldns -libedit -livecd -security-key (-selinux) -static -test -verify-sig -xmss (-X509%*) (-hpn%) (-sctp%)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

!!! The following installed packages are masked:
- app-portage/layman-2.4.3::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# David Seifert <soap@gentoo.org> (2023-05-19)
# Abandoned, replaced by 'eselect repository', tons of open bugs.
# Removal on 2023-08-17. Bug #761199.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


Would you like to merge these packages? [Yes/No] Yes

>>> Verifying ebuild manifests

>>> Running pre-merge checks for net-misc/openssh-9.3_p1-r1
 * net-misc/openssh does not support USE='X509' 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[-X509] without OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes
 *
 * Call stack:
 *                  ebuild.sh, line 136:  Called pkg_pretend
 *   openssh-9.3_p1-r1.ebuild, line 118:  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/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/die.env'.
 * 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.3p1'


Last edited by Kyle`` on Fri May 26, 2023 6:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1006
Location: Somewhere in Denmark

PostPosted: Fri May 26, 2023 8:09 am    Post subject: Reply with quote

Quote:
* 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[-X509] without OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes


ie. I'd try
Code:
OPENSSH_EOL_USE_FLAGS_I_KNOW_WHAT_I_AM_DOING=yes emerge -av openssh
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Fri May 26, 2023 2:55 pm    Post subject: Reply with quote

As I read the ebuild, this is triggered because your currently installed version has USE=X509 enabled. You need to bypass the sanity check, or reinstall the old version without X509 (and verify it works!), then upgrade.
Back to top
View user's profile Send private message
Kyle``
n00b
n00b


Joined: 01 Oct 2004
Posts: 12
Location: Germany - BW

PostPosted: Fri May 26, 2023 4:24 pm    Post subject: Reply with quote

Thank you both!

I thought when i remove the use-flag then i don`t need the bypass-option.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Fri May 26, 2023 4:37 pm    Post subject: Reply with quote

In most cases, that would be true. However, in this case, the author specifically checked the flag on the older version, probably because the use mask forcibly disabled it for the new version, and the author worried about people who had enabled it and relied on it breaking their systems by upgrading without this reminder.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum