Need variable for arch triplet in yaml

Bug #1664114 reported by Michi Henning
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Unassigned

Bug Description

For the thumbnailer, we need to copy additional libraries into our prime. The problem is that there doesn't appear to be a generic way to refer to the lib directory from inside the yaml. In turn, this leads to ugly hackery such as this:

plugin=$(echo /usr/lib/*/gstreamer-1.0/libgstlibav.so)
mkdir -p $SNAPCRAFT_PART_INSTALL/$(dirname $plugin)
cp $plugin $SNAPCRAFT_PART_INSTALL/$plugin

It would be a lot clearer and more direct to to have an ARCH_TRIPLET variable, so I could say what I mean.

Revision history for this message
Leo Arias (elopio) wrote :

This makes sense, I think I'd find the triplet useful too.
However, note here: https://github.com/snapcore/snapcraft/blob/master/snapcraft/_options.py#L29
that there are many values, and maybe some snaps will want the deb arch instead of the triplet.

We'll have to discuss if we want to expose all those as variables.

Revision history for this message
Michi Henning (michihenning) wrote :

Having the deb arch in addition to the triplet would be useful, too.

Changed in snapcraft:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Christian Dywan (kalikiana)
Changed in snapcraft:
status: Triaged → Fix Released
assignee: Christian Dywan (kalikiana) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.