meson.build: Fix typo
PATCH v2 1/4 meson.build: Fix typo
From: Niclas Zeising <[email protected]>
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -248,7 +248,7 @@ if prog_xslt.found() endif with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.found() -# Used for tets +# Used for tests prog_bash = find_program('bash') config.set10('HAVE_VISIBILITY',
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 2/4 *symbols-check: use normal shell over bash
None of the tests are bash specific. Tested with bash, zsh, dash, mksh and ksh.
--- amdgpu/amdgpu-symbol-check | 2 +- etnaviv/etnaviv-symbol-check | 2 +- exynos/exynos-symbol-check | 2 +- freedreno/freedreno-symbol-check | 2 +- intel/intel-symbol-check | 2 +- libkms/kms-symbol-check | 2 +- nouveau/nouveau-symbol-check | 2 +- omap/omap-symbol-check | 2 +- radeon/radeon-symbol-check | 2 +- tegra/tegra-symbol-check | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)
amdgpu/amdgpu-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
etnaviv/etnaviv-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
exynos/exynos-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
freedreno/freedreno-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
intel/intel-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
libkms/kms-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
nouveau/nouveau-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
omap/omap-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
radeon/radeon-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
tegra/tegra-symbol-check +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 2/4] *symbols-check: use normal shell over bash
Quoted 4 lines · Emil Velikov
None of the tests are bash specific. Tested with bash, zsh, dash, mksh and ksh.
Signed-off-by Emil Velikov <[email protected]>
Quoted 114 lines
--- amdgpu/amdgpu-symbol-check | 2 +- etnaviv/etnaviv-symbol-check | 2 +- exynos/exynos-symbol-check | 2 +- freedreno/freedreno-symbol-check | 2 +- intel/intel-symbol-check | 2 +- libkms/kms-symbol-check | 2 +- nouveau/nouveau-symbol-check | 2 +- omap/omap-symbol-check | 2 +- radeon/radeon-symbol-check | 2 +- tegra/tegra-symbol-check | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)amdgpu/amdgpu-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -uetnaviv/etnaviv-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -uexynos/exynos-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -ufreedreno/freedreno-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -uintel/intel-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -ulibkms/kms-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -unouveau/nouveau-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -uomap/omap-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -uradeon/radeon-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -utegra/tegra-symbol-check +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -u
Signature · 5 lines
Niclas Zeising _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 3/4 meson: normal shell will do
In reply to Emil VelikovAs tweaked with previous patch - bash is not required. Any shell will do
--- amdgpu/meson.build | 2 +- etnaviv/meson.build | 2 +- exynos/meson.build | 2 +- freedreno/meson.build | 2 +- intel/meson.build | 14 +++++++------- libkms/meson.build | 2 +- meson.build | 2 +- nouveau/meson.build | 2 +- omap/meson.build | 2 +- radeon/meson.build | 2 +- tegra/meson.build | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-)
amdgpu/meson.build +1 -1
@@ -59,7 +59,7 @@ ext_libdrm_amdgpu = declare_dependency( test( 'amdgpu-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('amdgpu-symbol-check'), libdrm_amdgpu] )
etnaviv/meson.build +1 -1
@@ -54,6 +54,6 @@ ext_libdrm_etnaviv = declare_dependency( test( 'etnaviv-symbol-check', - prog_bash, + prog_sh, args : [files('etnaviv-symbol-check'), libdrm_etnaviv] )
exynos/meson.build +1 -1
@@ -48,7 +48,7 @@ pkg.generate( test( 'exynos-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('exynos-symbol-check'), libdrm_exynos] )
freedreno/meson.build +1 -1
@@ -71,7 +71,7 @@ pkg.generate( test( 'freedreno-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('freedreno-symbol-check'), libdrm_freedreno] )
intel/meson.build +7 -7
@@ -64,43 +64,43 @@ test_decode = executable( test( 'gen4-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen4-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen45-3d.batch', - prog_bash, + prog_sh, args : files('tests/gm45-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen5-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen5-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen6-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen6-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen7-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen7-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen7-2d-copy.batch', - prog_bash, + prog_sh, args : files('tests/gen7-2d-copy.batch.sh'), workdir : meson.current_build_dir(), ) test( 'intel-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('intel-symbol-check'), libdrm_intel] )
libkms/meson.build +1 -1
@@ -69,7 +69,7 @@ pkg.generate( test( 'kms-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('kms-symbol-check'), libkms] )
meson.build +1 -1
@@ -249,7 +249,7 @@ endif with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.found() # Used for tests -prog_bash = find_program('bash') +prog_sh = find_program('sh') config.set10('HAVE_VISIBILITY', cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''',
nouveau/meson.build +1 -1
@@ -53,7 +53,7 @@ pkg.generate( test( 'nouveau-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('nouveau-symbol-check'), libdrm_nouveau] )
omap/meson.build +1 -1
@@ -48,7 +48,7 @@ pkg.generate( test( 'omap-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('omap-symbol-check'), libdrm_omap] )
radeon/meson.build +1 -1
@@ -58,7 +58,7 @@ pkg.generate( test( 'radeon-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('radeon-symbol-check'), libdrm_radeon] )
tegra/meson.build +1 -1
@@ -47,7 +47,7 @@ pkg.generate( test( 'tegra-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('tegra-symbol-check'), libdrm_tegra] )
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 3/4] meson: normal shell will do
Quoted 3 lines · Emil Velikov
As tweaked with previous patch - bash is not required. Any shell will do
Signed-off-by Emil Velikov <[email protected]>
Quoted 199 lines
--- amdgpu/meson.build | 2 +- etnaviv/meson.build | 2 +- exynos/meson.build | 2 +- freedreno/meson.build | 2 +- intel/meson.build | 14 +++++++------- libkms/meson.build | 2 +- meson.build | 2 +- nouveau/meson.build | 2 +- omap/meson.build | 2 +- radeon/meson.build | 2 +- tegra/meson.build | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-)amdgpu/meson.build +1
-1@@ -59,7 +59,7 @@ ext_libdrm_amdgpu = declare_dependency( test( 'amdgpu-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('amdgpu-symbol-check'), libdrm_amdgpu] )etnaviv/meson.build +1
-1@@ -54,6 +54,6 @@ ext_libdrm_etnaviv = declare_dependency( test( 'etnaviv-symbol-check', - prog_bash, + prog_sh, args : [files('etnaviv-symbol-check'), libdrm_etnaviv] )exynos/meson.build +1
-1@@ -48,7 +48,7 @@ pkg.generate( test( 'exynos-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('exynos-symbol-check'), libdrm_exynos] )freedreno/meson.build +1
-1@@ -71,7 +71,7 @@ pkg.generate( test( 'freedreno-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('freedreno-symbol-check'), libdrm_freedreno] )intel/meson.build +7
-7@@ -64,43 +64,43 @@ test_decode = executable( test( 'gen4-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen4-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen45-3d.batch', - prog_bash, + prog_sh, args : files('tests/gm45-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen5-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen5-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen6-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen6-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen7-3d.batch', - prog_bash, + prog_sh, args : files('tests/gen7-3d.batch.sh'), workdir : meson.current_build_dir(), ) test( 'gen7-2d-copy.batch', - prog_bash, + prog_sh, args : files('tests/gen7-2d-copy.batch.sh'), workdir : meson.current_build_dir(), ) test( 'intel-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('intel-symbol-check'), libdrm_intel] )libkms/meson.build +1
-1@@ -69,7 +69,7 @@ pkg.generate( test( 'kms-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('kms-symbol-check'), libkms] )meson.build +1
-1@@ -249,7 +249,7 @@ endif with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.found() # Used for tests -prog_bash = find_program('bash') +prog_sh = find_program('sh') config.set10('HAVE_VISIBILITY', cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''',nouveau/meson.build +1
-1@@ -53,7 +53,7 @@ pkg.generate( test( 'nouveau-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('nouveau-symbol-check'), libdrm_nouveau] )omap/meson.build +1
-1@@ -48,7 +48,7 @@ pkg.generate( test( 'omap-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('omap-symbol-check'), libdrm_omap] )radeon/meson.build +1
-1@@ -58,7 +58,7 @@ pkg.generate( test( 'radeon-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('radeon-symbol-check'), libdrm_radeon] )tegra/meson.build +1
-1@@ -47,7 +47,7 @@ pkg.generate( test( 'tegra-symbol-check', - prog_bash, + prog_sh, env : env_test, args : [files('tegra-symbol-check'), libdrm_tegra] )
Signature · 5 lines
Niclas Zeising _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 4/4 meson.build: Fix meson script on FreeBSD
In reply to Emil VelikovFrom: Niclas Zeising <[email protected]>
FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the includes when checking for headers.
Instead of splitting out the check for sys/sysctl.h from the other header checks, just add sys/types.h to all header checks.
v2 [Emil]
- add inline comment
- drop bash/sh hunk
--- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meson.build +4 -1
@@ -179,9 +179,12 @@ else dep_rt = [] endif dep_m = cc.find_library('m', required : false) +# From Niclas Zeising: +# FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the +# includes when checking for headers. foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] config.set('HAVE_' + header.underscorify().to_upper(), - cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))) + cc.compiles('#include <sys/types.h>\n#include <@0@>'.format(header), name : '@0@ works'.format(header))) endforeach if cc.has_header_symbol('sys/sysmacros.h', 'major') config.set10('MAJOR_IN_SYSMACROS', true)
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD
Quoted 7 lines · Emil Velikov
From: Niclas Zeising <[email protected]>
FreeBSD requires
sys/types.hforsys/sysctl.h, add it as part of the includes when checking for headers.
Instead of splitting out the check forsys/sysctl.hfrom the other header checks, just addsys/types.hto all header checks.
Quoted 5 lines
v2 [Emil]
- add inline comment
- drop bash/sh hunkSigned-off-by Emil Velikov <[email protected]>
Quoted 23 lines
--- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meson.build +4
-1@@ -179,9 +179,12 @@ else dep_rt = [] endif dep_m = cc.find_library('m', required : false) +# From Niclas Zeising: +# FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the +# includes when checking for headers. foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] config.set('HAVE_' + header.underscorify().to_upper(), - cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))) + cc.compiles('#include <sys/types.h>\n#include <@0@>'.format(header), name : '@0@ works'.format(header))) endforeach if cc.has_header_symbol('sys/sysmacros.h', 'major') config.set10('MAJOR_IN_SYSMACROS', true)
Signature · 5 lines
Niclas Zeising _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD
In reply to Emil VelikovQuoted 7 lines · Emil Velikov
From: Niclas Zeising <[email protected]>
FreeBSD requires
sys/types.hforsys/sysctl.h, add it as part of the includes when checking for headers.
Instead of splitting out the check forsys/sysctl.hfrom the other header checks, just addsys/types.hto all header checks.
Quoted 5 lines
v2 [Emil]
- add inline comment
- drop bash/sh hunkSigned-off-by Emil Velikov <[email protected]>
Series is:
But I agree with Emil, it's a FreeBSD bug for it to not include a required header, this should also be fixed upstream.
Quoted 29 lines
--- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meson.build +4
-1@@ -179,9 +179,12 @@ else dep_rt = [] endif dep_m = cc.find_library('m', required : false) +# From Niclas Zeising: +# FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the +# includes when checking for headers. foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] config.set('HAVE_' + header.underscorify().to_upper(), - cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))) + cc.compiles('#include <sys/types.h>\n#include <@0@>'.format(header), name : '@0@ works'.format(header))) endforeach if cc.has_header_symbol('sys/sysmacros.h', 'major') config.set10('MAJOR_IN_SYSMACROS', true)Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD
Quoted 12 lines · Eric Engestrom
Quoted 11 lines · Emil Velikov
From: Niclas Zeising <[email protected]>
FreeBSD requires
sys/types.hforsys/sysctl.h, add it as part of the includes when checking for headers.
Instead of splitting out the check forsys/sysctl.hfrom the other header checks, just addsys/types.hto all header checks.v2 [Emil]
- add inline comment
- drop bash/sh hunk
Quoted 7 lines
Quoted 1 line
Signed-off-by Emil Velikov <[email protected]>Series is:
Reviewed-by Eric Engestrom <[email protected]>But I agree with Emil, it's a FreeBSD bug for it to not include a required header, this should also be fixed upstream.
I'm not sure if my e-mails are getting to the mailing list. This is the way it's documented in FreeBSD, and there is a lot of legacy reasons it is this way. I doubt it will change, and even if it does, there will be about 5 years of transition period before all supported releases has the change, most likely.
This is the first time, to my knowledge, this issue has come up.
(I'm not saying I disagree with you, just saying it's probably easier to patch here rather than try to change upstream.)
Regards
Signature · 5 lines
Niclas _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD
Quoted 15 lines · Niclas Zeising
Quoted 14 lines · Eric Engestrom
Quoted 12 lines · Emil Velikov
From: Niclas Zeising <[email protected]>
FreeBSD requires
sys/types.hforsys/sysctl.h, add it as part of the includes when checking for headers.
Instead of splitting out the check forsys/sysctl.hfrom the other header checks, just addsys/types.hto all header checks.v2 [Emil]
- add inline comment
- drop bash/sh hunkSigned-off-by Emil Velikov <[email protected]>
Quoted 7 lines
Quoted 5 lines
Series is:
Reviewed-by Eric Engestrom <[email protected]>But I agree with Emil, it's a FreeBSD bug for it to not include a required header, this should also be fixed upstream.
I'm not sure if my e-mails are getting to the mailing list.
They are :)
You can check the archive if you're not sure:
https://lists.freedesktop.org/archives/dri-devel/2019-June/thread.html
Quoted 6 lines
This is the way
it's documented in FreeBSD, and there is a lot of legacy reasons it is this way. I doubt it will change, and even if it does, there will be about 5 years of transition period before all supported releases has the change, most likely.
Quoted 8 lines
This is the first time, to my knowledge, this issue has come up.
(I'm not saying I disagree with you, just saying it's probably easier to patch here rather than try to change upstream.)
Regards
Signature · 1 line
Niclas
If think we both agree then ;)
I definitely agree with should have the workaround downstream, all I meant is that it's worth pushing upstream to fix the bug so that *eventually* not all downstream users needs to have the workaround (but yeah, that will take years to reach).
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD
Quoted 44 lines · Eric Engestrom
Quoted 15 lines · Niclas Zeising
Quoted 14 lines · Eric Engestrom
Quoted 12 lines · Emil Velikov
From: Niclas Zeising <[email protected]>
FreeBSD requires
sys/types.hforsys/sysctl.h, add it as part of the includes when checking for headers.
Instead of splitting out the check forsys/sysctl.hfrom the other header checks, just addsys/types.hto all header checks.v2 [Emil]
- add inline comment
- drop bash/sh hunkSigned-off-by Emil Velikov <[email protected]>Quoted 7 lines
Quoted 5 lines
Series is:
Reviewed-by Eric Engestrom <[email protected]>But I agree with Emil, it's a FreeBSD bug for it to not include a required header, this should also be fixed upstream.
I'm not sure if my e-mails are getting to the mailing list.
They are :)
You can check the archive if you're not sure:
https://lists.freedesktop.org/archives/dri-devel/2019-June/thread.htmlQuoted 6 lines
This is the way
it's documented in FreeBSD, and there is a lot of legacy reasons it is this way. I doubt it will change, and even if it does, there will be about 5 years of transition period before all supported releases has the change, most likely.Quoted 8 lines
This is the first time, to my knowledge, this issue has come up.
(I'm not saying I disagree with you, just saying it's probably easier to patch here rather than try to change upstream.)
Regards
Signature · 1 line
Niclas
Quoted 6 lines
If think we both agree then ;)
I definitely agree with should have the workaround downstream, all I meant is that it's worth pushing upstream to fix the bug so that *eventually* not all downstream users needs to have the workaround (but yeah, that will take years to reach).
Just noticed that these patches still haven't been merged. What's the hold up? Thanks!
Regards
Signature · 5 lines
Niclas Zeising _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel