cschwan / sage-on-gentoo

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

sagetex circular dependencies #727

Closed strogdon closed 1 year ago

strogdon commented 1 year ago

Building sage-9.8.beta7 on Prefix with

emerge -1 @sagemath

a gives

[nomerge       ] sci-mathematics/sage-9999::sage-on-gentoo  USE="debug doc jmol latex -X -bliss -meataxe -test" PYTHON_TARGETS="python3_10 python3_11 -python3_9" 
[ebuild     U ~]  dev-tex/sagetex-3.6.1::sage-on-gentoo [3.5-r1::sage-on-gentoo] USE="(-examples%)" PYTHON_TARGETS="python3_10 python3_11%* -python3_9 (-python3_8%)" 835 KiB
[ebuild  N    *]  sci-mathematics/sage-doc-9999::sage-on-gentoo  USE="doc-pdf" L10N="ca de es fr hu it ja pt ru tr" 0 KiB
[ebuild  N    #]   sci-mathematics/sage-9999::sage-on-gentoo  USE="debug doc jmol latex -X -bliss -meataxe -test" PYTHON_TARGETS="python3_10 python3_11 -python3_9" 0 KiB

Total: 3 packages (1 upgrade, 2 new), Size of downloads: 835 KiB

 * Error: circular dependencies:

(dev-tex/sagetex-3.6.1:0/0::sage-on-gentoo, ebuild scheduled for merge) depends on
 (sci-mathematics/sage-9999:0/0::sage-on-gentoo, ebuild scheduled for merge) (buildtime)
  (dev-tex/sagetex-3.6.1:0/0::sage-on-gentoo, ebuild scheduled for merge) (runtime)

It might be possible to break this cycle
by applying the following change:
- sci-mathematics/sage-9999 (Change USE: -latex)

Not sure what to do

$ grep -R sagetex etc/portage/
etc/portage/package.accept_keywords/sage-9999:=dev-tex/sagetex-3*

unless maybe a ~ is missing?

strogdon commented 1 year ago

I have removed sagetex-3.5-r1 with the same result.

strogdon commented 1 year ago

Same issue on gentoo,

kiwifb commented 1 year ago

I think this is case where I just remove the latex flag in sage and remove the dependency and say that you can install the package for extra functionality. The other possibility would be to move sagetex to PDEPEND. I will probably start with that, but removal will be on my mind.

kiwifb commented 1 year ago

7f29c6d34c73df5cbcc3f7d6a30df5df53ec1af7 should fix it.

strogdon commented 1 year ago

The commit fixes things here. No one should see the issue after the commit.

Thanks.