Skip to contentSkip to conversation

meson: Use absolute path for IGT_DATADIR

PATCH In review Petri Latvala 3 participants 4 messages Jan 22, 2018 – Jan 25, 2018

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

PATCH 1/1 meson: Use absolute path for IGT_DATADIR

IGT_DATADIR needs to be an absolute path instead of relative to prefix or data files can only be found if cwd is exactly prefix.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104723

Cc Arkadiusz Hiler <[email protected]>
---
 lib/meson.build   | 2 +-
 tools/meson.build | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
lib/meson.build +1 -1
index b3bbc311..94ea0799 100644
@@ -159,7 +159,7 @@ foreach f: lib_sources
 	include_directories: inc,
 	dependencies : lib_deps,
 	c_args : [
-	    '-DIGT_DATADIR="@0@"'.format(datadir),
+	    '-DIGT_DATADIR="@0@"'.format(join_paths(prefix, datadir)),
 	    '-DIGT_SRCDIR="@0@"'.format(srcdir),
 	    '-DIGT_LOG_DOMAIN="@0@"'.format(f.split('.')[0]),
 	])
tools/meson.build +1 -1
index acd9242d..a96735c2 100644
@@ -76,7 +76,7 @@ executable('intel_reg', sources : intel_reg_src,
 	   dependencies : tool_deps,
 	   install : true,
 	   c_args : [
-	     '-DIGT_DATADIR="@0@"'.format(datadir),
+	     '-DIGT_DATADIR="@0@"'.format(join_paths(prefix, datadir)),
 	   ])
 
 install_data('intel_gpu_abrt', install_dir : bindir)
Signature · 6 lines
2.14.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/1] meson: Use absolute path for IGT_DATADIR

== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/1] meson: Use absolute path for IGT_DATADIR
URL : https://patchwork.freedesktop.org/series/36896/
State : success

== Summary ==

IGT patchset tested on top of latest successful build 94bd67c5d6184c435c2fed0bfb39d75b3138b7a8 tools/intel_vbt_decode: update vbt defs from kernel

with latest DRM-Tip kernel build CI_DRM_3667
8748fd927893 drm-tip: 2018y-01m-22d-12h-23m-58s UTC integration manifest

Testlist changes:
-igt@vc4_create_bo@create-bo-0 -igt@vc4_create_bo@create-bo-4096 -igt@vc4_create_bo@create-bo-zeroed -igt@vc4_dmabuf_poll@poll-read-waits-until-write-done -igt@vc4_dmabuf_poll@poll-write-waits-until-write-done -igt@vc4_label_bo@set-bad-handle -igt@vc4_label_bo@set-bad-name -igt@vc4_label_bo@set-kernel-name -igt@vc4_label_bo@set-label -igt@vc4_lookup_fail@bad-color-write -igt@vc4_tiling@get-after-free -igt@vc4_tiling@get-bad-flags -igt@vc4_tiling@get-bad-handle -igt@vc4_tiling@get-bad-modifier -igt@vc4_tiling@set-bad-flags -igt@vc4_tiling@set-bad-handle -igt@vc4_tiling@set-bad-modifier -igt@vc4_tiling@set-get -igt@vc4_wait_bo@bad-bo -igt@vc4_wait_bo@bad-pad -igt@vc4_wait_bo@unused-bo-0ns -igt@vc4_wait_bo@unused-bo-1ns -igt@vc4_wait_bo@used-bo -igt@vc4_wait_bo@used-bo-0ns -igt@vc4_wait_bo@used-bo-1ns -igt@vc4_wait_seqno@bad-seqno-0ns -igt@vc4_wait_seqno@bad-seqno-1ns

Test debugfs_test:

        Subgroup read_all_entries:
                dmesg-fail -> DMESG-WARN (fi-elk-e7500) fdo#103989
Test kms_pipe_crc_basic:
        Subgroup suspend-read-crc-pipe-b:
                pass       -> INCOMPLETE (fi-snb-2520m) fdo#103713

fdo#103989 https://bugs.freedesktop.org/show_bug.cgi?id=103989
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713

