Skip to content

Conversation

@thesamesam
Copy link
Contributor

@thesamesam thesamesam commented Feb 8, 2022

Upstreaming the patches we've been carrying in Gentoo:

  • Fix bashism in configure
  • Make NUMA support optional
  • Use pkg-config to find ncurses (fix build with split tinfo)

configures have a shebang of #!/bin/sh so need to work with a POSIX-compliant
shell; let's use = instead of == which will have the same effect on both Bash
and said shells (like dash).

Signed-off-by: Sam James <sam@gentoo.org>
@thesamesam thesamesam changed the title configure: fix bashism Miscellaneous build system patches Feb 8, 2022
@salcock
Copy link
Contributor

salcock commented Feb 8, 2022

Everything looks great to me -- thanks for contributing these changes back.

Just waiting on confirmation that my concerns about that comment are legit, then I'll be happy to accept this PR.

@thesamesam
Copy link
Contributor Author

(Will check tomorrow, thank you!)

This avoids an 'automagic dependency' [0] on NUMA. This is helpful for
downstreams to ensure we don't miss dependencies or when we may not
want to enable support for a feature even though a dependency is enabled.

Gentoo has shipped this patch for quite some time.

[0] https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies

Signed-off-by: Sam James <sam@gentoo.org>
ncurses can be built in a variety of configurations, but the motivating case
for Gentoo was "split tinfo" where libtinfo is no longer included within
libncurses.

Use pkg-config to find where ncurses is installed and the required libraries
needed to link against it (which will include -ltinfo if required).

We've been shipping this patch in Gentoo for quite some time.

Signed-off-by: Sam James <sam@gentoo.org>
@thesamesam thesamesam requested a review from salcock February 23, 2022 04:30
@salcock
Copy link
Contributor

salcock commented Feb 23, 2022

This all looks good to me -- I've merged this PR into our develop branch, which will be the basis of our next release.

Thanks again!

@salcock salcock closed this Feb 23, 2022
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.

2 participants