By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1132

Summary: Build issue: tdebase FTBFS without HAL
Product: TDE Reporter: Darrell <darrella>
Component: tdebaseAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: blocker CC: bugwatch, darrella
Priority: P1    
Version: R14.0.0 [Trinity]   
Hardware: Other   
OS: Other   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Build log and CMakeCache.txt
Possible patch to build without HAL

Description Darrell 2012-07-29 14:22:54 CDT
I am unable to build tdebase in the upcoming Slackware 14, which does not include HAL.

In my build script I have:

WITH_HAL=OFF
WITH_TDEHWLIB=ON

The build fails with the following:

/dev/shm/tdebase/tdm/backend/consolekit.c:31:23: fatal error: dbus/dbus.h: No such file or directory

dbus.h is installed in /usr/include/dbus-1.0/dbus/dbus.h, which has not changed from previous Slackware releases.
Comment 1 Darrell 2012-07-29 14:47:29 CDT
Created attachment 717 [details]
Build log and CMakeCache.txt

The build log includes a copy of CMakeCache.txt.

This failure occurs in 64-bit. I have not yet tried 32-bit.
Comment 2 Darrell 2012-07-30 00:03:13 CDT
Same failure with 32-bit.
Comment 3 Darrell 2012-07-31 11:26:04 CDT
This is not a Slackware 14 problem as the error occurs with 13.1 as well.
Comment 4 Darrell 2012-08-11 22:37:15 CDT
Created attachment 784 [details]
Possible patch to build without HAL

Turns out this failure is more fundamental. After comparing builds with WITH_HAL=ON and WITH_HAL=OFF, I noticed the latter build never looked for dbus-tqt and always failed.

I found success with the following temporary patch (also attached):

=================================================
diff -urN tdebase/ConfigureChecks.cmake tdebase.new/ConfigureChecks.cmake
--- tdebase/ConfigureChecks.cmake 2012-06-10 11:52:38.000000000 -0500
+++ tdebase.new/ConfigureChecks.cmake 2012-08-11 21:59:00.000000000 -0500
@@ -268,7 +268,7 @@
       tde_message_fatal( "dbus-tqt-1 is required, but was not found on your system" )
     endif( )
   endif( )
-  if( WITH_HAL )
+#   if( WITH_HAL )
     # check for dbus-tqt
     # dbus-tqt need Qt flags
     pkg_check_modules( DBUS_TQT REQUIRED dbus-tqt )
@@ -284,6 +284,6 @@
     if( NOT HAVE_DBUS_QT3_07 )
       tde_message_fatal( "dbus-tqt is required, but was not found on your system" )
     endif( )
-  endif( )
+#   endif( )

 endif( )
=================================================

I considered changing if( WITH_HAL ) to if( WITH_HAL OR WITH_TDEHWLIB ), but I don't know whether WITH_TDEHWLIB is dependent upon dbus-tqt. I don't know whether dbus-tqt is required for all builds, regardless of HAL.

I really don't know what is the best all-around long-term solution for all distros.
Comment 5 Darrell 2012-08-14 08:16:56 CDT
Patch pushed to GIT in commit f34a07c4.

Resolved.