Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836727 - xorg-3 eclass no longer works with -9999 ebuilds
Summary: xorg-3 eclass no longer works with -9999 ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-03 20:41 UTC by cyrillic
Modified: 2022-04-03 23:08 UTC (History)
0 users

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 cyrillic 2022-04-03 20:41:03 UTC
xorg-3 eclass no longer works with -9999 ebuilds

Reproducible: Always

Steps to Reproduce:
emerge --oneshot x11-base/xorg-server

Actual Results:  
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-base/xorg-server-9999::gentoo
>>> Unpacking source...
 * ERROR: x11-base/xorg-server-9999::gentoo failed (unpack phase):
 *   Nothing passed to the 'unpack' command
 * 
 * Call stack:
 *          ebuild.sh, line  127:  Called src_unpack
 *        environment, line 3981:  Called xorg-3_src_unpack
 *        environment, line 5005:  Called unpack
 *   phase-helpers.sh, line  321:  Called die
 * The specific snippet of code:
 *   	[ -z "$*" ] && die "Nothing passed to the 'unpack' command"



I was able to work around it like this :

--- /mnt/repos/gentoo/eclass/xorg-3.eclass	2022-04-02 19:08:43.772393000 -0400
+++ /mnt/repos/fixes/eclass/xorg-3.eclass	2022-04-03 16:39:50.388782000 -0400
@@ -266,7 +266,8 @@
 xorg-3_src_unpack() {
 	debug-print-function ${FUNCNAME} "$@"
 
-	if [[ -n ${GIT_ECLASS} ]]; then
+	#if [[ -n ${GIT_ECLASS} ]]; then
+	if [[ ${PV} == *9999* ]]; then
 		git-r3_src_unpack
 	else
 		unpack ${A}
Comment 1 Larry the Git Cow gentoo-dev 2022-04-03 23:08:37 UTC
The bug has been closed via the following commit(s):

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

commit bc78701f54654622feff3694c7f66621b2acaa80
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-04-03 23:04:18 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-04-03 23:08:28 +0000

    xorg-3.eclass: Fix unsetting GIT_ECLASS
    
    Apparently I cannot remember how bash works.
    
    Closes: https://bugs.gentoo.org/836727
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 eclass/xorg-3.eclass | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)