Bug 38219 - чудовищно раздутые зависимости
Summary: чудовищно раздутые зависимости
Status: NEW
Alias: None
Product: Branch p9
Classification: Distributions
Component: ejabberd (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: nbr
QA Contact: qa-p9@altlinux.org
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-03-14 12:28 MSK by Michael Shigorin
Modified: 2021-08-24 11:06 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2020-03-14 12:28:21 MSK
При установке ejabberd 19.02-alt3 на свеженалитый стартеркит http://nightly.altlinux.org/p9/release/alt-p9-xfce-sysv-20200312-x86_64.iso получил следующую картину маслом:

# apt-get install ejabberd
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Следующие дополнительные пакеты будут установлены:
  ImageMagick-tools erlang erlang-base64url erlang-cache_tab erlang-eimp
  erlang-epam erlang-esip erlang-ezlib erlang-fast_tls erlang-fast_xml
  erlang-fast_yaml erlang-jiffy erlang-jose erlang-luerl erlang-mqtree
  erlang-odbc erlang-odbc-server erlang-otp erlang-otp-bin
  erlang-otp-common erlang-p1_mysql erlang-p1_oauth2 erlang-p1_pgsql
  erlang-p1_utils erlang-pkix erlang-riak_client erlang-riak_pb
  erlang-sd_notify erlang-sqlite3 erlang-stringprep erlang-stun erlang-xmpp
  fonts-ttf-dejavu jabber-common libImageMagick6-common libImageMagick6.6
  libcrypt-devel libdb4.7-devel libdbi libde265 libdouble-conversion
  libflif libgdbm-devel libgraphviz libgts libheif liblasi liblqr libnumpy
  libraqm libraw librrd8 libunixODBC2 libwmflite libyaml2 perl-AppConfig
  perl-CBOR-XS perl-CGI perl-Compress-LZF perl-Convert-Bencode
  perl-Image-Base perl-Image-Info perl-Image-Xbm perl-Image-Xpm perl-JSON
  perl-JSON-XS perl-Math-BigInt perl-Math-BigInt-FastCalc perl-Math-BigRat
  perl-Math-Complex perl-Pod-POM perl-RRD perl-Template perl-Time-Piece
  perl-Types-Serialiser perl-YAML-LibYAML perl-common-sense perl-devel
  perl-threads python python-module-apipkg python-module-atomicwrites
  python-module-attrs python-module-backports
  python-module-backports.functools_lru_cache
  python-module-backports.ssl_match_hostname python-module-backports_abc
  python-module-certifi python-module-cycler python-module-dateutil
  python-module-funcsigs python-module-functools32 python-module-futures
  python-module-iniconfig python-module-kiwisolver python-module-matplotlib
  python-module-matplotlib-cairo python-module-matplotlib-gtk3
  python-module-more-itertools python-module-nose python-module-numpy
  python-module-numpy-testing python-module-ordereddict
  python-module-pathlib2 python-module-pkg_resources python-module-pluggy
  python-module-py python-module-pycairo python-module-pycares
  python-module-pycurl python-module-pygobject3 python-module-pyparsing
  python-module-pytest python-module-pytz python-module-scandir
  python-module-simplejson python-module-singledispatch python-module-six
  python-module-subprocess32 python-module-tornado python-module-z3c
  python-module-zc python-module-zope python-module-zope.interface
  python-modules-bsddb python-modules-ctypes python-modules-curses
  python-modules-distutils python-modules-hotshot python-modules-json
  python-modules-logging python-modules-multiprocessing
  python-modules-wsgiref python-strict pytz-zoneinfo rabbitmq-server
  rpm-macros-jabber tsung
[...]
0 будет обновлено, 139 новых установлено, 0 пакетов будет удалено и 21 не будет обновлено.
Необходимо получить 63,6MB архивов.
После распаковки потребуется дополнительно 169MB дискового пространства.
Продолжить? [Y/n] _

Мне кажется, что где-то по дороге сюда закралось *очень* много лишнего.

На p6 выглядело так (относительно hsh --ini и за вычетом libssl и т.п.):

<13>Mar 14 09:18:49 rpmi: rpm-macros-jabber-0.3-alt1 installed
<13>Mar 14 09:18:49 rpmi: jabber-common-0.3-alt1 installed
<13>Mar 14 09:18:50 rpmi: erlang-R14B.3-alt1.M60P.1 installed
<13>Mar 14 09:18:50 rpmi: erlang-otp-common-R14B.3-alt1.M60P.1 installed
<13>Mar 14 09:18:50 rpmi: erlang-otp-bin-R14B.3-alt1.M60P.1 installed
<13>Mar 14 09:18:50 rpmi: erlang-otp-R14B.3-alt1.M60P.1 installed

На p7 аналогично; на p8 список зависимостей уже раздулся (причём это ещё краткая выжимка того, что меня особенно поразило):

<13>Mar 14 09:21:05 rpmi: libwebp7-0.6.0-alt0.M80P.1 1504535279 installed
<13>Mar 14 09:21:06 rpmi: libwayland-client-1.14.0-alt0.M80P.1 1502720505 installed
<13>Mar 14 09:21:06 rpmi: tcl-8.5.9-alt2 1351878908 installed
<13>Mar 14 09:21:06 rpmi: su-0.60-alt34 1450064792 installed
<13>Mar 14 09:21:07 rpmi: libnspr-1:4.21-alt1.M80P.1 p8+236175.340.41.1 1569903366 installed
<13>Mar 14 09:21:07 rpmi: libnss-3.45.0-alt0.M80P.1 p8+236175.420.41.1 1569903726 installed
<13>Mar 14 09:21:07 rpmi: perl-libwww-6.15-alt1 1449505512 installed
<13>Mar 14 09:21:07 rpmi: pam0_console-1:0.99.10.1-alt2 1317814141 installed
<13>Mar 14 09:21:07 rpmi: rpm-build-xdg-0.2-alt1 1250461503 installed
<13>Mar 14 09:21:08 rpmi: icon-theme-hicolor-0.17-alt1 1505715846 installed
<13>Mar 14 09:21:08 rpmi: libGL-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206366 installed
<13>Mar 14 09:21:10 rpmi: fontconfig-2.12.6-alt1.M80P.1 1506008914 installed
<13>Mar 14 09:21:11 rpmi: libp11-kit-0.23.8-alt1.M80P.1 1504877579 installed
<13>Mar 14 09:21:11 rpmi: libgtk+2-2.24.31-alt1 1473461664 installed
<13>Mar 14 09:21:11 rpmi: erlang-fast_xml-1.1.29-alt1.M80P.1 1527521517 installed
<13>Mar 14 09:21:11 rpmi: erlang-stringprep-1.0.11-alt1.M80P.1 1527521455 installed
<13>Mar 14 09:21:11 rpmi: erlang-base64url-1.0-alt1.M80P.1 1527522177 installed
<13>Mar 14 09:21:11 rpmi: erlang-jiffy-0.14.8-alt1.M80P.1 1527521811 installed
<13>Mar 14 09:21:11 rpmi: erlang-fast_tls-1.0.21-alt1.M80P.1 1527521395 installed
<13>Mar 14 09:21:12 rpmi: erlang-stun-1.0.21-alt1.M80P.1 1527522526 installed
<13>Mar 14 09:21:12 rpmi: erlang-esip-1.0.22-alt1.M80P.1 1527522592 installed
<13>Mar 14 09:21:13 rpmi: icon-theme-adwaita-3.24.0-alt0.M80P.1 1504567873 installed
<13>Mar 14 09:21:13 rpmi: erlang-jose-1.8.4-alt1.M80P.1 1527522307 installed
<13>Mar 14 09:21:13 rpmi: tk-8.5.9-alt3 1308047276 installed
<13>Mar 14 09:21:13 rpmi: dbus-tools-gui-1.10.24-alt4.M80P.1 1518773289 installed
<13>Mar 14 09:21:13 rpmi: erlang-common_test-common-1:20.1.3-alt3.M80P.1 1530040875 installed
<13>Mar 14 09:21:14 rpmi: ImageMagick-tools-6.9.4.7-alt2.M80P.1 1512063449 installed
<13>Mar 14 09:21:14 rpmi: erlang-eimp-1.0.4-alt1.M80P.1 1527522469 installed
<13>Mar 14 09:21:14 rpmi: erlang-cache_tab-1.0.13-alt1.M80P.1 1527521333 installed
<13>Mar 14 09:21:14 rpmi: erlang-fast_yaml-1.0.13-alt1.M80P.1 1527521657 installed
<13>Mar 14 09:21:14 rpmi: erlang-iconv-1.0.7-alt1.M80P.1 1527523138 installed
<13>Mar 14 09:21:14 rpmi: libpolkit-0.113-alt2 1469643484 installed
<13>Mar 14 09:21:14 rpmi: colord-1.3.5-alt0.M80P.1 1488875994 installed
<13>Mar 14 09:21:14 rpmi: libgtk+3-3.22.26-alt0.M80P.1 1510825424 installed
<13>Mar 14 09:21:15 rpmi: libwebkitgtk3-2.4.11-alt2.M80P.1 1504585432 installed
<13>Mar 14 09:21:16 rpmi: libwxGTK3.1-3.1.0-alt7 1456895973 installed
<13>Mar 14 09:21:16 rpmi: erlang-visual-common-1:20.1.3-alt3.M80P.1 1530040875 installed
<13>Mar 14 09:21:16 rpmi: erlang-visual-1:20.1.3-alt3.M80P.1 1530040875 installed
<13>Mar 14 09:21:16 rpmi: erlang-common_test-1:20.1.3-alt3.M80P.1 1530040875 installed
<13>Mar 14 09:21:16 rpmi: erlang-epam-1.0.4-alt1.M80P.1 1527522829 installed
<13>Mar 14 09:21:16 rpmi: erlang-ezlib-1.0.4-alt1.M80P.1 1527522890 installed
<13>Mar 14 09:21:16 rpmi: erlang-goldrush-0.1.9-alt1.M80P.1 1527521163 installed
<13>Mar 14 09:21:16 rpmi: erlang-lager-3.4.2-alt1.M80P.1 1527521216 installed
<13>Mar 14 09:21:16 rpmi: erlang-luerl-0.3-alt1.M80P.1 1527523193 installed
<13>Mar 14 09:21:16 rpmi: erlang-p1_mysql-1.0.5-alt1.M80P.1 1527522652 installed
<13>Mar 14 09:21:16 rpmi: erlang-p1_oauth2-0.6.2-alt1.git5806c87.M80P.1 1527522124 installed
<13>Mar 14 09:21:16 rpmi: erlang-p1_pgsql-1.1.5-alt1.M80P.1 1527522704 installed
<13>Mar 14 09:21:16 rpmi: erlang-riak_pb-2.3.2-alt1.M80P.1 1527523019 installed
<13>Mar 14 09:21:16 rpmi: erlang-riak_client-2.5.3-alt1.M80P.1 1527523079 installed
<13>Mar 14 09:21:16 rpmi: erlang-sd_notify-1.0-alt2.M80P.1 1527523249 installed
<13>Mar 14 09:21:16 rpmi: erlang-sqlite3-1.1.6-alt1.M80P.1 1527522762 installed
<13>Mar 14 09:21:16 rpmi: erlang-odbc-1:20.1.3-alt3.M80P.1 1530040875 installed
<13>Mar 14 09:21:16 rpmi: erlang-odbc-server-1:20.1.3-alt3.M80P.1 1530040875 installed

Т.е. при установке одного сервиса, раньше прекрасно обходившегося без горки околографических библиотек, теперь мы получаем и их, и ещё один сервис, и su, и модули pam, плюс tcl/tk в довесок.
Comment 1 Aleksei Nikiforov 2020-03-16 10:30:35 MSK
Мне кажется связано с bug #36925
Comment 2 Vitaly Lipatov 2021-08-24 11:06:56 MSK
Проверил в Сизифе.

Вытягивается пакет erlang-common_test через erlan-lager:


 # rpm -ev erlang-common_test
error: Failed dependencies:
	erlang_mod(ct) is needed by (installed) erlang-lager-3.9.2-alt1.noarch

 # rpm -ev erlang-lager
error: Failed dependencies:
	erlang_mod(lager) is needed by (installed) ejabberd-21.07-alt1.noarch
	erlang_mod(lager_config) is needed by (installed) ejabberd-21.07-alt1.noarch
	erlang-lager is needed by (installed) ejabberd-21.07-alt1.noarch

А уже erlang-common_test тянет erlang-visual напрямую:
 # rpm -q --requires erlang-common_test
erlang-common_test-common = 1:21.3.6-alt4:sisyphus+269927.100.1.1
erlang-visual = 1:21.3.6-alt4:sisyphus+269927.100.1.1

А erlang-visual содержит что-то на wxGTK.

Ну и  
# rpm -ev ImageMagick-tools
error: Failed dependencies:
	/usr/bin/convert is needed by (installed) ejabberd-21.07-alt1.noarch

который у нас традиционно тянет графику на сервера
https://bugzilla.altlinux.org/39033