Git Product home page Git Product logo

Comments (8)

klali avatar klali commented on June 16, 2024

the tool has a dependency on pcscd, I'm thinking the lib should have a recommends instead.
@jas4711 @dainnilsson ?

from libykneomgr-dpkg.

jas4711 avatar jas4711 commented on June 16, 2024

I don't think there is a strong policy on the exact method to achieve the proper dependency here (tool vs lib, depends vs suggests vs recommends) -- and a recommends: pcscd for libykneomgr0 would be fine to me.

from libykneomgr-dpkg.

artem-sidorenko avatar artem-sidorenko commented on June 16, 2024

In the initial issue (Yubico/yubikey-neo-manager-dpkg#2) my problem was the missing dependency but a recommendation. Now we have exact the same picture like before, one issue refers to another one, and the second one is closed as "resolved", somehow funny:)

IMHO, if something is needed to provide the desired functionality its a dependency and not a recommendation (which is optional).

is pcscd required for this library or tool to provide the functionality and work?

I'm not an expert in this area, but for me it was the only one solution to get ykneomgr working (after several hours of troubleshooting, as usually I don't check all recommendations from all possible packages because of reasons above)

from libykneomgr-dpkg.

dainnilsson avatar dainnilsson commented on June 16, 2024

How are you installing? Don't packages in "Recommends" get pulled in automatically by default?

from libykneomgr-dpkg.

artem-sidorenko avatar artem-sidorenko commented on June 16, 2024

I use Mint/Ubuntu with apt-get,

If you check the part of debian manual about dependencies you will find following:

Depends
This declares an absolute dependency. A package will not be configured unless all of the packages listed in its Depends field have been correctly configured (unless there is a circular dependency as described above).

The Depends field should be used if the depended-on package is required for the depending package to provide a significant amount of functionality. 
...
Recommends

This declares a strong, but not absolute, dependency.

The Recommends field should list packages that would be found together with this one in all but unusual installations.
...

So, Depends must be used for deps which are required to provide the functionality, Recommends results to "might be installed together"|"not"|"not usually"

If pcscd is required to do the job IMHO it should be in "Depends" and not "Recommends", but I don't know if pcscd is the only one way here or the library supports some other things like opensc

from libykneomgr-dpkg.

klali avatar klali commented on June 16, 2024

Hello,

I think the key part from the manual is "The Recommends field should list packages that would be found together with this one in all but unusual installations."
The reason we went with Recommends is that pcscd isn't strictly needed for the binaries to run or for building packages depending on these. Unless you use apt-get with --no-install-recommends recommended packages should be installed just as dependencies, do you have a use-case where this is not true?

/klas

from libykneomgr-dpkg.

artem-sidorenko avatar artem-sidorenko commented on June 16, 2024

If I take a look to my default apt configuration, I see following:

$ cat /etc/apt/apt.conf.d/00recommends 
APT::Install-Recommends "false";
Aptitude::Recommends-Important "false";

I don't know if this is a Mint or Ubuntu default (Mint is built on top of Ubuntu), but I have it on all my Mint installations

from libykneomgr-dpkg.

klali avatar klali commented on June 16, 2024

Yeah.. this seams to be a "feature" of mint: https://bugs.launchpad.net/linuxmint/+bug/1266234 there seems to be quite a bit of people with problems due to this and packages being unsupported on mint.

The Yubico packages are built for (and supported) on debian and ubuntu.

from libykneomgr-dpkg.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.