Skip to content

RemovePathPostfixes does not work as expected for directories #3775

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

Open
asahilina opened this issue May 28, 2025 · 0 comments
Open

RemovePathPostfixes does not work as expected for directories #3775

asahilina opened this issue May 28, 2025 · 0 comments

Comments

@asahilina
Copy link

Describe the bug
When RemovePathPostfixes is used for a directory name, the postfix is stripped from the directory's own entry in the resulting RPM, but not any files contained within:

RemovePathPostfixes: .suffix
%install
mkdir -p %{buildroot}/dir.suffix
touch %{buildroot}/foo.suffix
touch %{buildroot}/dir.suffix/bar

%files
/foo.suffix
/dir.suffix

Results in these RPM contents:

/dir
/dir.suffix/bar
/foo

Expected behavior
If a directory's postfix is stripped, it should also be stripped when packaging the files within.

Environment

  • OS / Distribution: Fedora 42
  • Version rpm-4.20.1
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

No branches or pull requests

1 participant