Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727088 - dev-python/black fails to compile
Summary: dev-python/black fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-04 09:23 UTC by Agostino Sarubbo
Modified: 2020-06-09 22:50 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,10.92 KB, text/plain)
2020-06-04 09:23 UTC, Agostino Sarubbo
Details
build.log (gzip) success with dev-python/setuptools_scm (dev-python:black-19.10_beta0:20200606-235551.log.gz,6.61 KB, application/gzip)
2020-06-07 00:07 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-04 09:23:00 UTC
This is an auto-filed bug because dev-python/black fails to compile.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-04 09:23:05 UTC
Created attachment 643376 [details]
build.log

build log and emerge --info
Comment 2 Thibaud CANALE 2020-06-07 00:07:31 UTC
Created attachment 643734 [details]
build.log (gzip) success with dev-python/setuptools_scm

Hello,

I noticed the same issue, fortunately I was able to compile it after I installed the package "dev-python/setuptools_scm", currently in version 3.5.0 on “stable arch” for amd64.

I guess the simple way to fix it is to edit the ebuild to use dev-python/setuptools_scm instead of "dev-python/setuptools" (anyway, it looks like the last is required by the first).

Best regards,
Comment 3 Larry the Git Cow gentoo-dev 2020-06-08 21:12:12 UTC
The bug has been closed via the following commit(s):

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

commit b18498c099bc837e6ccc24ca310cabe3f449a3ed
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-06-08 21:10:04 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-06-08 21:12:03 +0000

    dev-python/black-19.10_beta0: fix setuptools_scm dep (bug #727088)
    
    Closes: https://bugs.gentoo.org/727088
    
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 dev-python/black/black-19.10_beta0.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 4 Thibaud CANALE 2020-06-09 22:50:10 UTC
Hello Patrick,

Unfortunately, your commit doesn’t work, because you used the command 'sed' without the -i/--in-place option; therefore, the content of the file with its modification is sent to stdout instead into the file, as we can see using the "prepare" action from the "ebuild" program:
================================
% ebuild /var/db/repos/gentoo/dev-python/black/black-19.10_beta0.ebuild prepare
 * black-19.10b0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                            [ ok ]
 * checking ebuild checksums ;-) ...                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking black-19.10b0.tar.gz to /var/tmp/portage/dev-python/black-19.10_beta0/work
>>> Source unpacked in /var/tmp/portage/dev-python/black-19.10_beta0/work
>>> Preparing source in /var/tmp/portage/dev-python/black-19.10_beta0/work/black-19.10b0 ...
[bdist_wheel]
python-tag = py36

[options]
setup_requires = 
 * Applying black-19.10_beta0-setuptools_scm.patch ...                                                                         [ ok ]
>>> Source prepared.
================================

Which I can confirm (after the prepare action):
================================
% cat /var/tmp/portage/dev-python/black-19.10_beta0/work/black-19.10b0/setup.cfg 
[bdist_wheel]
python-tag = py36

[options]
setup_requires = setuptools_scm
================================

And then, we still see the same message in the log:
> ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)

One last thing, there is something I noticed with your commit, you signed it with copyright from “Sony Interactive Entertainment Inc.”, I am not sure if it’s ok with the current copyright policy[1]. I think it was an error, but I am not sure (I didn't understand the following document) and prefer to talk it to you before.

1: https://dev.gentoo.org/~mgorny/articles/new-gentoo-copyright-policy-explained.html

Thanks for your work.
Best regards,