Qucs / gnucsator

This package provides a gnucap based qucsator implementation.
GNU General Public License v3.0
13 stars 4 forks source link

Add gnucap-default-plugins0 to gnucap install #8

Closed ddrake closed 3 years ago

ddrake commented 3 years ago

Hi, It's maybe a minor issue, but when I used apt install libgnucap-dev to install gnucap, gnucsator simulations failed until I also installed gnucap-default-plugins0.

Best, Dow

felix-salfelder commented 3 years ago

On Tue, Sep 07, 2021 at 04:52:26PM -0700, Dow Drake wrote:

It's maybe a minor issue, but when I used apt install libgnucap-dev to install gnucap, gnucsator simulations failed until I also installed gnucap-default-plugins0.

Thanks Dow.

On (debian/ubuntu) gnucap recommends gnucap-default-plugins$i. I believe this is in line with [1].

""" "Recommends"

This declares a strong, but not absolute, dependency. Most users
 would not want the package unless all of the packages listed in this
 field are installed.

"""

I wonder how the plugins were not installed on your system.

[1] https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_package_dependencies

ddrake commented 3 years ago

Thanks, Felix. I see your point. I think that if I had installed via apt install gnucap the plugins would have been installed. But I was using the alternative apt install libgnucap-dev which doesn't include the 'recommends' for the plugins (I have no idea why):

$ apt-cache depends libgnucap-dev
libgnucap-dev
  Depends: gnucap-common
  Depends: libgnucap0

whereas

$ apt-cache depends gnucap
gnucap
  Depends: libc6
  Depends: libgcc-s1
  Depends: libgnucap0
  Depends: libstdc++6
  Recommends: gnucap-common
  Recommends: gnucap-default-plugins0

Perhaps an alternative fix could be to remove the apt install libgnucap-dev option from the "setup - install gnucap" section.

Best, Dow

felix-salfelder commented 3 years ago

On Wed, Sep 08, 2021 at 09:17:51AM -0700, Dow Drake wrote:

I see your point. I think that if I had installed via apt install gnucap the plugins would have been installed.

I think I get it now. It was

You correctly read this as A or B or C. Instead it should be this.

I.e. A or (B and C). Better yet

The plugins should still come through recommends. Please confirm, I will make the change.

But I was using the alternative apt install libgnucap-dev which doesn't include the 'recommends' for the plugins (I have no idea why):

libgnucap-dev correctly does not depend on gnucap, so this is correct behaviour. The dependency is the other way round.

Thanks for pointing it all out.

ddrake commented 3 years ago

A or (B and C)

That makes sense! It didn't occur to me...

The plugins should still come through recommends. Please confirm, I will make the change.

Yes, I just tested this and sudo apt install gnucap definitly does install the plugins. Thanks for explaining the dependency situation! I'll go ahead and close this.

Best, Dow