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

Set %_sharedstatedir to %{_var}/lib #2743

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

ffesti
Copy link
Contributor

@ffesti ffesti commented Nov 2, 2023

Configure traditionally sets it to %{_prefix}/com which RPM has followed so far. But this directory is not used anywhere and everybody changes the location to /var/lib. As we are only changing the macro and not the configure default this should be relatively save to do.

Resolves: #2092

@pmatilai
Copy link
Member

pmatilai commented Nov 2, 2023

Actually the reason why it's safe in the rpm realm is that it does change the default %configure parameter too. So with this change it's out of sync with ./configure, but then if somebody uses that and cares about this then they should be passing in an explicit --sharedstatedir anyhow. Because /usr/com truly doesn't exist anywhere outside autoconf 😄

Copy link
Member

@Conan-Kudo Conan-Kudo left a comment

Choose a reason for hiding this comment

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

I do this in debbuild, I didn't realize we never fixed it in RPM. 😅

@pmatilai
Copy link
Member

pmatilai commented Nov 3, 2023

If it's not obvious from my previous remark: I totally agree with the change itself, but get the rationale straight in the commit message.

Configure traditionally sets it to %{_prefix}/com which RPM has followed
so far. But this directory is not used anywhere and everybody changes
the location to /var/lib. This also changes the default for the %configure
macro. This is safe as everyone that cares about the the sharedstatedir
had to set it manually anyway.

Resolves: rpm-software-management#2092
@pmatilai pmatilai merged commit 7a65f68 into rpm-software-management:master Nov 8, 2023
@dmnks dmnks added the build Build-system related label Nov 28, 2023
@dmnks dmnks added the cleanup label Apr 4, 2024
@ffesti ffesti deleted the sharedstatedir branch October 25, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build-system related cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

%_sharedstatedir bad value in macros (%{_prefix}/com instead of /var/lib
4 participants