Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787032 - random/package: build failure because a DEPEND is not scheduled before
Summary: random/package: build failure because a DEPEND is not scheduled before
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 782604 784629 787035 787728 787836 787917 787974 787977 792399 794865 847265 860018 883971 895966 934627 934986 (view as bug list)
Depends on:
Blocks: 155723
  Show dependency tree
 
Reported: 2021-04-30 06:17 UTC by Agostino Sarubbo
Modified: 2024-07-13 16:01 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,21.27 KB, text/plain)
2021-04-30 06:17 UTC, Agostino Sarubbo
Details
parsebib.log (parsebib.log,41.06 KB, text/plain)
2023-12-20 11:14 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-04-30 06:17:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: kde-apps/libkexiv2-21.04.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-30 06:17:31 UTC
Created attachment 704139 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-04-30 06:17:32 UTC
Possible context of error(s):

  Could not find a package configuration file provided by "Qt5Gui" with any
Comment 3 Andreas Sturmlechner gentoo-dev 2021-04-30 06:28:28 UTC
dev-qt/qtgui is in DEPEND/RDEPEND.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-30 06:29:11 UTC
(In reply to Andreas Sturmlechner from comment #3)
> dev-qt/qtgui is in DEPEND/RDEPEND.

Right, just like https://bugs.gentoo.org/787035#c3 from today and the same in the past.

What is going on here?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-30 06:30:30 UTC
I think I said this in the past but you really want —-complete-graph and possibly even —-deep when running a tinderbox style operation (straight from Zac), otherwise various deps will not be satisfied at later steps.
Comment 6 Agostino Sarubbo gentoo-dev 2021-04-30 06:38:39 UTC
I don't see qtgui in the emerge history and by default it is not installed
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-30 06:39:20 UTC
(In reply to Agostino Sarubbo from comment #6)
> I don't see qtgui in the emerge history and by default it is not installed

So why doesn’t emerge want to install it?

What does emerge -pv qtgui say?
Comment 8 Andreas Sturmlechner gentoo-dev 2021-04-30 18:35:04 UTC
(In reply to Agostino Sarubbo from comment #6)
> I don't see qtgui in the emerge history and by default it is not installed
The ebuild maintainer cannot possibly do more than correctly define build dependencies, which is the case here.

> * dependency graph for kde-apps/libkexiv2-21.04.0
> `--  kde-apps/libkexiv2-21.04.0  ~amd64 
>   `--  dev-qt/qtgui-5.15.2-r1  (>=dev-qt/qtgui-5.15.2) ~amd64

If you believe there is a bug by dev-qt/qtgui not being present, it can only be in Portage.
Comment 9 Andreas Sturmlechner gentoo-dev 2021-05-01 07:06:29 UTC
*** Bug 787035 has been marked as a duplicate of this bug. ***
Comment 10 Andreas Sturmlechner gentoo-dev 2021-05-01 07:06:35 UTC
*** Bug 784629 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Sturmlechner gentoo-dev 2021-05-03 12:08:19 UTC
And with that, kde proj is outta here.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-03 19:11:53 UTC
*** Bug 787974 has been marked as a duplicate of this bug. ***
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-03 19:12:43 UTC
*** Bug 787836 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-03 19:13:26 UTC
*** Bug 787977 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-03 19:14:12 UTC
Something is definitely wrong here. Several bugs ended up hitting poppler5[qt] bugs where it is already a dep too.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-03 20:01:57 UTC
*** Bug 787917 has been marked as a duplicate of this bug. ***
Comment 17 Zac Medico gentoo-dev 2021-05-03 20:10:41 UTC
(In reply to Sam James from comment #15)
> Something is definitely wrong here. Several bugs ended up hitting
> poppler5[qt] bugs where it is already a dep too.

Yes, it's bug 756199.
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-03 20:11:43 UTC
(In reply to Zac Medico from comment #17)
> (In reply to Sam James from comment #15)
> > Something is definitely wrong here. Several bugs ended up hitting
> > poppler5[qt] bugs where it is already a dep too.
> 
> Yes, it's bug 756199.

Aha, thank you. Is there any chance this is related to bug 787947 too?
Comment 19 Andreas Sturmlechner gentoo-dev 2021-05-03 20:33:16 UTC
*** Bug 787728 has been marked as a duplicate of this bug. ***
Comment 20 Andreas Sturmlechner gentoo-dev 2021-05-27 08:55:55 UTC
*** Bug 792399 has been marked as a duplicate of this bug. ***
Comment 21 Andreas Sturmlechner gentoo-dev 2021-06-10 14:37:08 UTC
*** Bug 794865 has been marked as a duplicate of this bug. ***
Comment 22 Andreas Sturmlechner gentoo-dev 2021-08-23 00:10:52 UTC
*** Bug 782604 has been marked as a duplicate of this bug. ***
Comment 23 Agostino Sarubbo gentoo-dev 2022-05-25 11:17:48 UTC
*** Bug 847265 has been marked as a duplicate of this bug. ***
Comment 24 Joonas Niilola gentoo-dev 2022-06-03 10:34:58 UTC
Think I hit this today multiple times. harfbuzz[cairo] failed to emerge because x11-libs/cairo wasn't installed.
Comment 25 Michael Orlitzky gentoo-dev 2022-08-14 12:20:26 UTC
*** Bug 860018 has been marked as a duplicate of this bug. ***
Comment 26 Michael Orlitzky gentoo-dev 2022-12-20 02:42:56 UTC
*** Bug 883971 has been marked as a duplicate of this bug. ***
Comment 27 Agostino Sarubbo gentoo-dev 2023-02-23 13:41:16 UTC
*** Bug 895966 has been marked as a duplicate of this bug. ***
Comment 28 Agostino Sarubbo gentoo-dev 2023-05-13 06:17:54 UTC
*** Bug 906252 has been marked as a duplicate of this bug. ***
Comment 29 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-12 23:52:40 UTC
All known bugs for this in Portage are fixed as of 3.0.56. Please file new bugs with details, ideally with a reproducer, if it happens again.
Comment 30 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-13 00:35:55 UTC
(I should say: there is still bug 756199, but there's no practical cases we're aware of where that happens right now, so...)
Comment 31 Agostino Sarubbo gentoo-dev 2023-12-20 11:14:05 UTC
Created attachment 880072 [details]
parsebib.log

parsebib.log
Comment 32 Agostino Sarubbo gentoo-dev 2023-12-20 11:14:50 UTC
(In reply to Sam James from comment #29)
> All known bugs for this in Portage are fixed as of 3.0.56. Please file new
> bugs with details, ideally with a reproducer, if it happens again.

Reproduced with parsebib few minutes ago. However I don't really have a reproducer, just emerge parsebib
Comment 33 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-20 11:15:50 UTC
(In reply to Agostino Sarubbo from comment #32)
> (In reply to Sam James from comment #29)
> > All known bugs for this in Portage are fixed as of 3.0.56. Please file new
> > bugs with details, ideally with a reproducer, if it happens again.

new bug please...
Comment 34 Zac Medico gentoo-dev 2023-12-20 17:03:03 UTC
(In reply to Agostino Sarubbo from comment #32)
> Reproduced with parsebib few minutes ago. However I don't really have a
> reproducer, just emerge parsebib

Yeah this deserves a new bug report, and USE flags may be relevant. From stage3 I found these 3 cycles with USE="X acl gmp inotify ssl systemd threads xpm zlib Xaw3d alsa athena cairo dbus dynamic-loading games gfile gif gpm gsettings gtk gui gzip-el harfbuzz imagemagick jit jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png small-ja-dic sound source sqlite svg test tiff toolkit-scroll-bars tree-sitter valgrind webp wide-int xft xml xwidgets":

 * Error: circular dependencies:

(app-emacs/commander-0.7.0-r1:0/0::gentoo, ebuild scheduled for merge) depends on
 (app-emacs/ert-runner-0.8.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (app-emacs/commander-0.7.0-r1:0/0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- app-emacs/commander-0.7.0-r1 (Change USE: -test)

(media-libs/libwebp-1.3.2:0/7::gentoo, ebuild scheduled for merge) depends on
 (media-libs/tiff-4.5.1:0/6::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  (media-libs/libwebp-1.3.2:0/7::gentoo, ebuild scheduled for merge) (buildtime_slot_op)

It might be possible to break this cycle
by applying any of the following changes:
- media-libs/tiff-4.5.1 (Change USE: -webp)
- media-libs/libwebp-1.3.2 (Change USE: -tiff)

(media-libs/harfbuzz-8.2.0:0/6.0.0::gentoo, ebuild scheduled for merge) depends on
 (media-libs/freetype-2.13.2:2/2::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  (media-libs/harfbuzz-8.2.0:0/6.0.0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- media-libs/freetype-2.13.2 (Change USE: -harfbuzz)
Comment 35 Zac Medico gentoo-dev 2024-02-02 00:17:03 UTC
(In reply to Sam James from comment #18)
> (In reply to Zac Medico from comment #17)
> > (In reply to Sam James from comment #15)
> > > Something is definitely wrong here. Several bugs ended up hitting
> > > poppler5[qt] bugs where it is already a dep too.
> > 
> > Yes, it's bug 756199.

Looking at this again, I don't see how find_smallest_cycle could drop an unsatisfied build-time dependency. It could definitely drop a "satisfed" build-time dependency though, as in bug 921333.

> Aha, thank you. Is there any chance this is related to bug 787947 too?

Circular deps like that trigger find_smallest_cycle misbehavior, but find_smallest_cycle should never be able to drop unsatisfied dependencies, and I'm currently clueless about what is causing this.
Comment 36 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-02 00:18:34 UTC
It's worth noting that the tinderbox case is pathological -- lots of --oneshots.
Comment 37 Agostino Sarubbo gentoo-dev 2024-02-02 11:28:15 UTC
(In reply to Zac Medico from comment #35)
> Looking at this again, I don't see how find_smallest_cycle could drop an
> unsatisfied build-time dependency.

I'm talking for bug 923447 where I had the opportunity to make a set of tests.

In my (pretty empty) stage3 when you want to emerge parsebib you get:

[binary  N    ] acct-group/mail-0-r2-1 
[binary  N    ] app-eselect/eselect-ctags-1.19-1 
[binary  N    ] app-eselect/eselect-emacs-1.19-1 
[binary  N    ] net-libs/liblockfile-1.17-1 
[binary  N    ] app-emacs/emacs-common-1.9-1 
[binary  N    ] app-editors/emacs-29.2-1 
[ebuild  N    ] app-emacs/parsebib-4.3

So I expect that all depend are installed before, but for some reason (note that tinderbox uses emerge -j) emerge history (qlop -mv) is empty in https://923447.bugs.gentoo.org/attachment.cgi?id=883898 that means 2 (or more) possible scenario:

1) app-emacs/parsebib is processed by emerge before all deps get installed
2) DEPEND are calculated in a wrong way and then app-emacs/parsebib is installed like you are using 'emerge -O'

I tried to reproduce manually this issue but I did not get anywhere in the end, however I noticed (especially with parsebib and some emacs ebuild) that I have reproduced the issue a lot of times.
Comment 38 Andreas Sturmlechner gentoo-dev 2024-06-23 19:19:47 UTC
*** Bug 934627 has been marked as a duplicate of this bug. ***
Comment 39 Andreas Sturmlechner gentoo-dev 2024-07-13 16:01:47 UTC
*** Bug 934986 has been marked as a duplicate of this bug. ***