fix: noconfirm auto-selects first AUR match

This commit is contained in:
2026-05-08 11:01:02 +01:00
parent d39cdc3fd9
commit 153cca6132
8056 changed files with 1983098 additions and 779 deletions
@@ -0,0 +1,6 @@
#ifndef FUNC_H__
#define FUNC_H__
int func(void);
#endif
@@ -0,0 +1,32 @@
project('include dir test', 'c')
inc = include_directories('include')
subdir('src')
errormsg = '''Tried to form an absolute path to a dir in the source tree.
You should not do that but use relative paths instead, for
directories that are part of your project.
To get include path to any directory relative to the current dir do
incdir = include_directories(dirname)
After this incdir will contain both the current source dir as well as the
corresponding build dir. It can then be used in any subdirectory and
Meson will take care of all the busywork to make paths work.
Dirname can even be '.' to mark the current directory. Though you should
remember that the current source and build directories are always
put in the include directories by default so you only need to do
include_directories('.') if you intend to use the result in a
different subdirectory.
Note that this error message can also be triggered by
external dependencies being installed within your source
tree - it's not recommended to do this.
'''
testcase expect_error(errormsg)
include_directories(meson.current_source_dir() / 'include')
endtestcase
# Test for issue #12217
include_directories(meson.current_source_dir() + 'xyz')
@@ -0,0 +1,5 @@
#include "func.h"
int func(void) {
return 0;
}
@@ -0,0 +1,5 @@
exe = executable('prog', 'prog.c', 'func.c', include_directories : inc)
test('inc test', exe)
exe2 = executable('prog2', 'prog.c', 'func.c', include_directories : [['../include']])
test('inc test 2', exe2)
@@ -0,0 +1,5 @@
#include "func.h"
int main(void) {
return func();
}