fi-bdw-5557u     total:288  pass:267  dwarn:0   dfail:0   fail:0   skip:21  time:426s
fi-bdw-gvtdvm    total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:426s
fi-blb-e6850     total:288  pass:223  dwarn:1   dfail:0   fail:0   skip:64  time:374s
fi-bsw-n3050     total:288  pass:242  dwarn:0   dfail:0   fail:0   skip:46  time:492s
fi-bwr-2160      total:288  pass:183  dwarn:0   dfail:0   fail:0   skip:105 time:282s
fi-bxt-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:491s
fi-bxt-j4205     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:491s
fi-byt-j1900     total:288  pass:253  dwarn:0   dfail:0   fail:0   skip:35  time:471s
fi-byt-n2820     total:288  pass:249  dwarn:0   dfail:0   fail:0   skip:39  time:460s
fi-elk-e7500     total:224  pass:168  dwarn:10  dfail:0   fail:0   skip:45 
fi-gdg-551       total:288  pass:179  dwarn:0   dfail:0   fail:1   skip:108 time:280s
fi-glk-1         total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:518s
fi-hsw-4770r     total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:401s
fi-ilk-650       total:288  pass:228  dwarn:0   dfail:0   fail:0   skip:60  time:416s
fi-ivb-3520m     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:450s
fi-ivb-3770      total:288  pass:255  dwarn:0   dfail:0   fail:0   skip:33  time:423s
fi-kbl-7500u     total:288  pass:263  dwarn:1   dfail:0   fail:0   skip:24  time:458s
fi-kbl-7560u     total:288  pass:269  dwarn:0   dfail:0   fail:0   skip:19  time:502s
fi-kbl-7567u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:459s
fi-kbl-r         total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:503s
fi-pnv-d510      total:288  pass:222  dwarn:1   dfail:0   fail:0   skip:65  time:580s
fi-skl-6260u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:433s
fi-skl-6600u     total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:515s
fi-skl-6700hq    total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:529s
fi-skl-6700k2    total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:494s
fi-skl-6770hq    total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:491s
fi-skl-guc       total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:422s
fi-skl-gvtdvm    total:288  pass:265  dwarn:0   dfail:0   fail:0   skip:23  time:434s
fi-snb-2520m     total:245  pass:211  dwarn:0   dfail:0   fail:0   skip:33 
fi-snb-2600      total:288  pass:248  dwarn:0   dfail:0   fail:0   skip:40  time:401s
Blacklisted hosts:
fi-cfl-s2        total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:563s
fi-glk-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:472s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_810/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✗ Fi.CI.IGT: warning for series starting with [i-g-t,1/1] meson: Use absolute path for IGT_DATADIR

In reply to Petri Latvala
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/1] meson: Use absolute path for IGT_DATADIR
URL : https://patchwork.freedesktop.org/series/36896/
State : warning

== Summary ==

Warning: bzip CI_DRM_3667/shard-glkb6/results7.json.bz2 wasn't in correct JSON format Test kms_sysfs_edid_timing:

                pass       -> WARN       (shard-apl) fdo#100047
Test gen7_forcewake_mt:
                fail       -> PASS       (shard-hsw) fdo#104725
Test gem_eio:
        Subgroup in-flight-contexts:
                fail       -> PASS       (shard-hsw) fdo#104676
Test kms_rotation_crc:
        Subgroup sprite-rotation-90-flip:
                pass       -> DMESG-WARN (shard-apl) fdo#103356
Test kms_flip:
        Subgroup plain-flip-ts-check:
                pass       -> FAIL       (shard-hsw) fdo#100368
Test perf:
        Subgroup buffer-fill:
                fail       -> PASS       (shard-apl) fdo#103755
        Subgroup oa-exponents:
                fail       -> PASS       (shard-apl) fdo#102254
Test kms_cursor_legacy:
        Subgroup cursor-vs-flip-atomic:
                fail       -> PASS       (shard-apl) fdo#103355
Test kms_3d:
                fail       -> PASS       (shard-snb) fdo#104723
Test kms_frontbuffer_tracking:
        Subgroup fbc-1p-pri-indfb-multidraw:
                fail       -> PASS       (shard-snb) fdo#103167
Test pm_rc6_residency:
        Subgroup rc6-accuracy:
                pass       -> SKIP       (shard-snb)

fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#104725 https://bugs.freedesktop.org/show_bug.cgi?id=104725
fdo#104676 https://bugs.freedesktop.org/show_bug.cgi?id=104676
fdo#103356 https://bugs.freedesktop.org/show_bug.cgi?id=103356
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103755 https://bugs.freedesktop.org/show_bug.cgi?id=103755
fdo#102254 https://bugs.freedesktop.org/show_bug.cgi?id=102254
fdo#103355 https://bugs.freedesktop.org/show_bug.cgi?id=103355
fdo#104723 https://bugs.freedesktop.org/show_bug.cgi?id=104723
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167

shard-apl        total:2753 pass:1715 dwarn:2   dfail:0   fail:22  skip:1013 time:14007s
shard-hsw        total:2753 pass:1725 dwarn:1   dfail:0   fail:11  skip:1015 time:15272s
shard-snb        total:2753 pass:1318 dwarn:1   dfail:0   fail:11  skip:1423 time:7909s

Blacklisted hosts:
shard-kbl total:2735 pass:1819 dwarn:2 dfail:0 fail:23 skip:890 time:10576s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_810/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by on v1 1/1
#3 lore raw
In reply to Petri Latvala
Quoted 6 lines · Petri Latvala

IGT_DATADIR needs to be an absolute path instead of relative to prefix or data files can only be found if cwd is exactly prefix.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104723

Cc Arkadiusz Hiler <[email protected]>

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev