Comment 1 for bug 1590831

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

First of all, I agree that an empty prefix is odd. However, the FHS of which /usr and /usr/local are a part really doesn't mean much when we're talking about snaps. For example, there's no concern about interoperability, or arch-dependent directories. The author could ship all binaries in $SNAP/bin and ship all config files in $SNAP/config, or just ship everything flat in the $SNAP, and it doesn't matter. I guess what I'm getting at is that using /usr or /usr/local as a default doesn't really seem to make sense in this context either.

Perhaps the best solution would be to remove the default prefix all together (if using destdir), so the project can use its own defaults. That way snapcraft doesn't try to force the "new" or the "old" ways of doing things upon projects by default. Would that work?