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

srpm build failing with bash completion location complaints #15355

Closed
adamdmoss opened this issue Oct 4, 2023 · 2 comments
Closed

srpm build failing with bash completion location complaints #15355

adamdmoss opened this issue Oct 4, 2023 · 2 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@adamdmoss
Copy link
Contributor

System information

Type Version/Name
Distribution Name Ubuntu 22.04.3 LTS
Distribution Version Ubuntu 22.04.3 LTS
Kernel Version 6.5.0-1003-oem
Architecture x64
OpenZFS Version git master

Describe the problem you're observing

Since approximately eb955f6 a --with-config=srpm build fails for me like so:

+ /usr/lib/rpm/brp-remove-la-files
Processing files: zfs-2.2.99-308_g621fe1260.x86_64
error: File not found: /tmp/zfs-build-adam-KVjzreNT/BUILDROOT/zfs-2.2.99-308_g621fe1260.x86_64/etc/bash_completion.d/zfs


RPM build errors:
    File not found: /tmp/zfs-build-adam-KVjzreNT/BUILDROOT/zfs-2.2.99-308_g621fe1260.x86_64/etc/bash_completion.d/zfs
make[1]: *** [Makefile:14265: rpm-common] Error 1

Describe how to reproduce the problem

A have a stabby workaround PR at #15354

Include any warning/errors/backtraces from the system logs

@siv0
Copy link
Contributor

siv0 commented Oct 6, 2023

Thanks for the report! I managed to reproduce it.

Issue was not noticed because I did not test the patch with building rpms on a debian-derived distro (which is also what make deb is doing).

I'll try to come up with a fix.

@siv0
Copy link
Contributor

siv0 commented Oct 6, 2023

opened #15365

behlendorf pushed a commit to behlendorf/zfs that referenced this issue Oct 6, 2023
The recent patch to change the bash completion install location based
on the Distribution, ignored that it should still be possible to
create RPMs on Debian derived systems. Additionally `make deb` itself
creates RPMs and converts them via `alien`.

This patch adds the bashcompletiondir variable to the rpm defines and
uses this for the location, where to get the bash completion file.

It still changes the location on Debian/Ubuntu systems in the final
packages from /etc/bash_completion.d to
/usr/share/bash-completion/completions

Fixes: e69ade3

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Stoiko Ivanov <[email protected]>
Closes openzfs#15355
Closes openzfs#15365
behlendorf pushed a commit that referenced this issue Oct 7, 2023
The recent patch to change the bash completion install location based
on the Distribution, ignored that it should still be possible to
create RPMs on Debian derived systems. Additionally `make deb` itself
creates RPMs and converts them via `alien`.

This patch adds the bashcompletiondir variable to the rpm defines and
uses this for the location, where to get the bash completion file.

It still changes the location on Debian/Ubuntu systems in the final
packages from /etc/bash_completion.d to
/usr/share/bash-completion/completions

Fixes: e69ade3

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Stoiko Ivanov <[email protected]>
Closes #15355
Closes #15365
lundman pushed a commit to openzfsonwindows/openzfs that referenced this issue Dec 12, 2023
The recent patch to change the bash completion install location based
on the Distribution, ignored that it should still be possible to
create RPMs on Debian derived systems. Additionally `make deb` itself
creates RPMs and converts them via `alien`.

This patch adds the bashcompletiondir variable to the rpm defines and
uses this for the location, where to get the bash completion file.

It still changes the location on Debian/Ubuntu systems in the final
packages from /etc/bash_completion.d to
/usr/share/bash-completion/completions

Fixes: e69ade3

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Stoiko Ivanov <[email protected]>
Closes openzfs#15355
Closes openzfs#15365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

2 participants