Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905884 - net-misc/yt-dlp-9999 missing head commit used (update-version.py not executed)
Summary: net-misc/yt-dlp-9999 missing head commit used (update-version.py not executed)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Piotr Karbowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-07 17:30 UTC by David Duchesne
Modified: 2023-05-07 17:42 UTC (History)
1 user (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 David Duchesne 2023-05-07 17:30:36 UTC
Hi,
The current live ebuild doesn't execute devscripts/update-version.py so the version reported with :

yt-dlp -v

always report the one from the template : [debug] yt-dlp version stable@2023.03.04 [392389b7d]

I added "python devscripts/update-version.py || die" (it is probably not the right way to do it, not sure..)

python_compile() {
  # generate missing files in live, not in compile_all nor prepare
  # given need lazy before compile and it needs a usable ${PYTHON}
  emake completions lazy-extractors $(usev man yt-dlp.1)

  python devscripts/update-version.py || die

  distutils-r1_python_compile
}

And now, it correctly reports the head commit being used :

[debug] yt-dlp version stable@2023.05.07 [c449c0655]

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2023-05-07 17:42:14 UTC
The bug has been closed via the following commit(s):

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

commit 609044d88519daa513874297f36e5675ccc94453
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-05-07 17:38:47 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-05-07 17:41:48 +0000

    net-misc/yt-dlp: report correct version in live
    
    Closes: https://bugs.gentoo.org/905884
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 net-misc/yt-dlp/yt-dlp-9999.ebuild | 2 ++
 1 file changed, 2 insertions(+)