I’m unable to conditionally ignore a package only available on amd64 on ppc64el, arm64, armhf. The packages in question that I’m trying to ignore on the non amd64 architectures are libmfx-dev
and libmfx1
. I’ve tried the following:
build-packages:
[...]
- try:
- libmfx-dev
stage-packages:
[...]
- try:
- libmfx1
and
build-packages:
[...]
- on amd64:
- libmfx-dev
stage-packages:
[...]
- on amd64:
- libmfx1
The snap builds successfully on amd64 but fails on the other architectures:
Failed to fetch stage packages: Error downloading packages for part 'sources': The package 'libmfx1' was not found..
Any ideas on what I’m doing wrong here?
alan_g
January 5, 2022, 9:59am
2
I’ve successfully worked with a similar requirement here:
HTH
1 Like
Thanks for the example @alan_g , I tried using the to
statement as used in the above snapcraft.yaml, this still doesn’t allow the non-amd64 architectures to build. The part in my snapcraft.yaml that contains the to
statement (stage-packages) is the following:
sources:
plugin: nil
override-pull: |
# Qt Sources
git clone --recurse-submodules -b v5.15.2 --depth=1 git://code.qt.io/qt/qtxmlpatterns.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtx11extras.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtgamepad.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtimageformats.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtnetworkauth.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtserialport.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtremoteobjects.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtsvg.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtscript.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtdeclarative.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtwayland.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qttools.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtconnectivity.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtcharts.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtdoc.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtlottie.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtgraphicaleffects.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtmultimedia.git
git clone --recurse-submodules -b v5.15.2 --depth=1 git://code.qt.io/qt/qtquick3d.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtscxml.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtquicktimeline.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtsensors.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtwebchannel.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtwebsockets.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qt3d.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtquickcontrols.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtquickcontrols2.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtlocation.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtdatavis3d.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtspeech.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtserialbus.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qttranslations.git
git clone -b v5.15.2 --depth=1 git://code.qt.io/qt/qtwebglplugin.git
git clone --recurse-submodules --shallow-submodules -b v5.15.2 --depth=1 git://code.qt.io/qt/qtwebengine.git
# git clone -b v5.212.0-alpha4 --depth=1 git://code.qt.io/qt/qtwebkit.git
# KDE/KF5 Sources
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/extra-cmake-modules.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcoreaddons.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/ki18n.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/karchive.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kconfig.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdoctools.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kwidgetsaddons.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcodecs.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kwindowsystem.git
git clone -b v0.114.0 --depth=1 https://invent.kde.org/libraries/polkit-qt-1.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kauth.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcrash.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdbusaddons.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kguiaddons.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kconfigwidgets.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kitemviews.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kiconthemes.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcompletion.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kservice.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/sonnet.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/attica.git
git clone -b v4.11.1 --depth=1 https://invent.kde.org/libraries/phonon.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/breeze-icons.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kglobalaccel.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/ktextwidgets.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/knotifications.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kxmlgui.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kbookmarks.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kjobwidgets.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kwallet.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/solid.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kio.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kparts.git
git clone -b v1.12 --depth=1 https://github.com/taglib/taglib.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kirigami.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kpackage.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kinit.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kactivities.git
git clone -b v1.3.0 --depth=1 https://invent.kde.org/libraries/plasma-wayland-protocols.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdeclarative.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kidletime.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kunitconversion.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/oxygen-icons5.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/syntax-highlighting.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdnssd.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kitemmodels.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kross.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kjs.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/ktexteditor.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kwayland.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/syndication.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/threadweaver.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kded.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdesignerplugin.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kemoticons.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kfilemetadata.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/knewstuff.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kpty.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/plasma-framework.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/baloo.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/bluez-qt.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/frameworkintegration.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kactivities-stats.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kapidox.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcalendarcore.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcmutils.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kcontacts.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdav.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdelibs4support.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdesu.git
# git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kdewebkit.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kholidays.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/khtml.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kimageformats.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kjsembed.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kmediaplayer.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/knotifyconfig.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kpeople.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kplotting.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kquickcharts.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/krunner.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/kxmlrpcclient.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/modemmanager-qt.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/networkmanager-qt.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/prison.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/purpose.git
git clone -b v$SNAPCRAFT_PROJECT_VERSION --depth=1 https://invent.kde.org/frameworks/qqc2-desktop-style.git
git clone -b v5.22.5 --depth=1 https://invent.kde.org/plasma/kdecoration.git
git clone -b v5.22.5 --depth=1 https://invent.kde.org/plasma/breeze.git
git clone -b v5.22.5 --depth=1 https://invent.kde.org/plasma/plasma-integration.git
git clone -b v21.08.1 --depth=1 https://invent.kde.org/games/libkdegames.git
# ffmpeg and dependencies sources
git clone -b release-2.0.18 --depth=1 https://github.com/libsdl-org/SDL.git
git clone -b v1.4.4 --depth=1 https://github.com/Haivision/srt.git
git clone -b stable --depth=1 https://code.videolan.org/videolan/x264.git
git clone -b v3.2.0 --depth=1 https://aomedia.googlesource.com/aom.git
git clone -b 0.9.2 --depth=1 https://code.videolan.org/videolan/dav1d.git
git clone -b release-3.0.3 --depth=1 https://github.com/sekrit-twc/zimg.git
git clone -b sdk/10.0 --depth=1 https://github.com/FFmpeg/nv-codec-headers.git
git clone -b release/4.4 --depth=1 https://git.ffmpeg.org/ffmpeg.git
build-packages:
- gcc-10
- g++-10
- rsync
# Qt
- build-essential
- autotools-dev
- binutils-gold
- bison
- cdbs
- cmake
- flex
- freetds-dev
- git
- gnome-keyring
- gperf
- libasound2-dev
- libatspi2.0-dev
- libaudio-dev
- libbluetooth-dev
- libc6
- libcap-dev
- libclang-6.0-dev
- libcups2-dev
- libdbus-1-dev
- libedit-dev
- libegl1-mesa-dev
- libevent-dev
- libflac++-dev
# - libfontconfig1-dev
# - libfreetype6-dev
- libgcc1
- libgconf2-dev
- libgcrypt20-dev
- libgeoclue-2-dev
- libgl1-mesa-dev
- libglib2.0-dev
- libglu1-mesa-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- libgtk2.0-dev
- libgtk-3-dev
- libharfbuzz-dev
- libhunspell-dev
- libice-dev
- libicu-dev
- libjpeg-dev
- libjsoncpp-dev
- libmng-dev
- libmtdev-dev
- libmysqlclient-dev
- libnss3-dev
- libpci-dev
- libpng-dev
- libpq-dev
- libproxy-dev
- libsm-dev
- libsocketcan-dev
- libsqlite3-0
- libsqlite3-dev
- libsrtp2-dev
- libssl-dev
- libstdc++6
- libtiff5-dev
- libudev-dev
- libvulkan-dev
- libwayland-dev
- libwayland-egl1-mesa
- libx11-dev
- libx11-xcb1
- libx11-xcb-dev
- libxcb1
- libxcb1-dev
- libxcb-dri3-dev
- libxcb-glx0-dev
- libxcb-icccm4
- libxcb-icccm4-dev
- libxcb-image0
- libxcb-image0-dev
- libxcb-keysyms1
- libxcb-keysyms1-dev
- libxcb-randr0-dev
- libxcb-render0-dev
- libxcb-render-util0-dev
- libxcb-shape0-dev
- libxcb-shm0-dev
- libxcb-sync0-dev
- libxcb-sync-dev
- libxcb-util-dev
- libxcb-xfixes0-dev
- libxcb-xinerama0-dev
- libxcb-xinput-dev
- libxcomposite-dev
- libxcursor-dev
- libxext-dev
- libxft-dev
- libxi-dev
- libxinerama-dev
- libxkbcommon-dev
- libxkbcommon-x11-dev
- libxkbfile-dev
- libxrandr-dev
- libxrender-dev
- libxslt1-dev
- libxss-dev
- libxt-dev
- libxtst-dev
- llvm-6.0
- mesa-common-dev
- ninja-build
- pkg-config
- python2
- python3
- quilt
- re2c
- ruby
- unixodbc-dev
- zlib1g-dev
# kdoctools
- docbook-xml
- docbook-xsl
# kwindowsystem
- libxcb-res0-dev
# polkit-qt-1
- libpolkit-gobject-1-dev
- libpolkit-agent-1-dev
# kactivities
- libboost-dev
# kfilemetadata
- xattr
- libattr1-dev
# baloo
- liblmdb-dev
# kapidox
- python3-setuptools
# kcalendarcore
- libical-dev
# khtml
- libgif-dev
# modemmanager-qt
- modemmanager-dev
# networkmanager-qt
- libnm-dev
# prison
- libqrencode-dev
- libdmtx-dev
# libkdegames
- libsndfile1-dev
# ffmpeg & dependencies
- flite1-dev
- frei0r-plugins-dev
- ladspa-sdk
- libaribb24-dev
- libass-dev
- libbluray-dev
- libbs2b-dev
- libbz2-dev
- libcaca-dev
- libcdio-paranoia-dev
- libchromaprint-dev
- libcodec2-dev
- libdc1394-dev
- libdrm-dev
- libffmpeg-nvenc-dev
- libfontconfig-dev
- libfreetype-dev
- libfribidi-dev
- libgme-dev
- libgnutls28-dev
- libgsm1-dev
- libiec61883-dev
- libavc1394-dev
- libjack-jackd2-dev
- liblilv-dev
- liblzma-dev
- libmp3lame-dev
- libmysofa-dev
- libopenal-dev
- libomxil-bellagio-dev
- libopencore-amrnb-dev
- libopencore-amrwb-dev
- libopenjp2-7-dev
- libopenmpt-dev
- libopus-dev
- libpulse-dev
- librabbitmq-dev
- librubberband-dev
- librsvg2-dev
- libsctp-dev
- libshine-dev
- libsmbclient-dev
- libsnappy-dev
- libsoxr-dev
- libspeex-dev
- libssh-gcrypt-dev
- libtesseract-dev
- libtheora-dev
- libtwolame-dev
- libva-dev
- libvdpau-dev
- libvidstab-dev
- libvo-amrwbenc-dev
- libvorbis-dev
- libvpx-dev
- libwebp-dev
- libx265-dev
- libxml2-dev
- libxv-dev
- libxvidcore-dev
- libxvmc-dev
- libzmq3-dev
- libzvbi-dev
- ocl-icd-opencl-dev
- texinfo
- nasm
- pkg-kde-tools
- cleancss
- doxygen
- node-less
- tree
- yasm
- libxxhash-dev
- try:
- libmfx-dev
stage-packages:
# Qt
- libdbus-1-3
- libegl1
- libfontconfig1
- libfreetype6
- libgl1
- libglib2.0-0
- libgtk-3-0
- libharfbuzz0b
- libicu66
- libpcre2-16-0
- libpng16-16
- libssl1.1
- libwayland-client0
- libwayland-cursor0
- libwayland-egl1
- libx11-6
- libx11-xcb1
- libxcb1
- libxcb-glx0
- libxcb-icccm4
- libxcb-image0
- libxcb-keysyms1
- libxcb-randr0
- libxcb-render0
- libxcb-render-util0
- libxcb-shape0
- libxcb-shm0
- libxcb-sync1
- libxcb-util1
- libxcb-xfixes0
- libxcb-xinerama0
- libxcb-xinput0
- libxcb-xkb1
- libxcursor1
- libxkbcommon0
- libxkbcommon-x11-0
- zlib1g
- libevent-2.1-7
- libice6
- libjpeg-turbo8
- libminizip1
- libnspr4
- libnss3
- libre2-5
- libsm6
- libasn1-8-heimdal
- libgssapi3-heimdal
- libhcrypto4-heimdal
- libheimbase1-heimdal
- libheimntlm0-heimdal
- libhx509-5-heimdal
- libkrb5-26-heimdal
- libldap-2.4-2
- libltdl7
- libmtdev1
- libmysqlclient21
- libodbc1
- libpq5
- libroken18-heimdal
- libsasl2-2
- libsybdb5
- libwind0-heimdal
# qtconnectivity
- libbluetooth3
# qttools
- libclang1-6.0
- libllvm6.0
# qtgamepad
# - libsdl2-2.0-0
# qtimageformats
- libmng2
- libwebpdemux2
# qtmultimedia
- libgstreamer-gl1.0-0
- libgstreamer-plugins-base1.0-0
- libgstreamer1.0-0
- libgudev-1.0-0
- liborc-0.4-0
# qtwebengine
- libxslt1.1
# kwindowsystem
- libxcb-res0
# polkit-qt-1
- libpolkit-agent-1-0
- libpolkit-gobject-1-0
# sonnet
- libhunspell-1.7-0
# phonon
- libpulse-mainloop-glib0
# knotifications
- libxtst6
# kfilemetadata
# - libaom0
# - libavcodec58
# - libavformat58
# - libavutil56
# - libswresample3
- libmp3lame0
- libva-drm2
- libva-x11-2
- libva2
- libvdpau1
- libwavpack1
# - libx264-155
# plasma-framework
- libopengl0
# baloo
- liblmdb0
# kcalendarcore
- libical3
# khtml
- libgif7
# prison
- libdmtx0b
- libqrencode4
# ffmpeg & dependencies
- libasound2
- libasyncns0
- libavc1394-0
- libbluray2
- libbs2b0
- libcaca0
- libcairo-gobject2
- libcairo2
- libcdio-cdda2
- libcdio-paranoia2
- libcdio18
- libchromaprint1
- libcodec2-0.9
- libdatrie1
- libdc1394-25
- libfftw3-double3
- libflac8
- libflite1
- libgdk-pixbuf2.0-0
- libglvnd0
- libglx0
- libgme0
- libgomp1
- libgsm1
- libiec61883-0
- libjack-jackd2-0
- liblilv-0-0
- libmfx1
- libmpg123-0
- libmysofa1
- libnorm1
- libnuma1
- libogg0
- libopenal1
- libopenjp2-7
- libopenmpt0
- libopus0
- libpango-1.0-0
- libpangocairo-1.0-0
- libpangoft2-1.0-0
- libpgm-5.2-0
- libpixman-1-0
- libpulse0
- librabbitmq4
- libraw1394-11
- librsvg2-2
- librubberband2
- libsamplerate0
- libserd-0-0
- libshine3
- libslang2
- libsnappy1v5
- libsndfile1
- libsndio7.0
- libsodium23
- libsord-0-0
- libsoxr0
- libspeex1
- libsratom-0-0
- libssh-gcrypt-4
- libthai0
- libtheora0
- libtwolame0
- libusb-1.0-0
- libvidstab1.1
- libvorbis0a
- libvorbisenc2
- libvorbisfile3
- libvpx6
- libwebp6
- libwebpmux3
- libx265-179
- libxi6
- libxinerama1
- libxml2
- libxrandr2
- libxrender1
- libxss1
- libxv1
- libxvidcore4
- libxxf86vm1
- libzmq5
- libzvbi0
- ocl-icd-libopencl1
- libass9
- libglu1-mesa
- freeglut3
- libxxhash0
- to amd64: [libmfx1]
stage:
# remove ffmpeg libs as they come from ffmpeg part
- -usr/lib/x86_64-linux-gnu/libavcodec.so.58*
- -usr/lib/x86_64-linux-gnu/libavutil.so.56*
- -usr/lib/x86_64-linux-gnu/libswresample.so.3*
as previously mentioned I used on
and try
as described in the documentation here https://snapcraft.io/docs/snapcraft-advanced-grammar .
I’ve taken a look at other snaps such as the ffmpeg snap maintained by snapcrafters and it uses on
for libcrystalhd3
,which is only available on amd64 and i386.
So to me it looks like I’m doing the exact same thing for libmfx1
in my snap.
ogra
January 6, 2022, 4:41pm
4
let me bet … you have another libmfx1 entry somewhere in one of the gazillion parts that snapcraft.yaml has (or even in the same part) …
on
and to
indeed only function if that lib is not already pulled in elsewhere already …
1 Like
Ah I feel dumb now, yep there was a duplicate entry in the same part. Thanks for pointing it out , all working as expected now.
1 Like