Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836118

Summary: www-apps/cgit: uses variables banned in scope (VariableScope)
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: normal CC: web-apps
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 775191    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-26 03:43:06 UTC
This package uses variables banned in some scopes. This may stop working in future versions of Portage.

$ pkgcheck scan -k VariableScope www-apps/cgit
www-apps/cgit
  VariableScope: version 1.2.3-r100: variable 'D' used in 'src_prepare', line 57
  VariableScope: version 1.2.3-r200: variable 'D' used in 'src_prepare', line 64
  VariableScope: version 9999: variable 'D' used in 'src_prepare', line 52
Comment 1 Larry the Git Cow gentoo-dev 2022-07-29 18:57:17 UTC
The bug has been referenced in the following commit(s):

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

commit 55ea838a1d3ec050b680856e6788a98ae89750f9
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-07-29 18:54:51 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-07-29 18:57:10 +0000

    www-apps/cgit: Replace src_prepare with src_configure
    
    After we move python_setup to pkg_setup, src_prepare just configuring
    cgit.conf, which seems like an appropriate task for src_configure.
    
    Also add Python 3.11 compatibility, switch to EAPI=8, and move
    doc-generating deps to BDEPEND.
    
    Bug: https://bugs.gentoo.org/836118
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 www-apps/cgit/cgit-1.2.3-r201.ebuild | 108 +++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2024-04-15 17:44:18 UTC
The bug has been closed via the following commit(s):

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

commit d9d8cf759bfbb7727bcb4fb5daa9ad6c21a54a5e
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-04-15 17:32:56 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-04-15 17:43:33 +0000

    www-apps/cgit: enable py3.12
    
    Enable python 3.12
    Enable lua 5.3, 5.4
    Fix VariableScope
    
    Closes: https://bugs.gentoo.org/929871
    Closes: https://bugs.gentoo.org/836118
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 www-apps/cgit/{cgit-1.2.3-r202.ebuild => cgit-1.2.3-r203.ebuild} | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)