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
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 0e4ebbb..47fcf8d 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -218,7 +218,7 @@ parts:
218 # because dri.pc (from mesa-common-dev) comes from the archive, not from218 # because dri.pc (from mesa-common-dev) comes from the archive, not from
219 # the gnome platform snap.219 # the gnome platform snap.
220 cd /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig220 cd /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig
221 ln -s libdrm.pc libdrm-uninstalled.pc221 ln -fs libdrm.pc libdrm-uninstalled.pc
222 cd -222 cd -
223223
224 $OUT/gn gen $OUT224 $OUT/gn gen $OUT
@@ -328,8 +328,8 @@ parts:
328 plugin: cmake328 plugin: cmake
329 cmake-parameters:329 cmake-parameters:
330 - -DCMAKE_BUILD_TYPE=Release330 - -DCMAKE_BUILD_TYPE=Release
331 - -DARCH=64
332 - -DCMAKE_INSTALL_PREFIX=/usr331 - -DCMAKE_INSTALL_PREFIX=/usr
332 - -DRUN_TEST_SUITE=ON
333 override-stage: |333 override-stage: |
334 set -ex334 set -ex
335 snapcraftctl stage335 snapcraftctl stage
@@ -341,17 +341,17 @@ parts:
341341
342 libva:342 libva:
343 source: https://github.com/intel/libva/archive/refs/tags/2.14.0.tar.gz343 source: https://github.com/intel/libva/archive/refs/tags/2.14.0.tar.gz
344 plugin: autotools344 plugin: meson # Because autotools makes a mess of this.
345 autotools-configure-parameters:345 meson-parameters:
346 - --prefix=/usr346 - --prefix /usr
347 override-build: |347 build-packages:
348 # Move libva files from /usr/lib to /usr/lib/@triplet@348 - pkg-config
349 snapcraftctl build349 - libdrm-dev
350 mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"350 - xorg-dev
351 find "$SNAPCRAFT_PART_INSTALL" -name 'libva*.so*' -exec \351 - libxcb-dri3-dev
352 mv -t "$SNAPCRAFT_PART_INSTALL"/usr/lib/$SNAPCRAFT_ARCH_TRIPLET {} +352 - libgl1-mesa-dev
353 prime:353 - libgl1-mesa-glx
354 - usr/**/*.so*354 - libwayland-dev
355355
356 va-drivers:356 va-drivers:
357 source: https://github.com/intel/media-driver/archive/refs/tags/intel-media-22.4.3.tar.gz357 source: https://github.com/intel/media-driver/archive/refs/tags/intel-media-22.4.3.tar.gz
@@ -373,12 +373,9 @@ parts:
373 - mesa-vulkan-drivers373 - mesa-vulkan-drivers
374 - libxcb-randr0374 - libxcb-randr0
375 override-build: |375 override-build: |
376 # Strip iHD driver and move it from /usr/lib to /usr/lib/@triplet@376 # Strip iHD driver.
377 snapcraftctl build377 snapcraftctl build
378 mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri"378 strip $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri/iHD_drv_video.so
379 find "$SNAPCRAFT_PART_INSTALL" -name 'iHD_drv_video.so' \
380 -exec strip {} \; \
381 -exec mv {} "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri" \;
382 prime:379 prime:
383 - usr/**/iHD_drv_video.so380 - usr/**/iHD_drv_video.so
384 - usr/**/libigfxcmrt.so*381 - usr/**/libigfxcmrt.so*

Subscribers

People subscribed via source and target branches

to all changes: