Skip to contentSkip to conversation

meson: Bump meson version to 1.3.0

PATCH In review Kamil Konieczny 1 participant 3 messages Sep 24 – Oct 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 meson: Bump meson version to 1.3.0

Bump meson version to 1.3.0 and update minimal version used in fedora Dokerfile. Also, update some old deprecated functions with a new ones.

v2: update fedora dockerfile (Kamil)

Cc Andrzej Hajda <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Mark Yacoub <[email protected]>
Cc Ryszard Knop <[email protected]>
Cc Thadeu Lima de Souza Cascardo <[email protected]>
Cc Vitaly Prosyak <[email protected]>
---
 Dockerfile.build-fedora     | 2 +-
 data/meson.build            | 4 +++-
 lib/meson.build             | 4 ++--
 meson.build                 | 2 +-
 runner/testdata/meson.build | 7 +++----
 5 files changed, 10 insertions(+), 9 deletions(-)
Dockerfile.build-fedora +1 -1
index a65f1030d..26d069d55 100644
@@ -46,6 +46,6 @@ RUN dnf install -y findutils
 
 # Meson version switching shenanigans
 RUN dnf install -y python3-pip
-RUN curl -o "/usr/src/#1" "https://files.pythonhosted.org/packages/43/9a/e0bcec70d290986c6265d32e0a2d16ace7ef38f58aa5a65308967129d094/{meson-0.52.1.tar.gz}"
+RUN curl -o "/usr/src/#1" "https://files.pythonhosted.org/packages/aa/2c/75bcc2722460ef94a9eb3231f6b3466d04a1766ddcd7d660a11ee1cee53a/{meson-1.3.0.tar.gz}"
 
 RUN dnf clean all
data/meson.build +3 -1
index 9490d20ac..8898c27e3 100644
@@ -1,3 +1,5 @@
+fs = import('fs')
+
 image_files = [
   '1080p-left.png',
   '1080p-right.png',
@@ -5,7 +7,7 @@ image_files = [
 ]
 
 foreach img : image_files
-      configure_file(output:img, input:img, copy:true)
+	fs.copyfile(img)
 endforeach
 
 install_data(sources : image_files, install_dir : datadir)
lib/meson.build +2 -2
index f3e6d9669..66558d5d3 100644
@@ -218,7 +218,7 @@ if libdrm_amdgpu.found()
 	if llvm_mc_prog.found()
 		add_project_arguments('-DAMDGPU_LLVM_ENABLED', language : ['c'])
 		lib_sources += ['amdgpu/shaders/amd_llvm_asm.c']
-		message('Found ' + llvm_mc_prog.path() + ' enabling runtime AMDGPU ISA assembly')
+		message('Found ' + llvm_mc_prog.full_path() + ' enabling runtime AMDGPU ISA assembly')
 	else
 		lib_sources += ['amdgpu/shaders/amd_llvm_asm_stub.c']
 		message('llvm-mc not found: using stub implementation (tests will skip)')
@@ -295,7 +295,7 @@ foreach f: iga64_assembly_sources
 	iga64_codes_targets += custom_target(name,
 		input: [ f + '.gen.iga64_codes.c', libiga64_asms.extract_objects(f) ],
 		output: name,
-		depend_files: [ 'iga64_macros.h', generate_iga64_codes.path() ],
+		depend_files: [ 'iga64_macros.h', generate_iga64_codes.full_path() ],
 		command: [ 'env', 'IGT_SRCDIR=@SOURCE_ROOT@', generate_iga64_codes, '-o', '@OUTPUT@', '-i', '@INPUT0@', '@INPUT1@' ],
 		console: true,
 	)
meson.build +1 -1
index 980fb6421..b05385795 100644
@@ -7,7 +7,7 @@ project('igt-gpu-tools', 'c',
           'buildtype=debugoptimized',
         ],
 	license : 'MIT',
-	meson_version : '>=0.52.1')
+	meson_version : '>=1.3.0')
 
 if get_option('b_ndebug') != 'false'
 	error('Building without -Db_ndebug=false is not supported')
runner/testdata/meson.build +3 -4
index 1f8225918..574067cdb 100644
@@ -1,3 +1,4 @@
+fs = import('fs')
 
 testdata_progs = [ 'successtest',
 		   'no-subtests',
@@ -17,10 +18,8 @@ foreach prog : testdata_progs
 					   install : false)
 endforeach
 
