#1104592 spnavcfg: unable to use due to missing / corrupted icons/devices.png (moved to LFS)

Package:
spnavcfg
Source:
spnavcfg
Description:
configurator of 6-axes mice from 3Dconnexion
Submitter:
André Wolski
Date:
2025-06-22 15:13:02 UTC
Severity:
normal
#1104592#5
Date:
2025-05-02 15:13:31 UTC
From:
To:
I am unable to use spnavcfg.
When I start spnavcfg, I'm getting below error dialog,
which prevents me from using the application
(while I see that it has started in the back).

```
spnavcfg was compiled with corrupted icons/devices.png

If you cloned the git repository, you need to enable GIT-LFS and clone
again.
If you don't want to enable LFS, download the latest release archive, and
extract the devices.png file from there, copy it under the icons
directory and
recompile
```

#1104592#10
Date:
2025-06-22 15:10:43 UTC
From:
To:
Dear Maintainer,

	I, too, am seeing the same issue.  Building the package myself
yields the same problem.

	The problem is that the package's source code is being
improperly fetched from the GitHub repo.  The repo relies on Git LFS
(Large File Support).  This feature must be explicitly configured by the
fetching client via `git lfs install`, which makes modest changes to
`$HOME/.gitconfig`.  If this is not done, then the icon files will be
"pointer files" containing the metadata to fetch the file (URL +
SHA256), not the file data itself.  This was clearly not done when
building `spnavcfg_1.2.orig.tar.gz`, resulting in invalid icon files.

	After enabling Git LFS, I was able to build a working copy as
follows:

```
$ mkdir work  &&  cd work
$ sudo apt build-dep spnavcfg
$ apt-get source spnavcfg
$ git clone git@github.com:FreeSpacenav/spnavcfg.git spnavcfg-git
$ cp -av spnavcfg-1.2/debian spnavcfg-git
$ cd spnavcfg-git
$ debuild -b -uc -us
```

	The resulting binary then correctly launches and connects with
`spacenavd`.  Hope this helps.

					Schwab