cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

sci-libs/libgap ("sci-libs/libgap" is hard blocking sci-mathematics/gap-4.10.0-r4) #533

Closed WGH- closed 5 years ago

WGH- commented 5 years ago

So I decided to upgrade sage today, I got into a problem:

[ebuild  N    ~] dev-gap/tomlib-1.2.7:0/4.10.0::sage-on-gentoo  294,452 KiB
[ebuild  N    ~] dev-gap/autpgrp-1.10:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/SmallGrp-1.3:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/Alnuth-3.1.0:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/crisp-1.4.4:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild     U ~] dev-gap/GAPDoc-1.6.2:0/4.10.0::sage-on-gentoo [1.5.1:0/0::sage-on-gentoo] 0 KiB
[ebuild  N    ~] dev-gap/laguna-3.9.0:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/polycyclic-2.14:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/radiroot-2.8:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/ctbllib-1.2_p2-r1:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/factint-1.6.2:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/resclasses-4.7.1:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/fga-1.4.0:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/primgrp-3.3.2:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild     U ~] sci-mathematics/gap-4.10.0-r4:0/4.10.0::sage-on-gentoo [4.8.6-r3:0/0::sage-on-gentoo] USE="readline recommended_pkgs%* -emacs -vim-syntax" 0 KiB
[ebuild  N    ~] dev-gap/atlasrep-1.5_p1-r1:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/polenta-1.3.8:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/irredsol-1.4:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/AutoDoc-2018.09.20:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/sophus-1.24:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/utils-0.59:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild  N    ~] dev-gap/transgrp-2.0.4:0/4.10.0::sage-on-gentoo  0 KiB
[ebuild     U ~] sci-mathematics/sage-8.6::sage-on-gentoo [8.5::sage-on-gentoo] USE="-X -bliss -debug -doc-html -doc-html-bin -doc-pdf -doc-pdf-bin -gmpy2 -jmol -latex -modular_decomposition -sagenb -testsuite" L10N="-ca -de -en -es -fr -hu -it -ja -pt -ru -tr" PYTHON_TARGETS="python2_7 python3_6" 22,693 KiB
[blocks B      ] sci-libs/libgap ("sci-libs/libgap" is hard blocking sci-mathematics/gap-4.10.0-r4)
 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sci-mathematics/gap-4.10.0-r4:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge) pulled in by
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/GAPDoc-1.6.2:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/ctbllib-1.2_p2-r1:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    >=sci-mathematics/gap-4.10.0-r4:0/4.10.0[recommended_pkgs] required by (sci-mathematics/sage-8.6:0/0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/polenta-1.3.8:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/factint-1.6.2:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/Alnuth-3.1.0:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/SmallGrp-1.3:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/utils-0.59:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/laguna-3.9.0:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/autpgrp-1.10:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/tomlib-1.2.7:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/polycyclic-2.14:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/sophus-1.24:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/atlasrep-1.5_p1-r1:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/fga-1.4.0:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/radiroot-2.8:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/transgrp-2.0.4:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/crisp-1.4.4:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/primgrp-3.3.2:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/AutoDoc-2018.09.20:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/irredsol-1.4:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
    sci-mathematics/gap:0/4.10.0 required by (dev-gap/resclasses-4.7.1:0/4.10.0::sage-on-gentoo, ebuild scheduled for merge)
WGH- commented 5 years ago
 * These packages depend on sci-libs/libgap:
sci-mathematics/sage-8.5 (~sci-libs/libgap-4.8.6)

Only previous sage verison depends on libgap. I don't get why portage can't just delete it during the upgrade and replace it with sci-mathematics/gap.

kiwifb commented 5 years ago

This is called a hard blocker. The package has to removed before the new one is installed. soft blockers can be removed after the new package is installed and portage can take care of it. But not hard blockers yet. For the rest see https://archives.gentoo.org/gentoo-science/message/dfeb648d8e5456b4c9657617649807c2

You should remove at least libgap, gap and GAPDoc before the upgrade can proceed smoothly. The way I was doing things with gap was not future proof, I hope it will hold the test of time better now.

WGH- commented 5 years ago

Thank you for the explanation, I did the sudo emerge --deselect=n -av -C sci-mathematics/sage sci-libs/libgap thing, and it helped.

By the way, can overlays do the eselect news thing? It would be appropriate to put such notices in there, I think.

kiwifb commented 5 years ago

I have long thought about that and the answer is "I don't know but I should give it a try one day". And for the record I asked a few other devs a few years ago and they didn't know for sure either.

WGH- commented 5 years ago

https://github.com/Gentoo-zh/gentoo-zh/tree/master/metadata/news

This overlay seems to use the news subsystem. I even have /var/lib/gentoo/news/news-gentoo-zh.read file from back when I had it installed.

kiwifb commented 5 years ago

Cool, hum I didn't know about those signature files. I'll have to look it up. Let's close the issue now.