Hi all,
I’m trying to create a working snap from GNOME Commander using autotools after installing gcc-9.
(I’m using core18 Ubuntu 18.04.5 LTS).
The crafting process goes through, however the path for installing doesn’t seem to be correct, and I don’t now how to get it right:
This is from my snapcraft.yaml:
parts:
gcmd:
source: https://download.gnome.org/sources/gnome-commander/1.10/gnome-commander-1.10.3.tar.xz
plugin: autotools
configflags: [–prefix=/usr/local/]
Below is from the build process:
./configure --prefix= --prefix=/usr/local/
The result can be seen at the bottom right before staging process:
Note that ‘/root/parts/gcmd/install//usr/local/share/gnome-commander’ is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:
- /root/.local/share
- /usr/local/share
- /usr/share
- /var/lib/snapd/desktop
make[3]: Leaving directory ‘/root/parts/gcmd/build/data’
make[2]: Leaving directory ‘/root/parts/gcmd/build/data’
make[1]: Leaving directory ‘/root/parts/gcmd/build/data’
Making install in tests
make[1]: Entering directory ‘/root/parts/gcmd/build/tests’
make[2]: Entering directory ‘/root/parts/gcmd/build/tests’
make[2]: Nothing to be done for ‘install-exec-am’.
make[2]: Nothing to be done for ‘install-data-am’.
make[2]: Leaving directory ‘/root/parts/gcmd/build/tests’
make[1]: Leaving directory ‘/root/parts/gcmd/build/tests’
make[1]: Entering directory ‘/root/parts/gcmd/build’
make[2]: Entering directory ‘/root/parts/gcmd/build’
make[2]: Nothing to be done for ‘install-exec-am’.
make[2]: Nothing to be done for ‘install-data-am’.
make[2]: Leaving directory ‘/root/parts/gcmd/build’
make[1]: Leaving directory ‘/root/parts/gcmd/build’
How can the correct path /usr/local/bin be set?