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

Bug 574910

Summary: sys-fs/ocfs2-tools-1.8.2-r1 fails to build without glib
Product: Gentoo Linux Reporter: Sven E. <dark>
Component: [OLD] Core systemAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED WONTFIX    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending removal: 2018-02-04
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 538730    

Description Sven E. 2016-02-16 20:11:05 UTC
ocfs2-tools' configure checks for glib presence and bails out if glib is not installed, yet there's no dependency on glib in the ebuild.

Reproducible: Always

Steps to Reproduce:
1. Just try emerging ocfs2-tools without glib installed.

Actual Results:  
configure bails out

Expected Results:  
clean build

I tried to manually configure with --disable-glibtest, yet configure fails with missing glib error. Looking at the configure script it seems the test is always run anyway?
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-02-17 11:39:07 UTC
Please attach the build log.
Comment 2 Sven E. 2016-02-17 15:10:28 UTC
The interesting part of the configure run:

checking for GLIB - version >= 2.2.3... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: GLib 2.2.3 or better is required

Which obviously is true, as glib is not installed and not in the BDEPS list of ocfs2-tools. As noted --disable glibtest does not change the behavior. So the dep needs to be added (unfortunately). Only chance I'm seeing is to not build the console at all, in this case glib is not needed (claim by ocfs2-tools). There's no use flag though to disable the console.
Comment 3 Pacho Ramos gentoo-dev 2018-03-11 10:41:56 UTC
Removed from the tree