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

Updating bash completion build file #16422

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

bwatkinson
Copy link
Contributor

@bwatkinson bwatkinson commented Aug 7, 2024

Commit 46ebd0a updated the build system to make symbolic link for zpool. However, this commit did not update the automake file to also add the symbolic link to the CLEANFILES variable. This is necessary so the link is removed when running make clean/distclean.

Updated build system to fix error when trying to rebuild the source after running make clean/distclean.

Motivation and Context

Fixes issue with build system.

Description

Added the symbolic link created to the CLEANFILES variable in the automake file. Before this patch the following error would be issued after running make clean/distclean and then trying to rebuild the ZFS source:
ln -s zfs contrib/bash_completion.d/zpool CCLD tests/zfs-tests/tests/functional/vdev_disk/page_alignment ln: failed to create symbolic link 'contrib/bash_completion.d/zpool': File exists make[2]: *** [Makefile:14110: contrib/bash_completion.d/zpool] Error 1

How Has This Been Tested?

Built ZFS, ran make clean, and rebuilt the source code. Did the same thing with make distclean. With this patch, the build error is no longer reported when rebuilding the source code.

Distro: Centos Stream 8
Kernel: 4.18.0-408.el8.x86_64

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Commit 46ebd0a updated the build system to make symbolic link for zpool.
However, this commit did not update the automake file to also add the
symbolic link to the CLEANFILES variable. This is necessary so the link
is removed when running make clean/distclean.

Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Aug 8, 2024
@behlendorf behlendorf merged commit f87fe67 into openzfs:master Aug 8, 2024
19 of 24 checks passed
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Sep 4, 2024
Commit 46ebd0a updated the build system to make symbolic link for zpool.
However, this commit did not update the automake file to also add the
symbolic link to the CLEANFILES variable. This is necessary so the link
is removed when running make clean/distclean.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes openzfs#16422
ptr1337 pushed a commit to CachyOS/zfs that referenced this pull request Nov 14, 2024
Commit 46ebd0a updated the build system to make symbolic link for zpool.
However, this commit did not update the automake file to also add the
symbolic link to the CLEANFILES variable. This is necessary so the link
is removed when running make clean/distclean.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes openzfs#16422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants