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

Bug 950707

Summary: dev-util/pkgconf-2.4.1 Hangs not allowing any emerge commands to finish
Product: Gentoo Linux Reporter: Mike Lothian <mike>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: critical CC: mg05182-gentoo, mike, quincyf467, sam
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/pkgconf/pkgconf/issues/380
https://bugs.gentoo.org/show_bug.cgi?id=950316
https://github.com/pkgconf/pkgconf/issues/384
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: good 'pkg-config --variable=completionsdir bash-completion --debug' output
pkg-config_output

Description Mike Lothian 2025-03-07 01:08:02 UTC
I had to manually copy the image files from an almost finished 2.3.0 to get things working agian

Reproducible: Always
Comment 1 Mike Lothian 2025-03-07 01:13:10 UTC
I noticed this when emerging elt-patches, the emerge didn't finish and pkgconf was still running in the background
Comment 2 Quincy Fleming 2025-03-07 01:35:08 UTC
(In reply to Mike Lothian from comment #0)
> I had to manually copy the image files from an almost finished 2.3.0 to get
> things working agian
> 
> Reproducible: Always

Can confirm. I had to do the same thing.
Comment 3 Larry the Git Cow gentoo-dev 2025-03-07 01:35:15 UTC
The bug has been referenced in the following commit(s):

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

commit 46671e8c6b8f390812a0d075cd1ef6789db176e2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-07 01:34:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-07 01:34:43 +0000

    profiles: mask =dev-util/pkgconf-2.4.1
    
    May cause emerge to hang (bug #950707). Tests hang on one machine
    and another strange report upstream: https://github.com/pkgconf/pkgconf/issues/383.
    
    Mask out of caution for now.
    
    Bug: https://bugs.gentoo.org/950707
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 01:56:44 UTC
Could someone who can reproduce give me a recipe for it?

What emerge command is hanging, what command hangs in `ps faux`, and does it hang if you run that pkgconf command manually?
Comment 5 Quincy Fleming 2025-03-07 02:20:37 UTC
(In reply to Sam James from comment #4)
> Could someone who can reproduce give me a recipe for it?
> 
> What emerge command is hanging, what command hangs in `ps faux`, and does it
> hang if you run that pkgconf command manually?

After installing dev-util/pkgconf-2.4.1 `emerge app-portage/elt-patches` hangs at command `pkg-config --variable=completionsdir bash-completion`.  Also noticing ebuilds fail whenever pkg-config is called.

`pkg-config --variable=completionsdir bash-completion` does hang when called manually
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 02:21:54 UTC
Thanks. For me, `pkg-config --variable=completionsdir bash-completion` doesn't hang.

Can you attach the output of `pkg-config --variable=completionsdir bash-completion --debug`?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 02:22:24 UTC
Created attachment 920318 [details]
good 'pkg-config --variable=completionsdir bash-completion --debug' output
Comment 8 Quincy Fleming 2025-03-07 02:31:12 UTC
Created attachment 920319 [details]
pkg-config_output
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 02:36:27 UTC
(In reply to Quincy Fleming from comment #8)
> Created attachment 920319 [details]
> pkg-config_output

It may be related to bug 950316.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 02:44:10 UTC
I can reproduce when merging clucene. It hangs in Portage's `pkgconf --validate` call.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 02:50:13 UTC
(In reply to Sam James from comment #10)
> I can reproduce when merging clucene. It hangs in Portage's `pkgconf
> --validate` call.

Filed https://github.com/pkgconf/pkgconf/issues/384.
Comment 12 Larry the Git Cow gentoo-dev 2025-03-08 14:25:16 UTC
The bug has been closed via the following commit(s):

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

commit 65b073f11199535e5269a6cf49a11b29ca1b1ed6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-08 14:19:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-08 14:24:10 +0000

    dev-util/pkgconf: add 2.4.3, drop 2.4.1
    
    Closes: https://bugs.gentoo.org/950707
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/pkgconf/Manifest                                       | 2 +-
 dev-util/pkgconf/{pkgconf-2.4.1.ebuild => pkgconf-2.4.3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)