Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814026 - app-misc/khard-0.17.0-r1 uses a probably incorrect DISTUTILS_USE_SETUPTOOLS value
Summary: app-misc/khard-0.17.0-r1 uses a probably incorrect DISTUTILS_USE_SETUPTOOLS v...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andriy Utkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DISTUTILS_USE_SETUPTOOLS
  Show dependency tree
 
Reported: 2021-09-20 10:36 UTC by Agostino Sarubbo
Modified: 2021-12-21 18:15 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,56.14 KB, text/plain)
2021-09-20 10:36 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-09-20 10:36:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/khard-0.17.0-r1 uses a probably incorrect DISTUTILS_USE_SETUPTOOLS value.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
entry_points no longer use setuptools at runtime.
Comment 1 Agostino Sarubbo gentoo-dev 2021-09-20 10:36:38 UTC
Created attachment 740283 [details]
build.log

build log and emerge --info
Comment 2 Andriy Utkin (RETIRED) gentoo-dev 2021-11-16 17:16:37 UTC
Doesn't reproduce.

The build.log you attached lists

> * QA Notice: DISTUTILS_USE_SETUPTOOLS value is probably incorrect
> *   have:     DISTUTILS_USE_SETUPTOOLS=rdepend
> *   expected: (unset)

I can't find the logic in current eclasses, nor in portage's install-qa-check.d.
Has the code producing this notice been dropped?
Does that mean I can close the bug?
If not, may I ask for some explanation why there's a suspicion of incorrectness?
Comment 3 Ionen Wolkens gentoo-dev 2021-11-16 17:36:49 UTC
It's from install-qa-check.d/60distutils-use-setuptools

I just gave it a try (on ~amd64) and it was there for me:

 * Messages for package app-misc/khard-0.17.0-r1:
 * Log file: /var/log/portage/app-misc:khard-0.17.0-r1:20211116-173030.log.gz

 * QA Notice: DISTUTILS_USE_SETUPTOOLS value is probably incorrect
 *   have:     DISTUTILS_USE_SETUPTOOLS=rdepend
 *   expected: (unset)

Do you have qa in PORTAGE_ELOG_CLASSES? Without it, it'll be earlier in your build log rather than shown at the end.

The QA check looks at the package's dependencies (as set by upstream), if setuptools is not listed then it suspects it may be wrong to be RDEPEND.

That may not always be right though, perhaps upstream is missing a dependency (in which case could patch and report upstream), preferable to check if it runs fine without it to be sure (fwiw my binpkg-only server doesn't have setuptools, so it matters)
Comment 4 Andriy Utkin (RETIRED) gentoo-dev 2021-12-21 16:41:39 UTC
The default value, bdepend, seems reasonable in this case.
I'm going to drop the line `DISTUTILS_USE_SETUPTOOLS=rdepend` from both ebuilds (which are stable). We certainly don't want to trigger rebuilds.
For the record, that line was introduced by commits 0667adfa7f4d, cca5e801c584.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-21 16:48:12 UTC
(FWIW the QA tooling and the upstream behaviour has actually changed recently here.)
Comment 6 Larry the Git Cow gentoo-dev 2021-12-21 16:49:33 UTC
The bug has been referenced in the following commit(s):

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

commit 962282cf2a9b32076b902323645463bf532f6016
Author:     Andrey Utkin <andrey_utkin@gentoo.org>
AuthorDate: 2021-12-21 16:44:15 +0000
Commit:     Andrey Utkin <andrey_utkin@gentoo.org>
CommitDate: 2021-12-21 16:49:19 +0000

    app-misc/khard: drop incorrect distutils eclass setting
    
    Bug: https://bugs.gentoo.org/814026
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>

 app-misc/khard/khard-0.13.0-r1.ebuild | 1 -
 app-misc/khard/khard-0.17.0-r1.ebuild | 1 -
 2 files changed, 2 deletions(-)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-21 18:12:24 UTC
(In reply to Andrey Utkin from comment #4)
> The default value, bdepend, seems reasonable in this case.
> I'm going to drop the line `DISTUTILS_USE_SETUPTOOLS=rdepend` from both
> ebuilds (which are stable). We certainly don't want to trigger rebuilds.
> For the record, that line was introduced by commits 0667adfa7f4d,
> cca5e801c584.

I'm interested in why you couldn't see the warning. Could you see it in the end?

(Again note that behaviour did change.)
Comment 8 Andriy Utkin (RETIRED) gentoo-dev 2021-12-21 18:15:41 UTC
I managed to see the warning after setting PORTAGE_ELOG_CLASSES=qa .