Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493254 - app-accessibility/at-spi2-core-2.8.0.ebuild should depend on libSM
Summary: app-accessibility/at-spi2-core-2.8.0.ebuild should depend on libSM
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gnome Accessibility (OBSOLETE)
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-03 18:50 UTC by smkbot
Modified: 2013-12-24 12:20 UTC (History)
0 users

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 smkbot 2013-12-03 18:50:28 UTC
app-accessibility/at-spi2-core-2.8.0 does not compile without libSM being installed.

During the configure phase, "checking for XTestFakeKeyEvent in -lXtst" fails. Here's the relevant part from config.log:



configure:13408: checking for XTestFakeKeyEvent in -lXtst
configure:13433: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=x86-64 -pipe   -Wl,-O1 -Wl,--as-needed conftest.c -lXtst   -lSM -lICE -lX11   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSM
collect2: error: ld returned 1 exit status
configure:13433: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "at-spi2-core"
| #define PACKAGE_TARNAME "at-spi2-core"
| #define PACKAGE_VERSION "2.8.0"
| #define PACKAGE_STRING "at-spi2-core 2.8.0"
| #define PACKAGE_BUGREPORT "accessibility-atspi@lists.linux-foundation.org"
| #define PACKAGE_URL ""
| #define PACKAGE "at-spi2-core"
| #define VERSION "2.8.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char XTestFakeKeyEvent ();
| int
| main ()
| {
| return XTestFakeKeyEvent ();
|   ;
|   return 0;
| }
configure:13442: result: no
configure:13448: error: Couldn't find the Xtst library. Check config.log




However, ld's error message is "cannot find -lSM." On the system where I observed this failure, libXtst is installed but libSM was not.


To solve this, I added x11-libs/libSM to the ebuild dependencies and everything configured/built normally.

Reproducible: Always

Steps to Reproduce:
1. Start with new system (or chroot) that does not have x11-libs/libSM installed
2. Try to emerge =app-accessibility/at-spi2-core-2.8.0
3. Observe failure
Actual Results:  
Ebuild fails in configure phase (see summary for details)

Expected Results:  
Software should have compiled and installed normally
Comment 1 Rafał Mużyło 2013-12-03 19:11:06 UTC
This seems to be an upstream bug - AFAICT, there's no need to include X_PRE_LIBS among the needed libraries.
Comment 2 smkbot 2013-12-03 22:12:36 UTC
Thanks for filing that.
Comment 3 Pacho Ramos gentoo-dev 2013-12-24 12:20:32 UTC
+  24 Dec 2013; Pacho Ramos <pacho@gentoo.org> -at-spi2-core-2.2.3.ebuild,
+  -at-spi2-core-2.4.2.ebuild, at-spi2-core-2.8.0.ebuild:
+  x11-libs/libSM is needed until upstream #719808 is solved either making the
+  dep unneeded or fixing their configure, drop old.
+