Skip to contentSkip to conversation

meson.build: Fix typo

PATCH In review Emil Velikov 3 participants 11 messages Jun 16, 2019 – Aug 1, 2019

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

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
index be768afa..64f0d5b1 100644
@@ -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
#1 lore raw

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
index 5ce15f46..ea83850d 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
etnaviv/etnaviv-symbol-check +1 -1
index 18910688..ef4e66f4 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
exynos/exynos-symbol-check +1 -1
index 49d611e6..d2c362e1 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
freedreno/freedreno-symbol-check +1 -1
index 978026c0..987e38fa 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
intel/intel-symbol-check +1 -1
index de377bef..2f355321 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
libkms/kms-symbol-check +1 -1
index 30f444f7..7d3426f6 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
nouveau/nouveau-symbol-check +1 -1
index 6296244c..36703a3e 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
omap/omap-symbol-check +1 -1
index 16da3c40..21522ba0 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
radeon/radeon-symbol-check +1 -1
index da605bb8..7b69f9a4 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -u
 
tegra/tegra-symbol-check +1 -1
index 8539b95b..a74d9749 100755
@@ -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
Tested-by Reviewed-by on v2 2/4
#2 lore raw

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.

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
index 5ce15f46..ea83850d 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
etnaviv/etnaviv-symbol-check +1 -1
index 18910688..ef4e66f4 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
exynos/exynos-symbol-check +1 -1
index 49d611e6..d2c362e1 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
freedreno/freedreno-symbol-check +1 -1
index 978026c0..987e38fa 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
intel/intel-symbol-check +1 -1
index de377bef..2f355321 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
libkms/kms-symbol-check +1 -1
index 30f444f7..7d3426f6 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
nouveau/nouveau-symbol-check +1 -1
index 6296244c..36703a3e 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
omap/omap-symbol-check +1 -1
index 16da3c40..21522ba0 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
radeon/radeon-symbol-check +1 -1
index da605bb8..7b69f9a4 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
  set -u
 
tegra/tegra-symbol-check +1 -1
index 8539b95b..a74d9749 100755
@@ -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
#3 lore raw

PATCH v2 3/4 meson: normal shell will do

In reply to Emil Velikov

As 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
index 7c8ccc7e..18e30166 100644
@@ -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
index 515a4ed0..82fbc208 100644
@@ -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
index bdfc3fc6..1de75220 100644
@@ -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
index c9aba060..277d5ec5 100644
@@ -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
index 3d6bbac6..6f149c74 100644
@@ -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
index dc931608..7b8d34ad 100644
@@ -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
index 64f0d5b1..ed407009 100644
@@ -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
index 0c1498d7..eda0fd3d 100644
@@ -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
index 54698c6a..7c11b5e8 100644
@@ -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
index 1fc5282c..d272800f 100644
@@ -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
index 4bc454b6..f385f72e 100644
@@ -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
Reviewed-by on v2 3/4
#4 lore raw

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

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
index 7c8ccc7e..18e30166 100644
@@ -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
index 515a4ed0..82fbc208 100644
@@ -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
index bdfc3fc6..1de75220 100644
@@ -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
index c9aba060..277d5ec5 100644
@@ -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
index 3d6bbac6..6f149c74 100644
@@ -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
index dc931608..7b8d34ad 100644
@@ -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
index 64f0d5b1..ed407009 100644
@@ -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
index 0c1498d7..eda0fd3d 100644
@@ -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
index 54698c6a..7c11b5e8 100644
@@ -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
index 1fc5282c..d272800f 100644
@@ -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
index 4bc454b6..f385f72e 100644
@@ -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
#5 lore raw

PATCH v2 4/4 meson.build: Fix meson script on FreeBSD

In reply to Emil Velikov

From: 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
index ed407009..14f82b1f 100644
@@ -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
#6 lore raw

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.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.

Quoted 5 lines

v2 [Emil]
- add inline comment
- drop bash/sh hunk

Quoted 23 lines
---
  meson.build | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
meson.build +4 -1
index ed407009..14f82b1f 100644
@@ -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
Reviewed-by on v2 4/4
#7 lore raw

Re: [PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD

In reply to Emil Velikov
Quoted 7 lines · Emil Velikov

From: 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.

Quoted 5 lines

v2 [Emil]
- add inline comment
- drop bash/sh hunk

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
index ed407009..14f82b1f 100644
@@ -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

#8 lore raw

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.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

Quoted 7 lines
Quoted 1 line

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.

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
#9 lore raw

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.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

Quoted 7 lines
Quoted 5 lines

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.

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

#10 lore raw

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.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

Quoted 7 lines
Quoted 5 lines

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.

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
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