Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ancient RHL 6.x config in RPM spec. #451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FabioPedretti
Copy link
Contributor

Note: please have a detailed look at this, since I am actually not very familiar building packages for RH. Anyway I tested it on RHEL 6 (where this config was applied) and it looks everything is OK.

It looks like build6x options were intended for RHL 6.x (the Red Hat distro predating Fedora, not RHEL), but were then applied to RHEL.

Completely remove support for this ancient configuration.

Successfully built, installed and run on RHEL 6. This also remove a build warning about deprecation of PreReq.

It looks like build6x options were intended for RHL 6.x
(the Red Hat distro predating Fedora, not RHEL), but were
then applied to RHEL.

Completely remove support for this ancient configuration.

Successfully built, installed and run on RHEL 6. This also
remove a build warning about deprecation of PreReq.
@FabioPedretti
Copy link
Contributor Author

FabioPedretti commented Oct 16, 2023

Actually the original build6x option for RHL 6.x was introduced 20+ years ago: cfe4a89

While it was later wrongly reused for RHEL 6.x in 87346f1

@FabioPedretti
Copy link
Contributor Author

Also note that part of (actually, the 2 ".old" files) cfe4a89 was already removed in d83ec9e, so the original intent to support such old distros was already broken since over 2 years.

@nkadel can you review this?

@nkadel
Copy link
Contributor

nkadel commented Oct 17, 2023

RHEL 6 systems that get this RPM installed will ignore their old hostkeys in "/etc/" and generate new ones in "/etc/ssh/". This is..... begging for an unwelcome surprise as clients find mis-matched hostkeys in their $HOME/.ssh/known_hosts file and refuse to connect. I'm tempted to say "it's RHEL 6, who cares?", but banks and hospitals tend to run critical systems far, far beyond the expiration date written on the cereal box, sometimes for really good reasons to access old data with unique software. The current location is baked into ansible, chef, puppet, and systemd-init, and waagent. I would remain consistent with RHEL 6's published layout and not touch any of this for another few years.

@FabioPedretti
Copy link
Contributor Author

Thanks for the quick reply @nkadel, but it looks like the original build6x behaviour was intended for RHL 6.x (released in 1999), while your commit 87346f1 changed this behaviour and enabled it for RHEL 6.x (released in 2010), right? Was this done by purpose, or it's an error?

Anyway, the RHL behaviour was already broken with d83ec9e removing the old PAM config and init script.

@djmdjm
Copy link
Contributor

djmdjm commented Apr 30, 2024

Maybe @Jakuje could comment here?

@Jakuje
Copy link
Contributor

Jakuje commented Apr 30, 2024

I would say go ahead and remove them. I do not think anybody will build openssh from source on RHEL6 (or RHL 6) from upstream repo/tarball these days with the upstream spec file. If they run RHEL6 (hope not RHL6), they have contact for somebody to maintain the packages for them and I hope that somebody will not blindly pick up spec file from upstream when there is perfectly good working spec file in dist git.

@FabioPedretti
Copy link
Contributor Author

Hi, note that the patch is not removing RHEL 6 (released in 2010), but just RHL6 (released in 1999).

The patch was intended to fix building on RHEL 6, which I still used (IIRC the patch just fixed a warning on RHEL 6).

@sincerelysaucy
Copy link

If it's going to stick around, the could should be labeled for RHEL 6, not "RHL 6". No on, and I mean no one referred to Red Hat 6 as RHL 6. And I helped companies update about 20,000 hosts form Red Hat 5 to Red Hat 6.

@FabioPedretti
Copy link
Contributor Author

No on, and I mean no one referred to Red Hat 6 as RHL 6

The openssh.spec file is using RHL 6.x for referring to the 1999 Red Hat Linux 6:

# Is this a build for RHL 6.x or earlier?
...
# If this is RHL 6.x, the default configuration has sysconfdir in /usr/etc.

I just kept it in the commit message.

@nkadel
Copy link
Contributor

nkadel commented Jul 8, 2024

No one in the field called that release "Red Hat Linux 6". They referred to it as "Red Hat 6". I published updates for OpenSSH for that operating system for about 20,000 corporate servers back in 2001, so I can vouch from personal experience

@FabioPedretti
Copy link
Contributor Author

What do you propose to change, exactly? I could eventually update the commit message...

@nkadel
Copy link
Contributor

nkadel commented Jul 8, 2024

In a perfect world, I would toss out contrib/redhat and add a new contrib/rhel , and update it appropriately for RHEL rather than Red Hat release use. There are other issues with the files there, such as an "sshd.init" rather than a systemd compatible "sshd.service". The modern SRPM for RHEL has 5 distinct *.service files, there is a whole lot of material to bring in. And it also has 59 patch files applied on top of OpenSSH p1, it's kind of scary.

@FabioPedretti
Copy link
Contributor Author

I sent this patch (as well as others I sent in the past that were merged) because I am still maintaining some RHEL 6 servers, and with these patches I was/am able to successfully build/upgrade/run openssh on them (just for the security fixes, as I just did it with 9.8p1).

Actually it looks like I am the only one building rpm with the included spec file on RHEL 6 (without my previous patches building was broken).

I think your proposal is out of scope for my modest PR (which is a minor fix to the spec file), I am not planning to do any other evolution work on this (and actually I hopefully should get rid of last RHEL 6 servers soon...).

@nkadel
Copy link
Contributor

nkadel commented Jul 8, 2024

I suspect you're right about being the only one building for RHEL 6. Yeah, take the patch and let's start a ticket to update and relabel these for RHEL use, especially for systemd use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants