meson icon indicating copy to clipboard operation
meson copied to clipboard

Allow overriding programs from the command line

Open tristan957 opened this issue 2 years ago • 9 comments

People coming from autotools are used to having easy access for overriding programs. This should ease that transition.

tristan957 avatar Dec 12 '23 01:12 tristan957

cc @anarazel. This could help us to remove the options in the Postgres build.

tristan957 avatar Dec 12 '23 01:12 tristan957

I plan on adding a test in the future if people seem to think that this is a good approach. @jpakkane had previously said he was open to such a feature, but people have different opinions as time change.

tristan957 avatar Dec 12 '23 01:12 tristan957

Hmm not sure how to fix the CI at the moment. I must be missing something with Coredata. Any help is appreciated!

tristan957 avatar Dec 12 '23 01:12 tristan957

@tristan957 what about instead writing a web page in the site which do a comparison of usages between meson and autotools ? I don't think it's a good idea to add several ways to do the same things

I've been using the autotools during more than 10 years. When I've heard about meson, i've used it quite easily. There are examples, community is responsive. It should be sufficient

vtorri avatar Dec 12 '23 05:12 vtorri

I don't think it's a good idea to add several ways to do the same things

But we already have several ways to do everything else. Every command-line -D option to meson can be specified in a machine file, for example. I don't really have a problem adding "several" ways to do the opposite by taking a machine file setting and allowing it to be specified on the command line.

Furthermore, it's a frequent pain point of users, to have to create a whole new file just to pass one tiny little tweak to meson.

eli-schwartz avatar Dec 12 '23 06:12 eli-schwartz

@tristan957 what about instead writing a web page in the site which do a comparison of usages between meson and autotools ? I don't think it's a good idea to add several ways to do the same things

I've been using the autotools during more than 10 years. When I've heard about meson, i've used it quite easily. There are examples, community is responsive. It should be sufficient

I've tried advocating for machine files in Postgres for this purpose, but it was said it was a worse solution than this, so here we are, me proposing a solution which makes the transition from autotools to meson a little bit easier.

tristan957 avatar Dec 12 '23 06:12 tristan957

The codeql error is rather interesting.

tristan957 avatar Feb 23 '24 22:02 tristan957

I have conflicting feelings about this MR, since we already have machine files for exactly this use case. On one hand I can see how it might be nice under some circumtances but OTOH having more than one way of doing something has a tendency to come back and bite you in the ass.

jpakkane avatar Feb 26 '24 20:02 jpakkane

Well that is unfortunate since you initially expressed interest in it. All I can tell you is that machine files are not satisfactory for the powers that be in Postgres.

tristan957 avatar Feb 27 '24 05:02 tristan957