bugaevc / wl-clipboard

Command-line copy/paste utilities for Wayland
GNU General Public License v3.0
1.52k stars 59 forks source link

dependency in x11-utils? #202

Closed juanolon closed 10 months ago

juanolon commented 10 months ago

Hello, when installing wl-clipboard through apt-get, it requires dependencies x11-utils and x11-xserver-utils. isn't this exclusively for wayland? or what i missing?

Thanks

user@laptop:~$ sudo apt install wl-clipboard 
[sudo] password for juanolon: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  cpp cpp-12 libauthen-sasl-perl libclone-perl libdata-dump-perl libencode-locale-perl
  libfile-basedir-perl libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
  libfont-afm-perl libfontenc1 libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl libio-stringy-perl libipc-system-simple-perl libisl23
  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmpc3 libmpfr6
  libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
  libregexp-ipv6-perl libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
  libwww-perl libwww-robotrules-perl libx11-protocol-perl libxaw7 libxcb-shape0 libxkbfile1
  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxpm4 libxv1 libxxf86dga1
  perl-openssl-defaults x11-utils x11-xserver-utils xdg-utils
Suggested packages:
  cpp-doc gcc-12-locales cpp-12-doc libdigest-hmac-perl libgssapi-perl libcrypt-ssleay-perl
  libsub-name-perl libbusiness-isbn-perl libauthen-ntlm-perl libunicode-map8-perl
  libunicode-string-perl xml-twig-tools debhelper mesa-utils nickle cairo-5c xorg-docs-core
The following NEW packages will be installed:
  cpp cpp-12 libauthen-sasl-perl libclone-perl libdata-dump-perl libencode-locale-perl
  libfile-basedir-perl libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl
  libfont-afm-perl libfontenc1 libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl libio-stringy-perl libipc-system-simple-perl libisl23
  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmpc3 libmpfr6
  libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl
  libregexp-ipv6-perl libtie-ixhash-perl libtimedate-perl libtry-tiny-perl liburi-perl
  libwww-perl libwww-robotrules-perl libx11-protocol-perl libxaw7 libxcb-shape0 libxkbfile1
  libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxpm4 libxv1 libxxf86dga1
  perl-openssl-defaults wl-clipboard x11-utils x11-xserver-utils xdg-utils
0 upgraded, 58 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.8 MB of archives.
After this operation, 49.4 MB of additional disk space will be used.
bugaevc commented 10 months ago

Hi!

I am not responsible for maintaining the wl-clipboard package in Debian (that would be @fsateler), and I was quite surprised myself when I discovered how many dependencies the wl-clipboard Debian package brings in, especially contrasted with how minimal I try to keep the actual dependency list of wl-clipboard.

That being said, I suspect that this huge list of dependencies comes from the xdg-utils optional dependency. wl-clipboard wants xdg-mime specifically, but I imagine there are X11-related XDG utilities in that package. You can try using apt's --no-install-recommends flag to install wl-clipboard without the xdg-utils dependency, but keep in mind that this will turn off type autodetection in wl-copy.

fsateler commented 10 months ago

Indeed it does come from xdg-utils. That said, I always seem to have it already installed. I could demote the dependency to suggests if you want.

bugaevc commented 10 months ago

I'm fine with Recommends 🙂, but it is unfortunate how much xdg-utils brings in.

Hopefully we may be able to swap xdg-mime for file in a future release (https://github.com/bugaevc/wl-clipboard/pull/97); that should bring in less.

juanolon commented 10 months ago

ah okey. i see. thanks for the explanation