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

Bug 887235

Summary: plasma-mobile.kde.org.eclass: Version directory in SRC_URI should be $(pv_cut 1-2)
Product: Gentoo Linux Reporter: Jesús P Rey (Chuso) <gentoo>
Component: EclassesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jesús P Rey (Chuso) 2022-12-19 16:09:09 UTC
Hi,

plasma-mobile.kde.org.eclass sets SRC_URI to:

SRC_URI="mirror://kde/stable/plasma-mobile/${PV}/${KDE_ORG_NAME}-${PV}.tar.xz"

but that doesn't seem to be the naming scheme Plasma Mobile.

The directory with the version number after /plasma-mobile/ is not the full version number but only the first two numbers. Which is usually the same as the package version number, but some packages may have a third version number while still being stored in the directory with two version numbers.

For example:

https://download.kde.org/stable/plasma-mobile/22.04/qmlkonsole-22.04.1.tar.xz
https://download.kde.org/stable/plasma-mobile/22.09/kasts-22.09.2.tar.xz

So, I think SRC_URI should be:

SRC_URI="mirror://kde/stable/plasma-mobile/$(pv_cut 1-2)/${KDE_ORG_NAME}-${PV}.tar.xz"
Comment 1 Larry the Git Cow gentoo-dev 2022-12-24 23:48:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=36e93c4b391449c27dfe3974ff26f057ca5b3c9e

commit 36e93c4b391449c27dfe3974ff26f057ca5b3c9e
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-12-24 23:33:01 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-12-24 23:35:26 +0000

    plasma-mobile.kde.org.eclass: Fix SRC_URI versioned tarball subdir
    
    Thanks-to: Jesús P Rey (Chuso) <gentoo@chuso.net>
    Bug: https://bugs.gentoo.org/887235
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 eclass/plasma-mobile.kde.org.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Larry the Git Cow gentoo-dev 2022-12-24 23:50:56 UTC
The bug has been referenced in the following commit(s):

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

commit 215478a47d049ae8895bd72f413bfe5ccce2881d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-12-24 23:33:01 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-12-24 23:50:43 +0000

    plasma-mobile.kde.org.eclass: Fix SRC_URI versioned tarball subdir
    
    Thanks-to: Jesús P Rey (Chuso) <gentoo@chuso.net>
    Bug: https://bugs.gentoo.org/887235
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 eclass/plasma-mobile.kde.org.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)