-configure_file(input : 'test-blacklist.txt',
-	       output : 'test-blacklist.txt', copy : true)
-configure_file(input : 'test-blacklist2.txt',
-	       output : 'test-blacklist2.txt', copy : true)
+fs.copyfile('test-blacklist.txt')
+fs.copyfile('test-blacklist2.txt')
 
 testdata_list = custom_target('testdata_testlist',
 			      output : 'test-list.txt',
Signature · 1 line
2.55.0
#1 lore raw

Hi all,

Quoted 6 lines · Kamil Konieczny

Bump meson version to 1.3.0 and update minimal version used in fedora Dokerfile. Also, update some old deprecated functions with a new ones.

v2: update fedora dockerfile (Kamil)

Quoted 8 lines
Cc Andrzej Hajda <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Mark Yacoub <[email protected]>
Cc Ryszard Knop <[email protected]>
Cc Thadeu Lima de Souza Cascardo <[email protected]>
Cc Vitaly Prosyak <[email protected]>

I will postpone this to next year as on debian bookworm there is older meson 1.0.1. I will return to this after bumping up debian to trixie. Sorry for noise.

Regards,
Kamil

Quoted 99 lines
---
 Dockerfile.build-fedora     | 2 +-
 data/meson.build            | 4 +++-
 lib/meson.build             | 4 ++--
 meson.build                 | 2 +-
 runner/testdata/meson.build | 7 +++----
 5 files changed, 10 insertions(+), 9 deletions(-)
Dockerfile.build-fedora +1 -1
index a65f1030d..26d069d55 100644
@@ -46,6 +46,6 @@ RUN dnf install -y findutils
 
 # Meson version switching shenanigans
 RUN dnf install -y python3-pip
-RUN curl -o "/usr/src/#1" "https://files.pythonhosted.org/packages/43/9a/e0bcec70d290986c6265d32e0a2d16ace7ef38f58aa5a65308967129d094/{meson-0.52.1.tar.gz}"
+RUN curl -o "/usr/src/#1" "https://files.pythonhosted.org/packages/aa/2c/75bcc2722460ef94a9eb3231f6b3466d04a1766ddcd7d660a11ee1cee53a/{meson-1.3.0.tar.gz}"
 
 RUN dnf clean all
data/meson.build +3 -1
index 9490d20ac..8898c27e3 100644
@@ -1,3 +1,5 @@
+fs = import('fs')
+
 image_files = [
   '1080p-left.png',
   '1080p-right.png',
@@ -5,7 +7,7 @@ image_files = [
 ]
 
 foreach img : image_files
-      configure_file(output:img, input:img, copy:true)
+	fs.copyfile(img)
 endforeach
 
 install_data(sources : image_files, install_dir : datadir)
lib/meson.build +2 -2
index f3e6d9669..66558d5d3 100644
@@ -218,7 +218,7 @@ if libdrm_amdgpu.found()
 	if llvm_mc_prog.found()
 		add_project_arguments('-DAMDGPU_LLVM_ENABLED', language : ['c'])
 		lib_sources += ['amdgpu/shaders/amd_llvm_asm.c']
-		message('Found ' + llvm_mc_prog.path() + ' enabling runtime AMDGPU ISA assembly')
+		message('Found ' + llvm_mc_prog.full_path() + ' enabling runtime AMDGPU ISA assembly')
 	else
 		lib_sources += ['amdgpu/shaders/amd_llvm_asm_stub.c']
 		message('llvm-mc not found: using stub implementation (tests will skip)')
@@ -295,7 +295,7 @@ foreach f: iga64_assembly_sources
 	iga64_codes_targets += custom_target(name,
 		input: [ f + '.gen.iga64_codes.c', libiga64_asms.extract_objects(f) ],
 		output: name,
-		depend_files: [ 'iga64_macros.h', generate_iga64_codes.path() ],
+		depend_files: [ 'iga64_macros.h', generate_iga64_codes.full_path() ],
 		command: [ 'env', 'IGT_SRCDIR=@SOURCE_ROOT@', generate_iga64_codes, '-o', '@OUTPUT@', '-i', '@INPUT0@', '@INPUT1@' ],
 		console: true,
 	)
meson.build +1 -1
index 980fb6421..b05385795 100644
@@ -7,7 +7,7 @@ project('igt-gpu-tools', 'c',
           'buildtype=debugoptimized',
         ],
 	license : 'MIT',
-	meson_version : '>=0.52.1')
+	meson_version : '>=1.3.0')
 
 if get_option('b_ndebug') != 'false'
 	error('Building without -Db_ndebug=false is not supported')
runner/testdata/meson.build +3 -4
index 1f8225918..574067cdb 100644
@@ -1,3 +1,4 @@
+fs = import('fs')
 
 testdata_progs = [ 'successtest',
 		   'no-subtests',
@@ -17,10 +18,8 @@ foreach prog : testdata_progs
 					   install : false)
 endforeach
 
