Merge ~b-stolk/chromium-browser:mesonva into ~nteodosio/chromium-browser:dev

Proposed by Bram Stolk
Status: Merged
Merged at revision: b1c833313f5e32bfd16cb96b19253968e3967dac
Proposed branch: ~b-stolk/chromium-browser:mesonva
Merge into: ~nteodosio/chromium-browser:dev
Diff against target: 67 lines (+15/-18)
1 file modified
snapcraft.yaml (+15/-18)
Reviewer Review Type Date Requested Status
Nathan Teodosio Approve
Review via email: mp+431531@code.launchpad.net

Commit message

Build libva with meson.

Description of the change

This will make the snapcraft.yaml a little cleaner, without having to move around built targets.

To post a comment you must log in.
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Thanks a lot Bram, this looks much cleaner!

I remember now why the clumsy find dance in the end was needed: For some reason iHD_drv_video.so would be installed in usr/lib, not in usr/lib/TRIPLET. I suppose this is solved in newer Snapcraft versions.

review: Needs Fixing
Revision history for this message
Bram Stolk (b-stolk) wrote :

Thank you Nathan,

I will adopt your changes.
It will take a while to rebuild and retest with the old versions, but you should have a revision soon.

Revision history for this message
Bram Stolk (b-stolk) wrote :

Ok, I've tested with the older libs, and it still builds and runs as expected.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Thank you again!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snapcraft.yaml b/snapcraft.yaml
2index 0e4ebbb..47fcf8d 100644
3--- a/snapcraft.yaml
4+++ b/snapcraft.yaml
5@@ -218,7 +218,7 @@ parts:
6 # because dri.pc (from mesa-common-dev) comes from the archive, not from
7 # the gnome platform snap.
8 cd /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig
9- ln -s libdrm.pc libdrm-uninstalled.pc
10+ ln -fs libdrm.pc libdrm-uninstalled.pc
11 cd -
12
13 $OUT/gn gen $OUT
14@@ -328,8 +328,8 @@ parts:
15 plugin: cmake
16 cmake-parameters:
17 - -DCMAKE_BUILD_TYPE=Release
18- - -DARCH=64
19 - -DCMAKE_INSTALL_PREFIX=/usr
20+ - -DRUN_TEST_SUITE=ON
21 override-stage: |
22 set -ex
23 snapcraftctl stage
24@@ -341,17 +341,17 @@ parts:
25
26 libva:
27 source: https://github.com/intel/libva/archive/refs/tags/2.14.0.tar.gz
28- plugin: autotools
29- autotools-configure-parameters:
30- - --prefix=/usr
31- override-build: |
32- # Move libva files from /usr/lib to /usr/lib/@triplet@
33- snapcraftctl build
34- mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"
35- find "$SNAPCRAFT_PART_INSTALL" -name 'libva*.so*' -exec \
36- mv -t "$SNAPCRAFT_PART_INSTALL"/usr/lib/$SNAPCRAFT_ARCH_TRIPLET {} +
37- prime:
38- - usr/**/*.so*
39+ plugin: meson # Because autotools makes a mess of this.
40+ meson-parameters:
41+ - --prefix /usr
42+ build-packages:
43+ - pkg-config
44+ - libdrm-dev
45+ - xorg-dev
46+ - libxcb-dri3-dev
47+ - libgl1-mesa-dev
48+ - libgl1-mesa-glx
49+ - libwayland-dev
50
51 va-drivers:
52 source: https://github.com/intel/media-driver/archive/refs/tags/intel-media-22.4.3.tar.gz
53@@ -373,12 +373,9 @@ parts:
54 - mesa-vulkan-drivers
55 - libxcb-randr0
56 override-build: |
57- # Strip iHD driver and move it from /usr/lib to /usr/lib/@triplet@
58+ # Strip iHD driver.
59 snapcraftctl build
60- mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri"
61- find "$SNAPCRAFT_PART_INSTALL" -name 'iHD_drv_video.so' \
62- -exec strip {} \; \
63- -exec mv {} "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri" \;
64+ strip $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri/iHD_drv_video.so
65 prime:
66 - usr/**/iHD_drv_video.so
67 - usr/**/libigfxcmrt.so*

Subscribers

People subscribed via source and target branches

to all changes: