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

Bug 580936

Summary: x11-terms/xterm-320: automagic dependency on libXinerama
Product: Gentoo Linux Reporter: Urja Rannikko <urjaman>
Component: Current packagesAssignee: Thomas Dickey <dickey>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, x11
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Urja Rannikko 2016-04-23 12:09:00 UTC
Per summary. This caused a problem for a system using binary packages built by a build host... (workaround was to uninstall libXinerama from the build host and rebuild xterm - alternatively i could have installed the useless libXineramaa on the system, but didnt want to).

(I suppose it should either have a xinerama use flag to control this behaviour and have the depend as-needed, or not link at all if it isnt necessary...)
Comment 1 Thomas Dickey 2016-04-28 00:14:08 UTC
xterm's configure script checks if the library is available, and will
build correctly (without the feature) if not.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-28 12:44:25 UTC
(In reply to Thomas Dickey from comment #1)
That was the point. There is no configure switch to disable xinerama.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2016-05-03 00:55:52 UTC
(In reply to Thomas Dickey from comment #1)
> xterm's configure script checks if the library is available, and will
> build correctly (without the feature) if not.

This is known as automagic, and is deeply frowned upon in gentoo style. It opens traps for the package in case of future changes. You need deal with in  a way that overcomes automagic and will provide certainty in all conditions. General rule, either hard set it or make it work off a use flag.
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-06-09 20:08:02 UTC
xterm-325 has been released, with the option to disable xinerama support. I have added a USE flag for it.

commit b68c1247c8d4ad15fde9a1abf0e5c7007f400936
Author: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Date:   Thu Jun 9 22:06:11 2016 +0200

    x11-terms/xterm: make building xinerama support optional
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=580936