Public bug reported:
A lot of projects are using --datadir= to ship ui data dir path. Those
paths are store in a generated config.h at compile time most of the
time.
However, using snapcraft autotools plugins, you can't get around it.
Modifying --datadir (like settings it to /snap/<snap_name>/current, what
you shouldn't do as the path can change) will make it installed by the
build system under /snap/<snap_name>/current/snap/<snap_name>/current).
The only way for now is to patch the world, what we want to avoid to be
able to get to latest upstream directly, or convince the world to change
their whole build system to have relocatable path, one project after
another.
This is typically the case for all gettext based project:
any gettext program calls
bindtextdomain ("domain", LOCALEDIR)'
to read translations
where LOCALEDIR is $prefix/usr/locale (set in a config.h)
** Affects: snapcraft (Ubuntu)
Importance: Undecided
Status: New
** Tags: snap-desktop-issue
** Tags added: snap-desktop-issue
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1583250
Title:
No way for dealing without distro patching configure DATADIR (and
alike) path
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1583250/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs