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 2110

Summary: Build issue: tdebase on openbsd
Product: TDE Reporter: Francois Andriot <albator78>
Component: tdebaseAssignee: Francois Andriot <albator78>
Status: RESOLVED FIXED    
Severity: normal CC: albator78, bugwatch, slavek.banko
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: All   
OS: Other   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: tdebase: enable shadow related build flags in config.h
tdebase: enable libdl detection in configurechecks.cmake
tdebase: enable building drkonqui without tdehwlib
tdebase: fix kate externatools command syntax
tdebase: fix time saving in kcontrol clock module
tdebase: enable conditionnal tdehwlib build in kcontrol
tdebase: fix potential segmentation fault in kcontrol info module
tdebase: fix process pid detection in tdefontinst
tdebase: fix default halt command in tdm
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in kdesktop
tdebase: fix FTBFS due to linux specific header in kdesktop_lock
tdebase: fix openbsd process detection in kicker applet naughtyprocessmonitor
tdebase: fix build kickoff menu without tdehwlib and without hal
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in konsole
tdebase: enable building ksmserver without tdehwlib (part 1)
tdebase: enable building ksmserver without tdehwlib (part 2)
tdebase: enable building ksmserver without tdehwlib (part 3)
tdebase: enable building ksmserver without tdehwlib (part 4)
tdebase: add more processes to watch in ksysguard process management
tdebase: enable ksysguard build for openbsd
tdebase: enable openbsd process management in ksysguard (part 1)
tdebase: enable openbsd process management in ksysguard (part 2)
tdebase: enhance openbsd memory management in ksysguard (part 1)
tdebase: enhance openbsd memory management in ksysguard (part 2)
tdebase: enable openbsd process management in ksysguard (part 3)
tdebase: enable openbsd process management in ksysguard (part 4)
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in nsplugins_viewer
tdebase: workaround sasl header detection in tdeioslave
tdebase: add perl function support in tdeioslave_man
tdebase: enable building tdeioslave_media without tdehwlib (part 1)
tdebase: fix FTBFS in tdeioslave_media because of invalid headers
tdebase: enable building tdeioslave_media without tdehwlib (part 2)
tdebase: enable building tdeioslave_media without tdehwlib (part 3)
tdebase: fix FTBFS in tdeioslave_media because of missing header
tdebase: fix FTBFS because missing link directory in tdeioslave_nfs
tdebase: fix FTBFS in tdeioslave_smtp because missing headers
tdebase: fix FTBFS in tdesu because missing header
tdebase: fix tdm auth backend for openbsd
tdebase: fix FTBFS in tdm backend because linux specific header
tdebase: fix tdm backend fd support
tdebase: fix tdm cmake variables
tdebase: enable building tdm without tdehwlib (part 1)
tdebase: enable building tdm without tdehwlib (part 2)
tdebase: fix conditionnal utmpx support in tdm
tdebase: fix FTBFS because conflicting declaration in twin compton
tdebase: fix FTBFS because missing header in twin utils
tdebase: fix conditionnal utmpx support in tdm + fix tdm_greet crash
tdebase: fix FTBFS because missing link directory in tdeioslave_nfs (2)
tdebase: fix conditionnal utmpx support in tdm + fix tdm_greet crash (2)
tdebase: fix tdm cmake variables
tdebase: allow contitional build with tdehwlib
tdebase: fix FTBFS because invalid include in kickoff menu
tdebase: fix FTBFS because 'abs' function in kcontrol/displayconfig
tdebase: fix tdm backend fd support (2)

Description Francois Andriot 2014-09-06 10:36:37 CDT
This bug report is intended to post all patches required to build tdebase on openbsd.
Comment 1 Francois Andriot 2014-09-06 10:37:16 CDT
Created attachment 2176 [details]
tdebase: enable shadow related build flags in config.h
Comment 2 Francois Andriot 2014-09-06 10:40:09 CDT
Created attachment 2177 [details]
tdebase: enable libdl detection in configurechecks.cmake
Comment 3 Francois Andriot 2014-09-06 10:41:06 CDT
Created attachment 2178 [details]
tdebase: enable building drkonqui without tdehwlib
Comment 4 Francois Andriot 2014-09-06 10:42:00 CDT
Created attachment 2179 [details]
tdebase: fix kate externatools command syntax

