Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935405 - dev-texlive/texlive-latexextra and dev-tex/minted depends directly on each other
Summary: dev-texlive/texlive-latexextra and dev-tex/minted depends directly on each other
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal blocker
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-03 13:44 UTC by Lagu
Modified: 2024-09-01 09:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_935405.txt,8.18 KB, text/plain)
2024-07-04 14:21 UTC, Lagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2024-07-03 13:44:46 UTC
If you check this two links:
https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-texlive/texlive-latexextra/texlive-latexextra-2023_p69752-r4.ebuild
https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-tex/minted/minted-2.9.ebuild

You will notice, each package is listed as dependency for each other, so in a clean system, we will can't build them.

The dependency does not depends on any USE or any condition, so nothing to do-

Reproducible: Always

Steps to Reproduce:
1. emaint sync -A
1. emerge minted or texlive-latexextra
Actual Results:  
 * Error: circular dependencies:

(dev-tex/minted-2.9:0/0::gentoo, ebuild scheduled for merge) depends on
 (dev-texlive/texlive-latexextra-2023_p69752-r4:0/0::gentoo, ebuild scheduled for merge) (runtime)
  (dev-tex/minted-2.9:0/0::gentoo, ebuild scheduled for merge) (runtime)

Expected Results:  
Be able to build.

I was checking info in my system (I found this in a new chroot), and seems minted was before a dependency that was conditional to the "doc" USE, but now is not the case.

I have marked it as a blocker, because anyone who wants to create a new install, is likely don't be able to do it, a lot of apps depends on texlive-latextra, so in the end we can't even install git until this is fixed.

We could track every package and USE that uses texlive-latexextra and disable them, but we can't say is very usable the system in that way.
Comment 1 Florian Schmaus gentoo-dev 2024-07-04 10:34:24 UTC
minted-2.9 has
- RDEPEND on latexextra
- BDEPEND doc? latexextra

texlive-latexextra-2023_p69752-r4 has
- RDEPEND on latexextra

Even though the 'doc' USE flag is known to cause circular dependencies, I am not sure how it could cause one here. I am also not able to reproduce this

$ USE=doc sudo -E emerge -1av texlive-latexextra minted
…
[ebuild  N     ] dev-texlive/texlive-latexextra-2023_p69752-r4::gentoo  USE="doc source" 0 KiB
[ebuild  N    ~] dev-tex/minted-2.9::tex-overlay  USE="doc" 0 KiB

Could you show use the full emerge invocation and its output? Also, which portage version is this?
Comment 2 Lagu 2024-07-04 14:21:57 UTC
Created attachment 896974 [details]
emerge --info
Comment 3 Lagu 2024-07-04 14:28:22 UTC
I'm also confused about this, my main system also shows minted as a dependency on doc use, I was creating a chroot when I found this (for a binary host).

After some research, I noticed the ebuilds on git also shows circular dependency with no doc USE (check the first post).

No idea why the ebuilds are different.

I'm running emerge --emptytree @world

I have read the builds, tested disable uses, but nothing, for example this with the -doc use

[ebuild  N     ]   dev-tex/minted-2.9::gentoo  USE="-doc" 903 KiB
[ebuild  N     ]    dev-texlive/texlive-latexextra-2023_p69752-r4::gentoo  USE="-doc -source" 21311 KiB

This fragments of ebuild will come directly from equery w -e

minted:
RDEPEND="
	dev-python/pygments
	dev-texlive/texlive-latexextra
"

texlive-latexextra

RDEPEND="
	${COMMON_DEPEND}
	!<dev-texlive/texlive-xetex-2023
	>=dev-tex/minted-2.9
"
Comment 4 Lagu 2024-07-04 15:05:40 UTC
I'm checking my system now, seems after an update is the same:

texlive-latexextra:
RDEPEND="
	${COMMON_DEPEND}
	!<dev-texlive/texlive-xetex-2023
	>=dev-tex/minted-2.9
"

minted:
RDEPEND="
	dev-python/pygments
	dev-texlive/texlive-latexextra
"

If want to reprex in your SO, you would need to update the ebuilds, and unmerge both of the packages, then you could reprex this in a current syste.
Comment 5 Lagu 2024-07-23 15:29:11 UTC
Oks, after more tests I found really weird things, but seems not to be related to circular dependency, more about portage dependency solver.

Closing because is other issue with other reprex to follow it.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-01 08:12:40 UTC
(In reply to Lagu from comment #5)
> Oks, after more tests I found really weird things, but seems not to be
> related to circular dependency, more about portage dependency solver.
> 
> Closing because is other issue with other reprex to follow it.

Did you ever file a bug for that?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-01 08:19:31 UTC
What am I missing here? This looks legitimate.

$ cat /var/db/repos/gentoo/metadata/md5-cache/dev-texlive/texlive-latexextra-2023_p69752-r4  | grep -i minted
RDEPEND=>=dev-texlive/texlive-latexrecommended-2023 >=dev-texlive/texlive-pictures-2023 dev-perl/Spreadsheet-ParseExcel !<dev-texlive/texlive-xetex-2023 >=dev-tex/minted-2.9 >=app-text/texlive-core-2023

$ cat /var/db/repos/gentoo/metadata/md5-cache/dev-tex/minted-2.9 | grep latexextra
BDEPEND=doc? ( dev-texlive/texlive-fontsextra dev-texlive/texlive-latexextra ) virtual/latex-base >=sys-apps/texinfo-4.2-r5
RDEPEND=dev-python/pygments dev-texlive/texlive-latexextra virtual/latex-base
Comment 8 Larry the Git Cow gentoo-dev 2024-09-01 09:19:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb8ee50ff876d97c89177ce0c61c4679e19adaed

commit eb8ee50ff876d97c89177ce0c61c4679e19adaed
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-01 09:15:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-01 09:19:12 +0000

    dev-texlive/texlive-latexextra: move dev-tex/minted to PDEPEND
    
    The RDEPEND in texlive-latexextra on dev-tex/minted was a convenience
    dependency because minted used to be bundled.
    
    Unfortunately, we get a cycle:
    ```
    (dev-tex/minted-2.9:0/0::gentoo, ebuild scheduled for merge) depends on
     (dev-texlive/texlive-latexextra-2023_p69752-r4:0/0::gentoo, ebuild scheduled for merge) (runtime)
      (dev-tex/minted-2.9:0/0::gentoo, ebuild scheduled for merge) (runtime)
    ```
    
    Drop the minted dep to PDEPEND given we don't actually need it
    for texlive-lateextra to build, it's just a convenience dep.
    
    Closes: https://bugs.gentoo.org/935405
    Signed-off-by: Sam James <sam@gentoo.org>

 ...a-2023_p69752-r4.ebuild => texlive-latexextra-2023_p69752-r5.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)