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,23 @@
project('mainproj', 'c',
default_options : ['wrap_mode=nodownload'],
)
if not find_program('patch', required : false).found() and not find_program('git', required : false).found()
error('MESON_SKIP_TEST: patch/git not found.')
endif
subproject('zlib')
foo = subproject('foo')
bar = subproject('bar')
libfoo = foo.get_variable('libfoo')
libbar = bar.get_variable('libbar')
executable('grabprog', files('src/subprojects/prog.c'))
executable('grabprog2', files('src/subprojects/foo/prog2.c'))
subdir('src')
subproject('patchdir')
exe = subproject('patchfile').get_variable('foo_exe')
test('test_foo', exe)
@@ -0,0 +1,6 @@
executable('grabprog3', files('subprojects/prog.c'))
executable('grabprog4', files('subprojects/foo/prog2.c'))
texe = executable('testexe', files('test.c'), link_with: [libfoo, libbar])
test('t1', texe)
@@ -0,0 +1,7 @@
#include<stdio.h>
int main(void) {
printf("Do not have a file layout like this in your own projects.\n");
printf("This is only to test that this works.\n");
return 0;
}
@@ -0,0 +1,7 @@
#include<stdio.h>
int main(void) {
printf("Do not have a file layout like this in your own projects.\n");
printf("This is only to test that this works.\n");
return 0;
}
@@ -0,0 +1,9 @@
#include <stdio.h>
int bar_dummy_func(void);
int dummy_func(void);
int main(void) {
printf("Hello world %d\n", bar_dummy_func() + dummy_func());
return 0;
}
@@ -0,0 +1,3 @@
/foo-1.0
/bar-1.0
/foo-1.0-patchdir
@@ -0,0 +1,8 @@
[wrap-file]
directory = bar-1.0
lead_directory_missing = true
source_filename = bar-1.0.tar.xz
source_hash = f0f61948530dc0d33e3028cd71a9f8ee869f6b3665960d8f41d715cf4aed6467
patch_filename = bar-1.0-patch.tar.xz
@@ -0,0 +1,11 @@
[wrap-file]
directory = foo-1.0
source_url = http://something.invalid
source_filename = foo-1.0.tar.xz
source_hash = 9ed8f67d75e43d3be161efb6eddf30dd01995a958ca83951ea64234bac8908c1
lead_directory_missing = true
patch_url = https://something.invalid/patch
patch_filename = foo-1.0-patch.tar.xz
patch_hash = d0ddc5e60fdb27d808552f5ac8d0bb603ea2cba306538b4427b985535b26c9c5
@@ -0,0 +1,2 @@
project('static lib patchdir', 'c')
libfoo = static_library('foo', 'foo.c')
@@ -0,0 +1,33 @@
From b79f6cc4a096f6c2888f73b947b652491885896a Mon Sep 17 00:00:00 2001
From: Xavier Claessens <xavier.claessens@collabora.com>
Date: Fri, 30 Nov 2018 14:13:47 -0500
Subject: [PATCH] Change foo to executable
---
foo.c | 4 ++++
meson.build | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/foo.c b/foo.c
index 54f9119..468f033 100644
--- a/foo.c
+++ b/foo.c
@@ -1,3 +1,7 @@
int dummy_func(void) {
return 44;
}
+
+int main(void) {
+ return dummy_func() == 44 ? 0 : 1;
+}
diff --git a/meson.build b/meson.build
index 318e81d..4a281d9 100644
--- a/meson.build
+++ b/meson.build
@@ -1,2 +1,2 @@
project('static lib patchdir', 'c')
-libfoo = static_library('foo', 'foo.c')
+foo_exe = executable('foo', 'foo.c')
--
2.17.1
@@ -0,0 +1,21 @@
From 7001dcc738e5ae7dfa8af20ed582b9a985804f72 Mon Sep 17 00:00:00 2001
From: Xavier Claessens <xavier.claessens@collabora.com>
Date: Fri, 30 Nov 2018 10:15:33 -0500
Subject: [PATCH 1/2] Change return value to 43
---
foo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/foo.c b/foo.c
index 019f2ba..e4577b8 100644
--- a/foo.c
+++ b/foo.c
@@ -1,3 +1,3 @@
int dummy_func(void) {
- return 42;
+ return 43;
}
--
2.17.1
@@ -0,0 +1,21 @@
From c2da2e490b09f2e251c7f4ef7c1240acee215fec Mon Sep 17 00:00:00 2001
From: Xavier Claessens <xavier.claessens@collabora.com>
Date: Fri, 30 Nov 2018 10:15:47 -0500
Subject: [PATCH 2/2] Change return value to 44
---
foo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/foo.c b/foo.c
index e4577b8..54f9119 100644
--- a/foo.c
+++ b/foo.c
@@ -1,3 +1,3 @@
int dummy_func(void) {
- return 43;
+ return 44;
}
--
2.17.1
@@ -0,0 +1,9 @@
[wrap-file]
directory = foo-1.0-patchdir
source_url = http://something.invalid
source_filename = foo-1.0.tar.xz
source_hash = 9ed8f67d75e43d3be161efb6eddf30dd01995a958ca83951ea64234bac8908c1
lead_directory_missing = true
patch_directory = foo-1.0
@@ -0,0 +1,14 @@
[wrap-file]
directory = foo-1.0-patchfile
source_url = http://something.invalid
source_filename = foo-1.0.tar.xz
source_hash = 9ed8f67d75e43d3be161efb6eddf30dd01995a958ca83951ea64234bac8908c1
lead_directory_missing = true
patch_directory = foo-1.0
diff_files =
patchfile/0001-Change-return-value-to-43.patch,
patchfile/0002-Change-return-value-to-44.patch,
patchfile/0001-Change-foo-to-executable.patch
@@ -0,0 +1,3 @@
int dummy_func(void) {
return 42;
}
@@ -0,0 +1,2 @@
project('shared lib', 'c')
library('foo', 'foo.c')
@@ -0,0 +1,10 @@
[wrap-file]
directory = zlib-1.2.8
source_url = http://zlib.net/fossils/zlib-1.2.8.tar.gz
source_filename = zlib-1.2.8.tar.gz
source_hash = 36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d
patch_url = https://wrapdb.mesonbuild.com/v1/projects/zlib/1.2.8/8/get_zip
patch_filename = zlib-1.2.8-8-wrap.zip
patch_hash = 17c52a0e0c59ce926d3959005d5cd8178c6c7e2c9a4a1304279a8320c955ac60