It looks like there is a missing space separator in the command.
(patch from kdebase3 openbsd)
Comment 5 Francois Andriot 2014-09-06 10:42:47 CDT
Created attachment 2180 [details]
tdebase: fix time saving in kcontrol clock module

Patch from kdebase3 openbsd.
Comment 6 Francois Andriot 2014-09-06 10:43:28 CDT
Created attachment 2181 [details]
tdebase: enable conditionnal tdehwlib build in kcontrol
Comment 7 Francois Andriot 2014-09-06 10:44:16 CDT
Created attachment 2182 [details]
tdebase: fix potential segmentation fault in kcontrol info module

patch from kdebase3 openbsd.
Comment 8 Francois Andriot 2014-09-06 10:44:55 CDT
Created attachment 2183 [details]
tdebase: fix process pid detection in tdefontinst
Comment 9 Francois Andriot 2014-09-06 10:45:43 CDT
Created attachment 2184 [details]
tdebase: fix default halt command in tdm

There is no "poweroff" option in openbsd.
Comment 10 Francois Andriot 2014-09-06 10:46:26 CDT
Created attachment 2185 [details]
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in kdesktop
Comment 11 Francois Andriot 2014-09-06 10:46:59 CDT
Created attachment 2186 [details]
tdebase: fix FTBFS due to linux specific header in kdesktop_lock
Comment 12 Francois Andriot 2014-09-06 10:47:39 CDT
Created attachment 2187 [details]
tdebase: fix openbsd process detection in kicker applet naughtyprocessmonitor
Comment 13 Francois Andriot 2014-09-06 10:48:34 CDT
Created attachment 2188 [details]
tdebase: fix build kickoff menu without tdehwlib and without hal
Comment 14 Francois Andriot 2014-09-06 10:48:58 CDT
Created attachment 2189 [details]
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in konsole
Comment 15 Francois Andriot 2014-09-06 10:49:47 CDT
Created attachment 2190 [details]
tdebase: enable building ksmserver without tdehwlib (part 1)
Comment 16 Francois Andriot 2014-09-06 10:50:10 CDT
Created attachment 2191 [details]
tdebase: enable building ksmserver without tdehwlib (part 2)
Comment 17 Francois Andriot 2014-09-06 10:50:31 CDT
Created attachment 2192 [details]
tdebase: enable building ksmserver without tdehwlib (part 3)
Comment 18 Francois Andriot 2014-09-06 10:50:55 CDT
Created attachment 2193 [details]
tdebase: enable building ksmserver without tdehwlib (part 4)
Comment 19 Francois Andriot 2014-09-06 10:51:59 CDT
Created attachment 2194 [details]
tdebase: add more processes to watch in ksysguard process management
Comment 20 Francois Andriot 2014-09-06 11:22:06 CDT
Created attachment 2195 [details]
tdebase: enable ksysguard build for openbsd
Comment 21 Francois Andriot 2014-09-06 11:23:27 CDT
Created attachment 2196 [details]
tdebase: enable openbsd process management in ksysguard (part 1)
Comment 22 Francois Andriot 2014-09-06 11:23:58 CDT
Created attachment 2197 [details]
tdebase: enable openbsd process management in ksysguard (part 2)
Comment 23 Francois Andriot 2014-09-06 11:24:54 CDT
Created attachment 2198 [details]
tdebase: enhance openbsd memory management in ksysguard (part 1)
Comment 24 Francois Andriot 2014-09-06 11:25:27 CDT
Created attachment 2199 [details]
tdebase: enhance openbsd memory management in ksysguard (part 2)
Comment 25 Francois Andriot 2014-09-06 11:25:48 CDT
Created attachment 2200 [details]
tdebase: enable openbsd process management in ksysguard (part 3)
Comment 26 Francois Andriot 2014-09-06 11:26:06 CDT
Created attachment 2201 [details]
tdebase: enable openbsd process management in ksysguard (part 4)
Comment 27 Francois Andriot 2014-09-06 11:26:46 CDT
Created attachment 2202 [details]
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in nsplugins_viewer
Comment 28 Francois Andriot 2014-09-06 11:27:44 CDT
Created attachment 2203 [details]
tdebase: workaround sasl header detection in tdeioslave
Comment 29 Francois Andriot 2014-09-06 11:28:33 CDT
Created attachment 2204 [details]
tdebase: add perl function support in tdeioslave_man

