Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809731 - app-emulation/docker-compose-1.29.2 uses a probably incorrect DISTUTILS_USE_SETUPTOOLS value
Summary: app-emulation/docker-compose-1.29.2 uses a probably incorrect DISTUTILS_USE_S...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DISTUTILS_USE_SETUPTOOLS
  Show dependency tree
 
Reported: 2021-08-23 01:35 UTC by Agostino Sarubbo
Modified: 2021-09-10 10:07 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,92.83 KB, text/plain)
2021-08-23 01:35 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-08-23 01:35:18 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/docker-compose-1.29.2 uses a probably incorrect DISTUTILS_USE_SETUPTOOLS value.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Comment 1 Agostino Sarubbo gentoo-dev 2021-08-23 01:35:21 UTC
Created attachment 735199 [details]
build.log

build log and emerge --info
Comment 2 Sebastian Pipping gentoo-dev 2021-08-23 02:07:01 UTC
Hi Ago,

setup.py does have an entry point…

    entry_points={
        'console_scripts': ['docker-compose=compose.cli.main:main'],
    },

…so rdepend seems like the correct value to me.  Any idea why we might be getting false positives here?

I notice that code ": ${DISTUTILS_USE_SETUPTOOLS:=bdepend}" hardly seems to leav any room for DISTUTILS_USE_SETUPTOOLS ever being unset.  Any ideas?
Comment 3 Agostino Sarubbo gentoo-dev 2021-08-23 07:35:08 UTC
Hello Sebastian, I'd say to ask python@ =)
Comment 4 Sebastian Pipping gentoo-dev 2021-08-23 13:22:49 UTC
(In reply to Agostino Sarubbo from comment #3)
> Hello Sebastian, I'd say to ask python@ =)

@python is this an eclass QA check false positive?
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-23 13:47:18 UTC
(In reply to Sebastian Pipping from comment #4)
> (In reply to Agostino Sarubbo from comment #3)
> > Hello Sebastian, I'd say to ask python@ =)
> 
> @python is this an eclass QA check false positive?

No.  You're not reading your announcements.  Entry points are handled using built-in modules since Python 3.8.
Comment 6 Sebastian Pipping gentoo-dev 2021-08-23 13:53:04 UTC
(In reply to Michał Górny from comment #5)
> > @python is this an eclass QA check false positive?
> 
> No.  You're not reading your announcements.

Where? Which one?


> Entry points are handled using
> built-in modules since Python 3.8.

In Gentoo or setuptools upstream or? Please elaborate.
Comment 7 Larry the Git Cow gentoo-dev 2021-08-24 11:31:07 UTC
The bug has been closed via the following commit(s):

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

commit ef01f1d7cfbb9f1b15fad1895a66216e89ca982e
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2021-08-24 11:30:39 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2021-08-24 11:30:39 +0000

    app-emulation/docker-compose: fix setuptools dependency
    
    Closes: https://bugs.gentoo.org/809731
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 app-emulation/docker-compose/docker-compose-1.29.2.ebuild | 1 -
 1 file changed, 1 deletion(-)
Comment 8 Louis Sautier (sbraz) gentoo-dev 2021-08-24 11:36:19 UTC
My bad, I missed the warning when I added Python 3.10.

@Sebastian it's something setuptools upstream changed, I think is the message Michał was referring to: https://archives.gentoo.org/gentoo-dev/message/973c87490da582b9e3fac7e77ec35236

It is also mentioned here: https://dev.gentoo.org/~mgorny/python-guide/distutils.html#setuptools-entry-points
Comment 9 Sebastian Pipping gentoo-dev 2021-08-26 16:03:54 UTC
Thanks Louis for taking care and the links, I appreciate it.