[Pkg-erlang-devel] Bug#798255: erlang-cl: installs non-free packages

Stepan Golosunov stepan at golosunov.pp.ru
Mon Sep 7 11:25:18 UTC 2015


Package: erlang-cl
Version: 1.2.1-2
Severity: important

Installation of erlang-cl pulls in non-free fglrx and nvidia packages:

% apt -s install erlang-cl
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  amd-libopencl1 erlang-base erlang-crypto erlang-syntax-tools
glx-alternative-mesa glx-alternative-nvidia glx-diversions
  libnvidia-compiler libsctp1 lksctp-tools nvidia-alternative
nvidia-installer-cleanup nvidia-modprobe nvidia-opencl-common
  nvidia-opencl-icd
Suggested packages:
  erlang-tools erlang erlang-manpages erlang-doc libgl1-mesa-glx libgl1
nvidia-driver libcuda1
Recommended packages:
  amd-opencl-icd opencl-icd
The following NEW packages will be installed:
  amd-libopencl1 erlang-base erlang-cl erlang-crypto erlang-syntax-tools
glx-alternative-mesa glx-alternative-nvidia
  glx-diversions libnvidia-compiler libsctp1 lksctp-tools
nvidia-alternative nvidia-installer-cleanup nvidia-modprobe
  nvidia-opencl-common nvidia-opencl-icd
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.


Even with --no-install-recommends it pulls amd-opencl-icd:

% apt -s --no-install-recommends install erlang-cl
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  amd-libopencl1 erlang-base
Suggested packages:
  erlang-tools erlang erlang-manpages erlang-doc
Recommended packages:
  amd-opencl-icd opencl-icd libsctp1 erlang-crypto erlang-syntax-tools
The following NEW packages will be installed:
  amd-libopencl1 erlang-base erlang-cl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Inst amd-libopencl1 (1:14.9+ga14.201-2 Debian:8.2/stable [i386])
Inst erlang-base (1:17.3-dfsg-4 Debian:8.2/stable [i386])
Inst erlang-cl (1.2.1-2 Debian:8.2/stable [i386])
Conf amd-libopencl1 (1:14.9+ga14.201-2 Debian:8.2/stable [i386])
Conf erlang-base (1:17.3-dfsg-4 Debian:8.2/stable [i386])
Conf erlang-cl (1.2.1-2 Debian:8.2/stable [i386])


Manual installation of ocl-icd-libopencl1 allows to avoid the issue:

% apt -s install erlang-cl ocl-icd-libopencl1 
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  erlang-base erlang-crypto erlang-syntax-tools libsctp1 lksctp-tools
Suggested packages:
  erlang-tools erlang erlang-manpages erlang-doc opencl-icd
The following NEW packages will be installed:
  erlang-base erlang-cl erlang-crypto erlang-syntax-tools libsctp1
lksctp-tools ocl-icd-libopencl1
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.



Probably ocl-icd-libopencl1 should be listed as a first alternative
either in all libopencl* dependencies or in the first one. Currently
it is listed only in the last one:

% apt-cache show erlang-cl|grep ^Depends: 
Depends: erlang-base (>= 1:17.0-dfsg) | erlang-base-hipe (>=
1:17.0-dfsg), libc6 (>= 2.4), libopencl-1.1-1, libopencl-1.2-1,
ocl-icd-libopencl1 (>= 1.0) | libopencl1



-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (900, 'stable-updates'), (900, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-erlang-devel mailing list