patch from kdebase3 openbsd
Comment 30 Francois Andriot 2014-09-06 11:29:31 CDT
Created attachment 2205 [details]
tdebase: enable building tdeioslave_media without tdehwlib (part 1)
Comment 31 Francois Andriot 2014-09-06 11:30:14 CDT
Created attachment 2206 [details]
tdebase: fix FTBFS in tdeioslave_media because of invalid headers
Comment 32 Francois Andriot 2014-09-06 11:30:48 CDT
Created attachment 2207 [details]
tdebase: enable building tdeioslave_media without tdehwlib (part 2)
Comment 33 Francois Andriot 2014-09-06 11:31:12 CDT
Created attachment 2208 [details]
tdebase: enable building tdeioslave_media without tdehwlib (part 3)
Comment 34 Francois Andriot 2014-09-06 11:32:07 CDT
Created attachment 2209 [details]
tdebase: fix FTBFS in tdeioslave_media because of missing header
Comment 35 Francois Andriot 2014-09-06 11:32:36 CDT
Created attachment 2210 [details]
tdebase: fix FTBFS because missing link directory in tdeioslave_nfs
Comment 36 Francois Andriot 2014-09-06 11:33:16 CDT
Created attachment 2211 [details]
tdebase: fix FTBFS in tdeioslave_smtp because missing headers
Comment 37 Francois Andriot 2014-09-06 11:34:02 CDT
Created attachment 2212 [details]
tdebase: fix FTBFS in tdesu because missing header
Comment 38 Francois Andriot 2014-09-06 11:34:55 CDT
Created attachment 2213 [details]
tdebase: fix tdm auth backend for openbsd
Comment 39 Francois Andriot 2014-09-06 11:36:28 CDT
Created attachment 2214 [details]
tdebase: fix FTBFS in tdm backend because linux specific header
Comment 40 Francois Andriot 2014-09-06 11:38:23 CDT
Created attachment 2215 [details]
tdebase: fix tdm backend fd support
Comment 41 Francois Andriot 2014-09-06 11:40:44 CDT
Created attachment 2216 [details]
tdebase: fix tdm cmake variables
Comment 42 Francois Andriot 2014-09-06 11:42:17 CDT
Created attachment 2217 [details]
tdebase: enable building tdm without tdehwlib (part 1)
Comment 43 Francois Andriot 2014-09-06 11:43:26 CDT
Created attachment 2218 [details]
tdebase: enable building tdm without tdehwlib (part 2)
Comment 44 Francois Andriot 2014-09-06 11:44:24 CDT
Created attachment 2219 [details]
tdebase: fix conditionnal utmpx support in tdm
Comment 45 Francois Andriot 2014-09-06 11:47:08 CDT
Created attachment 2220 [details]
tdebase: fix FTBFS because conflicting declaration in twin compton
Comment 46 Francois Andriot 2014-09-06 11:48:37 CDT
Created attachment 2221 [details]
tdebase: fix FTBFS because missing header in twin utils
Comment 47 Francois Andriot 2014-09-09 14:41:39 CDT
Created attachment 2229 [details]
tdebase: fix conditionnal utmpx support in tdm + fix tdm_greet crash

I've noticed that tdm_greet crashes on openbsd . There are several reasons:

1) the parent directory of FIFO_DIR is not created correctly, because the mkdir line 1303 is creating FIFO_DIR itself, not the parent directory of FIFO_DIR.
Then the 2nd mkdir at line 1318 fails because missing parent folder, then the socket is never created.
The simple fix is at line 1300.

