Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909981 - dev-vcs/git-big-picture: needs to use PEP517 build (DistutilsNonPEP517Build)
Summary: dev-vcs/git-big-picture: needs to use PEP517 build (DistutilsNonPEP517Build)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: pep517-porting
  Show dependency tree
 
Reported: 2023-07-08 06:56 UTC by Michał Górny
Modified: 2023-07-09 01:23 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 06:56:59 UTC
This package still uses the legacy eclass code paths.  These paths are deprecated and pose a significant maintenance cost.  Please update the package to use PEP517 build mode.  For more information, please see the Python Guide, particularly; https://projects.gentoo.org/python/guide/migration.html#migrating-to-pep-517-builds
Comment 1 Larry the Git Cow gentoo-dev 2023-07-08 13:56:27 UTC
The bug has been closed via the following commit(s):

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

commit 331a06d2a333b02996e9cc49ab55441c9bd749bd
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2023-07-08 13:50:13 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2023-07-08 13:54:07 +0000

    dev-vcs/git-big-picture: Start using DISTUTILS_USE_PEP517
    
    Closes: https://bugs.gentoo.org/909981
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 .../git-big-picture-1.2.2-r2.ebuild                | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 20:40:54 UTC
[Adding this comment en-masse, sorry for the noise, but it's important.)

1. Please take particular care to check file diffs before/after, possibly using `iwdevtools`. Keep a particular eye out for e.g. config files now missing from /etc and instead being in /usr/lib/python*/site-packages, etc.

2. Please make sure to do the migration in a new revision in ~arch, partly because of 1.
Comment 3 Sebastian Pipping gentoo-dev 2023-07-08 21:24:38 UTC
Hi Sam,

adding you to CC for the moment so you have a chance to see this reply:


(In reply to Sam James from comment #2)
> [Adding this comment en-masse, sorry for the noise, but it's important.)

No worries, good disclaimer though.


> 2. Please make sure to do the migration in a new revision in ~arch, partly
> because of 1.

My apologies for going right to stable amd64 here by accident — do you want me to degrade to ~amd64?.  repoman would have prevented it but pkg-dev doesn't (and that sucks big time, if I may be frank) and it's hard to adapt to that sudden lack in safety net, in the other two cases I did additional checks manually.


> 1. Please take particular care to check file diffs before/after, possibly
> using `iwdevtools`. Keep a particular eye out for e.g. config files now
> missing from /etc and instead being in /usr/lib/python*/site-packages, etc.

I have checked my related fixes to…

- app-containers/docker-compose:0
- app-portage/elogv
- dev-vcs/git-big-picture

…from earlier today once more and I believe they are sane and without problems like these.  No commits fixing up on mine in Git either.  If something is off that I am not aware of, please help me see it.  Thanks!
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 21:25:46 UTC
(In reply to Sebastian Pipping from comment #3)
> Hi Sam,
> 
> adding you to CC for the moment so you have a chance to see this reply:
> 
> 
> (In reply to Sam James from comment #2)
> 
> > 2. Please make sure to do the migration in a new revision in ~arch, partly
> > because of 1.
> 
> My apologies for going right to stable amd64 here by accident — do you want
> me to degrade to ~amd64?.  repoman would have prevented it but pkg-dev
> doesn't (and that sucks big time, if I may be frank) and it's hard to adapt
> to that sudden lack in safety net, in the other two cases I did additional
> checks manually.

`pkgcheck scan --commits` and `pkgdev push` should notice this.

Would you mind doing that? I can handle it if you're not at a computer though.

> 
> 
> > 1. Please take particular care to check file diffs before/after, possibly
> > using `iwdevtools`. Keep a particular eye out for e.g. config files now
> > missing from /etc and instead being in /usr/lib/python*/site-packages, etc.
> 
> I have checked my related fixes to…
> 
> - app-containers/docker-compose:0
> - app-portage/elogv
> - dev-vcs/git-big-picture
> 
> …from earlier today once more and I believe they are sane and without
> problems like these.  No commits fixing up on mine in Git either.  If
> something is off that I am not aware of, please help me see it.  Thanks!

Thank you for checking!
Comment 5 Sebastian Pipping gentoo-dev 2023-07-08 22:49:44 UTC
(In reply to Sam James from comment #4)
> `pkgcheck scan --commits` and `pkgdev push` should notice this.

Letting pkgdev push Git is too scary for me (..);
"pkgcheck scan --commits" is a nice idea, but I cannot get it to work in practice:

  # pkgcheck scan --commits 331a06d2a333b02996e9cc49ab55441c9bd749bd^..HEAD ; echo $?  # two dots
  pkgcheck scan: error: failed retrieving commit hash for git repo: '[..]/gentoo-GIT'
  2
  
  # pkgcheck scan --commits 331a06d2a333b02996e9cc49ab55441c9bd749bd^...HEAD ; echo $?  # three dots
  <no output>
  0

Any ideas?

The SHA1 331a06d2a333b02996e9cc49ab55441c9bd749bd is the git-big-picture
commit where I was hoping for a complaint about going straight to stable.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 23:01:14 UTC
(In reply to Sebastian Pipping from comment #5)
> "pkgcheck scan --commits" is a nice idea, but I cannot get it to work in
> practice:
> 
>   # pkgcheck scan --commits 331a06d2a333b02996e9cc49ab55441c9bd749bd^..HEAD
> ; echo $?  # two dots
>   pkgcheck scan: error: failed retrieving commit hash for git repo:
> '[..]/gentoo-GIT'
>   2
> [...]

See https://wiki.gentoo.org/wiki/Pkgcheck#failed_retrieving_origin.2FHEAD_commit_hash_for_git_repo. If it continues to fail, try pkgcheck cache -fR.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 23:01:54 UTC
(There's also some sort of annoying issue with certain origin types but I can't remember it right now. We should at least document what the workaround for that is if someone can tell me what it is. ajak/arthur?)
Comment 8 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 23:24:52 UTC
I recall pkgcheck getting confused if the `origin` remote isn't the authoritative Gentoo repository, can we see `git remote -v`?
Comment 9 Sebastian Pipping gentoo-dev 2023-07-09 00:58:23 UTC
I avoid remote name "origin" consistently for safety reasons, my remote name here is "git-gentoo-org" and refs/remotes/git-gentoo-org/HEAD seems set properly.  Is the remote not being named "origin" the problem?
Comment 11 Sebastian Pipping gentoo-dev 2023-07-09 01:23:43 UTC
Oh my, hardcoding "origin" is not nice.   Thanks for the links!

I fooled pkgcheck into having a remote "origin" around now like this:

  # git remote add origin https://anongit.gentoo.org/git/repo/gentoo.git
  # git remote update origin
  # git remote set-head origin master
  
(Not a good long-term solution because it won't advance when pushing to git-gentoo-org.)

Now the output of "pkgcheck scan" shows this:

  # pkgcheck scan --commits 331a06d2a333b02996e9cc49ab55441c9bd749bd^..331a06d2a333b02996e9cc49ab55441c9bd749bd
  dev-vcs/git-big-picture
    UnstableOnly: for arch: [ x86 ], all versions are unstable: [ 1.2.2-r1, 1.2.2-r2 ]
    DistutilsNonPEP517Build: version 1.2.2-r1: uses deprecated non-PEP517 build mode, please switch to DISTUTILS_USE_PEP517=...
    RedundantVersion: version 1.2.2-r1: slot(0) keywords are overshadowed by version: 1.2.2-r2
    PotentialStable: version 1.2.2-r2: slot(0), stabled arch: [ amd64 ], potential: [ ~x86 ]
    PythonCompatUpdate: version 1.2.2-r2: PYTHON_COMPAT update available: python3_12
    
The only warning (based on color) seems to be the DistutilsNonPEP517Build about version 1.2.2-r1.
No warning about going straight to stable, or I'm just not seeing it — do you?

What kind of warning output would you expect for this case?  Thanks!