meson plugin builds to /usr/local by default

Bug #1719348 reported by Alan Pope 🍺🐧🐱 🦄
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Unassigned

Bug Description

The meson plugin appears to put builds by default in /usr/local. This doesn't seem like a sensible default, so most application developers will have to specify --prefix for /usr which seems more common and consistent.

Tags: bitesize
Changed in snapcraft:
status: New → Confirmed
Cris Dywan (kalikiana)
tags: added: bitesize
Revision history for this message
Cris Dywan (kalikiana) wrote :

You'll probably want to add a check in snapcraft/plugins/meson.py _meson_run like "if '--prefix' not in self.options.meson_parameters" and then meson_command.extend() to add it only if it wasn't specified. And don't forget to add it to schema['properties'] at the top of the file.

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.