-configure_file(input : 'test-blacklist.txt',
-	       output : 'test-blacklist.txt', copy : true)
-configure_file(input : 'test-blacklist2.txt',
-	       output : 'test-blacklist2.txt', copy : true)
+fs.copyfile('test-blacklist.txt')
+fs.copyfile('test-blacklist2.txt')
 
 testdata_list = custom_target('testdata_testlist',
 			      output : 'test-list.txt',
Signature · 1 line
2.55.0
#2 lore raw
In reply to Kamil Konieczny

Hi igt-dev,

Quoted 5 lines · Kamil Konieczny

Bump meson version to 1.3.0 and update minimal version used in fedora Dokerfile. Also, update some old deprecated functions with a new ones.

v2: update fedora dockerfile (Kamil)

I will postpone this after there will be debian container with trixie.

Regards,
Kamil

Quoted 108 lines
Cc Andrzej Hajda <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Mark Yacoub <[email protected]>
Cc Ryszard Knop <[email protected]>
Cc Thadeu Lima de Souza Cascardo <[email protected]>
Cc Vitaly Prosyak <[email protected]>
---
 Dockerfile.build-fedora     | 2 +-
 data/meson.build            | 4 +++-
 lib/meson.build             | 4 ++--
 meson.build                 | 2 +-
 runner/testdata/meson.build | 7 +++----
 5 files changed, 10 insertions(+), 9 deletions(-)
Dockerfile.build-fedora +1 -1
index a65f1030d..26d069d55 100644
@@ -46,6 +46,6 @@ RUN dnf install -y findutils
 
 # Meson version switching shenanigans
 RUN dnf install -y python3-pip
-RUN curl -o "/usr/src/#1" "https://files.pythonhosted.org/packages/43/9a/e0bcec70d290986c6265d32e0a2d16ace7ef38f58aa5a65308967129d094/{meson-0.52.1.tar.gz}"
+RUN curl -o "/usr/src/#1" "https://files.pythonhosted.org/packages/aa/2c/75bcc2722460ef94a9eb3231f6b3466d04a1766ddcd7d660a11ee1cee53a/{meson-1.3.0.tar.gz}"
 
 RUN dnf clean all
data/meson.build +3 -1
index 9490d20ac..8898c27e3 100644
@@ -1,3 +1,5 @@
+fs = import('fs')
+
 image_files = [
   '1080p-left.png',
   '1080p-right.png',
@@ -5,7 +7,7 @@ image_files = [
 ]
 
 foreach img : image_files
-      configure_file(output:img, input:img, copy:true)
+	fs.copyfile(img)
 endforeach
 
 install_data(sources : image_files, install_dir : datadir)
lib/meson.build +2 -2
index f3e6d9669..66558d5d3 100644
@@ -218,7 +218,7 @@ if libdrm_amdgpu.found()
 	if llvm_mc_prog.found()
 		add_project_arguments('-DAMDGPU_LLVM_ENABLED', language : ['c'])
 		lib_sources += ['amdgpu/shaders/amd_llvm_asm.c']
-		message('Found ' + llvm_mc_prog.path() + ' enabling runtime AMDGPU ISA assembly')
+		message('Found ' + llvm_mc_prog.full_path() + ' enabling runtime AMDGPU ISA assembly')
 	else
 		lib_sources += ['amdgpu/shaders/amd_llvm_asm_stub.c']
 		message('llvm-mc not found: using stub implementation (tests will skip)')
@@ -295,7 +295,7 @@ foreach f: iga64_assembly_sources
 	iga64_codes_targets += custom_target(name,
 		input: [ f + '.gen.iga64_codes.c', libiga64_asms.extract_objects(f) ],
 		output: name,
-		depend_files: [ 'iga64_macros.h', generate_iga64_codes.path() ],
+		depend_files: [ 'iga64_macros.h', generate_iga64_codes.full_path() ],
 		command: [ 'env', 'IGT_SRCDIR=@SOURCE_ROOT@', generate_iga64_codes, '-o', '@OUTPUT@', '-i', '@INPUT0@', '@INPUT1@' ],
 		console: true,
 	)
meson.build +1 -1
index 980fb6421..b05385795 100644
@@ -7,7 +7,7 @@ project('igt-gpu-tools', 'c',
           'buildtype=debugoptimized',
         ],
 	license : 'MIT',
-	meson_version : '>=0.52.1')
+	meson_version : '>=1.3.0')
 
 if get_option('b_ndebug') != 'false'
 	error('Building without -Db_ndebug=false is not supported')
runner/testdata/meson.build +3 -4
index 1f8225918..574067cdb 100644
@@ -1,3 +1,4 @@
+fs = import('fs')
 
 testdata_progs = [ 'successtest',
 		   'no-subtests',
@@ -17,10 +18,8 @@ foreach prog : testdata_progs
 					   install : false)
 endforeach
 
-configure_file(input : 'test-blacklist.txt',
-	       output : 'test-blacklist.txt', copy : true)
-configure_file(input : 'test-blacklist2.txt',
-	       output : 'test-blacklist2.txt', copy : true)
+fs.copyfile('test-blacklist.txt')
+fs.copyfile('test-blacklist2.txt')
 
 testdata_list = custom_target('testdata_testlist',
 			      output : 'test-list.txt',
Signature · 1 line
2.55.0