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

Bug 833143

Summary: dev-libs/glib-2.70.4: xdg_src_prepare: command not found
Product: Gentoo Linux Reporter: Albert W. Hopkins <marduk>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Albert W. Hopkins 2022-02-11 21:50:22 UTC
Created attachment 764864 [details]
emerge --info

The upgrade to glib is causing the following build failure:

* Package:    dev-libs/glib-2.70.4
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU xattr
 * FEATURES:   preserve-libs sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     5.16.9-gentoo
 * Checking for suitable kernel configuration options...
 [ ok ]
 * Checking whether python3_10 is suitable ...
 *   >=dev-lang/python-3.10.0_p1-r1:3.10[xml] ...
 [ ok ]
 * Using python3.10 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking glib-2.70.4.tar.xz to /var/tmp/portage/dev-libs/glib-2.70.4/work
>>> Source unpacked in /var/tmp/portage/dev-libs/glib-2.70.4/work
>>> Preparing source in /var/tmp/portage/dev-libs/glib-2.70.4/work/glib-2.70.4 ...
/var/tmp/portage/dev-libs/glib-2.70.4/temp/environment: line 4193: xdg_src_prepare: command not found
 * ERROR: dev-libs/glib-2.70.4::gentoo failed (prepare phase):
 *   eapply_user (or default) must be called in src_prepare()!
 * 
 * Call stack:
 *            ebuild.sh, line  770:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1059:  Called __dyn_prepare
 *   phase-functions.sh, line  396:  Called die
 * The specific snippet of code:
 *   		die "eapply_user (or default) must be called in src_prepare()!"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/glib-2.70.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/glib-2.70.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/glib-2.70.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.70.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/glib-2.70.4/work/glib-2.70.4'
 * S: '/var/tmp/portage/dev-libs/glib-2.70.4/work/glib-2.70.4'
 * Messages for package dev-libs/glib-2.70.4:
 * ERROR: dev-libs/glib-2.70.4::gentoo failed (prepare phase):
 *   eapply_user (or default) must be called in src_prepare()!
 * 
 * Call stack:
 *            ebuild.sh, line  770:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1059:  Called __dyn_prepare
 *   phase-functions.sh, line  396:  Called die
 * The specific snippet of code:
 *   		die "eapply_user (or default) must be called in src_prepare()!"
 *
Comment 1 Larry the Git Cow gentoo-dev 2022-02-11 21:54:19 UTC
The bug has been closed via the following commit(s):

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

commit bc8641c28a40e6608110ec980d5889ccba3f46dc
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-02-11 21:53:16 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-02-11 21:54:05 +0000

    dev-libs/glib: Drop to EAPI=7
    
    xdg.eclass only exports src_prepare in EAPI < 8.
    
    Closes: https://bugs.gentoo.org/833143
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 dev-libs/glib/glib-2.70.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)