2) systematic crash at line 1305: free(fifo_parent_dir);
I do not understand why a free() should be needed here, maybe old code that was not removed.

3) when /tmp/tdesocket-global/tdm (FIFO_DIR) is set to permissions 0600, then the tdm_greet crashes (segfault) at command FD_SET(mPipe_fd, &rfds);
Settng the FIFO_DIR permissions to 0700 avoids the crash. I'm not sure why ...
Comment 48 Francois Andriot 2014-10-12 08:32:12 CDT
Please, can you push at least the patches related to not having tdehwlib ?
It is required to build on both *BSD and older Linux (like CentOS 5).

Thanks
Comment 49 Slávek Banko 2014-10-12 10:05:16 CDT
(In reply to Francois Andriot from comment #48)
> Please, can you push at least the patches related to not having tdehwlib ?
> It is required to build on both *BSD and older Linux (like CentOS 5).
> 
> Thanks

Currently I'm processing patch for PIE from bug 2133. Patches from this bug report I have already downloaded and will be processed after completion cmake PIE patch.
Comment 50 Slávek Banko 2014-10-12 11:40:30 CDT
(In reply to Francois Andriot from comment #35)
> Created attachment 2210 [details]
> tdebase: fix FTBFS because missing link directory in tdeioslave_nfs

Please, can be used ${CMAKE_CURRENT_SOURCE_DIR} instead of proposed ${CMAKE_SOURCE_DIR}/tdeioslave/nfs ?
Comment 51 Francois Andriot 2014-10-12 12:08:11 CDT
Created attachment 2307 [details]
tdebase: fix FTBFS because missing link directory in tdeioslave_nfs (2)

Yes, it works as you suggest.
Comment 52 Slávek Banko 2014-10-12 12:26:45 CDT
Created attachment 2309 [details]
tdebase: fix conditionnal utmpx support in tdm + fix tdm_greet crash (2)

Memory for fifo_parent_dir is allocated by strdup, but your proposed patch removes corresponding free. At the same time, I believe that 0700 folder creation is OK for all systems.

Please look at the corrected patch.
Comment 53 Slávek Banko 2014-10-12 12:27:45 CDT
Comment on attachment 2176 [details]
tdebase: enable shadow related build flags in config.h

Pushed to GIT in hash 56c4daef.
Comment 54 Slávek Banko 2014-10-12 12:28:34 CDT
Comment on attachment 2177 [details]
tdebase: enable libdl detection in configurechecks.cmake

Pushed to GIT in hash bfbcf19a.
Comment 55 Slávek Banko 2014-10-12 12:29:08 CDT
Comment on attachment 2185 [details]
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in kdesktop

Pushed to GIT as part of hash bfbcf19a.
Comment 56 Slávek Banko 2014-10-12 12:29:32 CDT
Comment on attachment 2189 [details]
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in konsole

Pushed to GIT as part of hash bfbcf19a.
Comment 57 Slávek Banko 2014-10-12 12:29:54 CDT
Comment on attachment 2202 [details]
tdebase: fix FTBFS due to hardcoded link flag to "dl" library in nsplugins_viewer

Pushed to GIT as part of hash bfbcf19a.
Comment 58 Slávek Banko 2014-10-12 12:30:54 CDT
Comment on attachment 2179 [details]
tdebase: fix kate externatools command syntax

Pushed to GIT in hash 1389b139.
Comment 59 Slávek Banko 2014-10-12 12:31:21 CDT
Comment on attachment 2307 [details]
tdebase: fix FTBFS because missing link directory in tdeioslave_nfs (2)

Pushed to GIT in hash d4436877.
Comment 60 Slávek Banko 2014-10-12 12:32:00 CDT
Comment on attachment 2211 [details]
tdebase: fix FTBFS in tdeioslave_smtp because missing headers

Pushed to GIT in hash e12a6ff6.
Comment 61 Slávek Banko 2014-10-12 12:32:42 CDT
Comment on attachment 2221 [details]
tdebase: fix FTBFS because missing header in twin utils

Pushed to GIT in hash 01d5f3ea.
Comment 62 Francois Andriot 2014-10-12 13:08:48 CDT
(In reply to Slávek Banko from comment #52)
> Created attachment 2309 [details]
> tdebase: fix conditionnal utmpx support in tdm + fix tdm_greet crash (2)
> 
> Memory for fifo_parent_dir is allocated by strdup, but your proposed patch
> removes corresponding free. At the same time, I believe that 0700 folder
> creation is OK for all systems.
> 
> Please look at the corrected patch.

This patch builds OK but I will test it later. (I'm on tdemultimedia now)
Comment 63 Francois Andriot 2014-10-12 16:50:42 CDT
(In reply to Francois Andriot from comment #11)
> Created attachment 2186 [details]
> tdebase: fix FTBFS due to linux specific header in kdesktop_lock

It looks like this patch contains a type.

#ifdef __linux__ should be entirely lowercase, not having an uppercase "L", which now causes FTBFS on Linux.
Comment 64 Slávek Banko 2014-10-12 17:53:12 CDT
(In reply to Francois Andriot from comment #63)
> (In reply to Francois Andriot from comment #11)
> > Created attachment 2186 [details]
> > tdebase: fix FTBFS due to linux specific header in kdesktop_lock
> 
> It looks like this patch contains a type.
> 
> #ifdef __linux__ should be entirely lowercase, not having an uppercase "L",
> which now causes FTBFS on Linux.

Well, that's what happens when a bona fide first push and then tested :)

Fixed in commit 68cfc4fe.
Comment 65 Slávek Banko 2014-10-12 17:53:48 CDT
Comment on attachment 2180 [details]
tdebase: fix time saving in kcontrol clock module

Pushed to GIT in hash 9a75b749.
Comment 66 Slávek Banko 2014-10-12 17:54:14 CDT
Comment on attachment 2182 [details]
tdebase: fix potential segmentation fault in kcontrol info module

Pushed to GIT in hash 180cd2fc.
Comment 67 Slávek Banko 2014-10-12 17:54:43 CDT
Comment on attachment 2183 [details]
tdebase: fix process pid detection in tdefontinst

Pushed to GIT in hash a501cd74.
Comment 68 Slávek Banko 2014-10-12 17:55:06 CDT
Comment on attachment 2184 [details]
tdebase: fix default halt command in tdm

Pushed to GIT in hash 3cc6437a.
Comment 69 Slávek Banko 2014-10-12 17:55:29 CDT
Comment on attachment 2187 [details]
tdebase: fix openbsd process detection in kicker applet naughtyprocessmonitor

Pushed to GIT in hash 54a7c726.
Comment 70 Slávek Banko 2014-10-12 17:55:51 CDT
Comment on attachment 2194 [details]
tdebase: add more processes to watch in ksysguard process management

Pushed to GIT in hash f19d2da9.
Comment 71 Slávek Banko 2014-10-12 17:57:38 CDT
Comment on attachment 2186 [details]
tdebase: fix FTBFS due to linux specific header in kdesktop_lock

Pushed to GIT as part of commit d3ce4fa7.
Comment 72 Slávek Banko 2014-10-12 17:58:39 CDT
Comment on attachment 2214 [details]
tdebase: fix FTBFS in tdm backend because linux specific header

Pushed to GIT as part of commit d3ce4fa7.
Comment 73 Slávek Banko 2014-10-12 18:13:46 CDT
Comment on attachment 2195 [details]
tdebase: enable ksysguard build for openbsd

Pushed to GIT as part of commit 3abdbba6.
Comment 74 Slávek Banko 2014-10-12 18:14:12 CDT
Comment on attachment 2197 [details]
tdebase: enable openbsd process management in ksysguard (part 2)

Pushed to GIT as part of commit 3abdbba6.
Comment 75 Slávek Banko 2014-10-12 18:15:12 CDT
Comment on attachment 2196 [details]
tdebase: enable openbsd process management in ksysguard (part 1)

Pushed to GIT as part of commit ffb5336b.
Comment 76 Slávek Banko 2014-10-12 18:15:33 CDT
Comment on attachment 2200 [details]
tdebase: enable openbsd process management in ksysguard (part 3)

Pushed to GIT as part of commit ffb5336b.
Comment 77 Slávek Banko 2014-10-12 18:15:46 CDT
Comment on attachment 2201 [details]
tdebase: enable openbsd process management in ksysguard (part 4)

Pushed to GIT as part of commit ffb5336b.
Comment 78 Slávek Banko 2014-10-12 18:16:12 CDT
Comment on attachment 2198 [details]
tdebase: enhance openbsd memory management in ksysguard (part 1)

Pushed to GIT as part of commit 794af5ed.
Comment 79 Slávek Banko 2014-10-12 18:16:27 CDT
Comment on attachment 2199 [details]
tdebase: enhance openbsd memory management in ksysguard (part 2)

Pushed to GIT as part of commit 794af5ed.
Comment 80 Slávek Banko 2014-10-15 18:26:59 CDT
Created attachment 2323 [details]
tdebase: fix tdm cmake variables

François, I noticed that CRYPT_LIBRARY is tested and set at two different locations - kcheckpass/ConfigureChecks.cmake and tdm/ConfigureChecks.cmake. It seems to me strange. So I moved test and setting to a common place - ConfigureChecks.cmake in tdebase root folder.

Please, can you test it?
Comment 81 Slávek Banko 2014-10-15 18:32:43 CDT
Created attachment 2324 [details]
tdebase: allow contitional build with tdehwlib

I modified all patches for allow conditional build with tdehwlib to use a value __TDE_HAVE_TDEHWLIB defined in kdemacros.h. Also added CMake test to verify whether it is possible to build with option WITH_TDEHWLIB.

Please, can you test it?
Comment 82 Francois Andriot 2014-10-16 15:25:21 CDT
Created attachment 2325 [details]
tdebase: fix FTBFS because invalid include in kickoff menu
Comment 83 Francois Andriot 2014-10-16 15:26:20 CDT
Created attachment 2326 [details]
tdebase: fix FTBFS because 'abs' function in kcontrol/displayconfig
Comment 84 Francois Andriot 2014-10-16 15:28:18 CDT
Still not tested attachment 2309 [details].

I have applied your 2 latest patches 2323 and 2324 , and they are OK for me.
Now I have other FTBFS that I need to investigate.
Comment 85 Francois Andriot 2014-10-16 15:48:14 CDT
Created attachment 2327 [details]
tdebase: fix tdm backend fd support (2)
Comment 86 Slávek Banko 2014-10-16 18:31:39 CDT
Oh, I see, I apologize, patches from attachment 2325 [details] and attachment 2327 [details] I still have in my queue, because I am divided original patches to OpenBSD part and tdehwlib part. That was the reason why OpenBSD part here was missing. Thank you for adding patches again to this bug report.

Now everything is back in order?
Comment 87 Francois Andriot 2014-10-16 23:36:49 CDT
OK now it builds on openbsd. I have no more patches yet.
Comment 88 Slávek Banko 2014-10-17 09:59:48 CDT
(In reply to Francois Andriot from comment #87)
> OK now it builds on openbsd. I have no more patches yet.

Please, can I state at your patches?
Signed-off-by: François Andriot <francois.andriot@free.fr>
Comment 89 Francois Andriot 2014-10-17 12:27:40 CDT
Yes you can add the signed-off and push the patches.
Comment 90 Slávek Banko 2014-10-18 08:49:01 CDT
Comment on attachment 2203 [details]
tdebase: workaround sasl header detection in tdeioslave

Pushed to GIT in hash b4c4c466.
Comment 91 Slávek Banko 2014-10-18 08:49:39 CDT
Comment on attachment 2204 [details]
tdebase: add perl function support in tdeioslave_man

Pushed to GIT in hash e22eb72f.
Comment 92 Slávek Banko 2014-10-18 08:50:22 CDT
Comment on attachment 2206 [details]
tdebase: fix FTBFS in tdeioslave_media because of invalid headers

Pushed to GIT in hash 46a0c294.
Comment 93 Slávek Banko 2014-10-18 08:50:49 CDT
Comment on attachment 2209 [details]
tdebase: fix FTBFS in tdeioslave_media because of missing header

Pushed to GIT in hash 0f2ad672.
Comment 94 Slávek Banko 2014-10-18 08:51:21 CDT
Comment on attachment 2212 [details]
tdebase: fix FTBFS in tdesu because missing header

Pushed to GIT in hash 7d4e2581.
Comment 95 Slávek Banko 2014-10-18 08:51:53 CDT
Comment on attachment 2213 [details]
tdebase: fix tdm auth backend for openbsd

Pushed to GIT in hash 18b81de3.
Comment 96 Slávek Banko 2014-10-18 08:52:27 CDT
Comment on attachment 2327 [details]
tdebase: fix tdm backend fd support (2)

Pushed to GIT in hash a679541f.
Comment 97 Slávek Banko 2014-10-18 08:53:18 CDT
Comment on attachment 2323 [details]
tdebase: fix tdm cmake variables

Pushed to GIT in hash 71fb8e0e.
Comment 98 Slávek Banko 2014-10-18 08:54:00 CDT
Comment on attachment 2309 [details]
tdebase: fix conditionnal utmpx support in tdm + fix tdm_greet crash (2)

Pushed to GIT in hash 1651fcb5 and d246c7d9.
Comment 99 Slávek Banko 2014-10-18 08:54:26 CDT
Comment on attachment 2325 [details]
tdebase: fix FTBFS because invalid include in kickoff menu

Pushed to GIT in hash 6382ec3f.
Comment 100 Slávek Banko 2014-10-18 08:54:50 CDT
Comment on attachment 2220 [details]
tdebase: fix FTBFS because conflicting declaration in twin compton

Pushed to GIT in hash a6d7fd77.
Comment 101 Slávek Banko 2014-10-18 08:55:14 CDT
Comment on attachment 2324 [details]
tdebase: allow contitional build with tdehwlib

Pushed to GIT in hash 10722069.
Comment 102 Slávek Banko 2014-10-18 08:55:33 CDT
Comment on attachment 2326 [details]
tdebase: fix FTBFS because 'abs' function in kcontrol/displayconfig

Pushed to GIT in hash 44654c9a.
Comment 103 Slávek Banko 2014-10-18 09:02:35 CDT
All patches are now committed. Therefore now I closed this bug report. If you will have any more patches, please reopen it.
Comment 104 Francois Andriot 2014-10-19 08:12:04 CDT
Everything works except the "crypt" detection now.
I don't know how it could work previously.

I have strange behaviour in cmake in "configurechecks.cmake".

# crypt
set( CRYPT_LIBRARY crypt )
check_library_exists( ${CRYPT_LIBRARY} crypt "" HAVE_CRYPT )
if( NOT HAVE_CRYPT )
  unset( CRYPT_LIBRARY )
  check_function_exists( crypt LIBC_HAVE_CRYPT )
  if( LIBC_HAVE_CRYPT )
    set( HAVE_CRYPT 1 CACHE INTERNAL "" FORCE )
  endif( LIBC_HAVE_CRYPT )
endif( NOT HAVE_CRYPT )


Under openbsd there is no "/usr/lib/libcrypt.so", so I get HAVE_CRYPT=false .
BUT, at build time, I still have CRYPT_LIBRARY="crypt" ,  then I get FTBFS in tdm/backend because ld cannot find "-lcrypt".

This is the 2nd case I have in openbsd/cmake (I have a similar problem in tqtinterface) . I wonder if it is correct to set a variable at top level, then unset it inside a "if( )" statement ... It looks like the unset is not taken into account.

Anyway, it looks like in openbsd, there is a '/usr/lib/libcrypto.so' which can be used instead of 'libcrypt.so' . So I need to try further anyway.
Comment 105 Francois Andriot 2014-10-19 10:47:09 CDT
Never mind, I had a time difference between my openbsd VM and my repository server. This time difference caused several strange errors during the build.
I've enabled time synchronization and now it builds correctly.