Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574910 - sys-fs/ocfs2-tools-1.8.2-r1 fails to build without glib
Summary: sys-fs/ocfs2-tools-1.8.2-r1 fails to build without glib
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard: Pending removal: 2018-02-04
Keywords: PMASKED
Depends on:
Blocks: 538730
  Show dependency tree
 
Reported: 2016-02-16 20:11 UTC by Sven E.
Modified: 2018-03-11 10:41 UTC (History)
1 user (show)

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 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