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

build: configure: have --with-runstatedir overrule --runstatedir #139

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

wenningerk
Copy link

and log that there was runstatedir defined already

This is continuation of discussion at #136

echo "over runstatedir=${runstatedir}."
echo "Consider using --runstatedir=${sbd_runstatedir} directly or let it"
echo "go with the default."
runstatedir="${sbd_runstatedir}"])
Copy link

Choose a reason for hiding this comment

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

I believe this will only do anything if runstatedir is empty

I think we want something like

AS_IF([test x"${sbd_runstatedir}" != x""],
           [
               AS_IF([test x"${runstatedir}" != x""], [echo "...taking precedence..."])
               runstatedir="${sbd_runstatedir}"
           ])

Copy link
Author

Choose a reason for hiding this comment

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

Well it did work in my tests.
According to documentation AS_IF is more like if ... then ... else if ... then ... else ...

Copy link

Choose a reason for hiding this comment

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

Oh right, I misread the third block as else rather than else if

looks good to me

and log that there was runstatedir defined already
@wenningerk
Copy link
Author

@gao-yan

What do you think? Disables your logic I know ...

@wenningerk
Copy link
Author

test this please

@gao-yan
Copy link
Member

gao-yan commented Dec 10, 2021

@gao-yan

What do you think? Disables your logic I know ...

Looks good. Thanks!

@wenningerk
Copy link
Author

Then let's go with this till 2.70 has landed safely and we see how that behaves with the distros.
At least it creates some output somebody might stumble across some day to rethink the issue ;-)

@wenningerk wenningerk merged commit 92ff8d8 into ClusterLabs:master Dec 10, 2021
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.

3 participants