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

build: Drop ssh manifest.json for pybridge install #19435

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

martinpitt
Copy link
Member

Move the ssh manifest out of pkg/; there is nothing to be esbuilt or watched, it's just a single configuration file for the cockpit-ssh program.

We also don't need it with the Python bridge, as that handles remote hosts internally. Direct remote logins from the login page call cockpit-ssh directly, not via the manifest. So conditionalize its installation on the C bridge.

@martinpitt martinpitt force-pushed the ssh-manifest branch 2 times, most recently from b003216 to 8322a2c Compare October 5, 2023 04:21
Move the ssh manifest out of pkg/; there is nothing to be esbuilt or
watched, it's just a single configuration file for the cockpit-ssh
program.

We also don't need it with the Python bridge, as that handles remote
hosts internally. Direct remote logins from the login page call
cockpit-ssh directly, not via the manifest. So conditionalize its
installation on the C bridge.
@@ -273,7 +275,7 @@ find %{buildroot}%{_datadir}/cockpit/static -type f >> static.list

# when not building basic packages, remove their files
%if 0%{?build_basic} == 0
for pkg in base1 branding motd kdump networkmanager selinux shell sosreport ssh static systemd users metrics; do
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR, as it took me a while to realize: This can be dropped without further messing around: build_basic=0 builds with --disable-ssh, and src/ssh/Makefile.am now only installs the manifest if cockpit-ssh is enabled.

@martinpitt martinpitt marked this pull request as ready for review October 5, 2023 05:57
Copy link
Member

@allisonkarlitskaya allisonkarlitskaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine to me, thanks :)

@allisonkarlitskaya allisonkarlitskaya merged commit 75c8b25 into cockpit-project:main Oct 5, 2023
98 checks passed
@martinpitt martinpitt deleted the ssh-manifest branch October 5, 2023 08:34
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.

2 participants