Hi!

I'm trying to build RPM packages for RedHat 7.0 and SuSE 6.4. While doing
this, I found some strange behaviour I believe is a bug in
./configure. This applies to arts-0.3.4 from the arts-project homepage.

To compile the package, I use a different prefix:
  ./configure [...] --prefix=/var/tmp/arts-root/usr.

Unfortunally, configure complains, it cannot find the kde libraries. I
digged into the source and found out, configure actually searches and 
finds the libraries but then discards the path!


Here is my workaround (1 line added):

----- configure, lines 3272-3293 (lines split to fit screen size) -----
kde_libdirs="$ac_kde_libraries /usr/lib/kde/lib /usr/local/kde/lib \
  /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib \
  /usr/X11R6/kde/lib"
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"

kde_libdir=NO for i in $kde_libdirs; do
  for j in libkdecore.la; do
    if test -r "$i/$j"; then
      kde_libdir=$i break 2
    fi
  done
done

ac_kde_libraries="$kde_libdir" # THIS LINE WAS MISSING

if test -n "$ac_kde_libraries" && \
       test ! -r "$ac_kde_libraries/libkdecore.la"; then
{ echo "configure: error: 
in the prefix, you've chosen, are no kde libraries installed. This will
fail. So, check this please and use another prefix!" 1>&2; exit 1; } fi
-----------------------------------------------------------------------

Comments on this? Needless to say, that -with the patch- configure
successfully creates the Makefiles and arts compiles fine. Only make
install fails unless I'm root (../../mkinstalldirs /usr/include/kde/idl). 
It would be nice, if this wouldn't be necessary.


Oh, there're two minor additions I've made (necessary on both, RedHat and
SuSE). You may want to add them to the main source.

arts-0.3.4.orig/src/ksbuild/execdlg.cpp: #include <unistd.h>
arts-0.3.4/src/synthesizer/audiosubsys.cc: #include <errno.h>




bye,
  Settel

Reply via email to