This does affect kde 3.5.2, and the koffice release candidate as well.

As I said a few weeks ago, the libsuffix configure test is broken:
it depends on some gnu-grep feature (-o), so it is NOT portable to
many systems (including OpenBSD). The work-around --disable-libsuffix
is not clean.

Even though I asked for ldd output on mixed 32/64 bits linux systems,
I got absolutely NO ANSWER from the kde-packager list, 
which is kind of pathetic.

Anyways, I finally managed to grab ldd output from a person I know who
is totally unrelated to KDE, and rewrote the test using standard tools,
specifically, one invocation of sed.

Here's the patch.

You've  got to realize that, without this patch, kde does not even configure
cleanly on non-gnu grep systems...

Sorry for sending this patch THAT late in the game. If I had gotten my
hands on linux's output earlier, I would have written it earlier.

A quick timeline:
- 1 hour: finding out why configure was giving me a really weird include
directory by default, and finding a work-around.
- 5 minutes: asking for ldd output on kde-packager.
- 15 days: waiting hopelessly for someone to give me 32/64 bits ldd output.
- 1 day: realizing I was not going to get an answer, and asking elsewhere.
- 30 minutes: writing the patch.

--- acinclude.m4.orig   Sat Mar 18 14:58:51 2006
+++ acinclude.m4        Sun Mar 26 12:08:52 2006
@@ -3516,7 +3516,10 @@ int main() {
  return 0;
 }
 EOF
-        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out | grep -E 
"libc.so"| grep -E -o "/lib[[^\/]]*/" | sed "s/lib//" | sed "s/\/*//g"`
+        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne 
'/libc.so/{
+    s,.*/lib\([[^\/]]*\)/.*,\1, 
+    p 
+}'`
        rm -rf conftest.*
     fi 
        

Reply via email to