-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
base: master
Are you sure you want to change the base?
Conversation
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.
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. |
Thanks for the quick reply @nkadel, but it looks like the original Anyway, the RHL behaviour was already broken with d83ec9e removing the old PAM config and init script. |
Maybe @Jakuje could comment here? |
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. |
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). |
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. |
The openssh.spec file is using RHL 6.x for referring to the 1999 Red Hat Linux 6:
I just kept it in the commit message. |
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 |
What do you propose to change, exactly? I could eventually update the commit message... |
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. |
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...). |
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. |
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.