Skip to content

build: add uninstall-local for the install-data-local files - #4784

Merged
amarts merged 1 commit into
gluster:develfrom
ThalesBarretto:build-extras-uninstall-local
Sep 23, 2026
Merged

amarts merged 1 commit into
gluster:develfrom
ThalesBarretto:build-extras-uninstall-local

Conversation

@ThalesBarretto

Copy link
Copy Markdown
Contributor

Fixes: #4783

extras/Makefile.am installs the glusterd group profiles (and, with
--with-tmpfilesdir, the tmpfiles config) via a custom install-data-local
hook. Automake generates no uninstall rule for install-*-local, so
make uninstall left 7 files under $(GLUSTERD_WORKDIR)/groups/ behind.

Add an uninstall-local mirroring install-data-local (same
tmpfilesdir/WITH_SERVER conditions): rm -f the seven group files and the
tmpfiles conf, then rmdir the empty groups/. +15 lines,
extras/Makefile.am only; install is unchanged.

Build-proven A/B (Debian trixie): residual after make uninstall 7 → 0.
Build-system only; no runtime code touched.

extras/Makefile.am installs the glusterd group-profile files (and, with
--with-tmpfilesdir, the tmpfiles config) via a custom install-data-local
hook. Automake generates no uninstall rule for install-*-local hooks, so
"make uninstall" left 7 files under $(GLUSTERD_WORKDIR)/groups/ behind.
Add a matching uninstall-local (same tmpfilesdir/WITH_SERVER conditions);
build-verified install+uninstall now leaves 0 residual files (was 7).

Fixes: gluster#4783

Signed-off-by: Thales Antunes de Oliveira Barretto <thales.barretto.git@gmail.com>
@amarts
amarts merged commit bec200b into gluster:devel Sep 23, 2026
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.

build: make uninstall leaves the glusterd group-profile files behind

2 participants