estkme-group/lpac

.deb package has unknown libc dependency

Closed this issue · 2 comments

I've run ./scripts/build.sh debian to create lpac-2.0.1-Linux.deb. It looks like it will install one file, lpac.

$ dpkg -c lpac-2.0.1-Linux.deb 
drwxrwxr-x root/root         0 2024-05-29 13:11 ./usr/
drwxrwxr-x root/root         0 2024-05-29 13:11 ./usr/bin/
-rwxr-xr-x root/root    148920 2024-05-29 13:11 ./usr/bin/lpac
$ 

It also lists a dependency of libc

$ dpkg -I lpac-2.0.1-Linux.deb 
 new Debian package, version 2.0.
 size 49642 bytes: control archive=355 bytes.
     263 bytes,    12 lines      control              
      47 bytes,     1 lines      md5sums              
 Architecture: arm64
 Depends: libc
 Description: C-based eUICC LPA.
 Homepage: https://github.com/estkme-group/lpac
 Maintainer: eSTK.me Group
 Package: lpac
 Priority: optional
 Recommends: libcurl, libpcsclite, pcscd
 Section: devel
 Version: 2.0.1
 Installed-Size: 154
$ 

When I try to install, it errors out because the libc package can't be found.

$ sudo dpkg -i lpac-2.0.1-Linux.deb 
Selecting previously unselected package lpac.
(Reading database ... 159851 files and directories currently installed.)
Preparing to unpack lpac-2.0.1-Linux.deb ...
Unpacking lpac (2.0.1) ...
dpkg: dependency problems prevent configuration of lpac:
 lpac depends on libc; however:
  Package libc is not installed.

dpkg: error processing package lpac (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 lpac
$ 

If I try to manually install libc, that also doesn't work.

$ sudo apt install libc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libc' has no installation candidate
$ 

However, it did install the file lpac

$ which lpac 
/usr/bin/lpac
$ 

and it seems to start up okay

$ lpac 
SCardEstablishContext() failed: 8010001D
APDU driver init failed
$ 

I'm not sure what the libc dependency is about. Is it really needed? Is there a different package that should be referenced instead?

This issue is fixed by #106 . Please close after it has been merged.

It should be libc6.