]> git.pld-linux.org Git - packages/VirtualBox.git/blob - VirtualBox-configure.patch
- skip debug packages for kernel modules only build
[packages/VirtualBox.git] / VirtualBox-configure.patch
1 diff -urN VirtualBox-2.0.0.orig/configure VirtualBox-2.0.0/configure
2 --- VirtualBox-2.0.0.orig/configure     2008-09-03 16:59:10.000000000 +0200
3 +++ VirtualBox-2.0.0/configure  2008-09-04 20:04:52.000000000 +0200
4 @@ -69,11 +69,7 @@
5  INCPNG=""
6  LIBPNG="-lpng"
7  PYTHONDIR="/usr /usr/local"
8 -QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3"
9 -QT3DIR="$QT3DIR /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt"
10 -QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr/lib64/qt4 /usr"
11  QT4DIR_PKGCONFIG=1
12 -QT4UIC3DIR="/usr/bin"
13  KBUILDDIR="`cd \`dirname $0\`; pwd`/kBuild"
14  DEVDIR="`cd \`dirname $0\`; pwd`/tools"
15  if [ -d "/lib/modules/`uname -r`/build" ]; then
16 @@ -215,8 +211,8 @@
17    echo "compiling the following source file:" >> $LOG
18    cat .tmp_src.cc >> $LOG
19    echo "using the following command line:" >> $LOG
20 -  echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc \"$1\"" >> $LOG
21 -  $CXX -O -Wall -o .tmp_out .tmp_src.cc $1 >> $LOG 2>&1
22 +  echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib \"$1\"" >> $LOG
23 +  $CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib $1 >> $LOG 2>&1
24    if [ $? -ne 0 ]; then
25      if [ -z "$4" ]; then
26        echo
27 @@ -1236,37 +1232,25 @@
28  }
29  EOF
30    found_qt=0
31 -  libs="lib"
32 -  [ "$LIB" = "lib64" ] && libs="$libs lib64"
33 -  for q in $QT3DIR; do
34 -    for l in $libs; do
35 -      echo "compiling the following source file:" >> $LOG
36 -      cat .tmp_src.cc >> $LOG
37 -      echo "using the following command line:" >> $LOG
38 -      echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD" >> $LOG
39 -      $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD >> $LOG 2>&1
40 -      if [ $? -eq 0 ]; then
41 -        if test_execute; then
42 -          cnf_append "PATH_SDK_QT3" "`cd $q ; pwd`"
43 -          found_qt=1
44 -          break
45 -        fi
46 -      fi
47 -    done
48 -    if [ $found_qt -eq 1 ]; then
49 -      break
50 +  echo "compiling the following source file:" >> $LOG
51 +  cat .tmp_src.cc >> $LOG
52 +  echo "using the following command line:" >> $LOG
53 +  echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt $LIBPTHREAD" >> $LOG
54 +  $CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt $LIBPTHREAD >> $LOG 2>&1
55 +  if [ $? -eq 0 ]; then
56 +    if test_execute; then
57 +      found_qt=1
58      fi
59 -  done
60 +  fi
61    if [ $found_qt -ne 1 ]; then
62      echo
63 -    echo "  Qt3 not found at \"$QT3DIR\" or Qt3 headers not found"
64      echo "  Check the file $LOG for detailed error information."
65      fail
66      return 1
67    fi
68    test_header "Qt3 devtools"
69 -  if check_avail "$q/bin/moc" QT3DIR/bin; then
70 -    moc_ver=`$q/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
71 +  if check_avail "/usr/bin/moc"; then
72 +    moc_ver=`/usr/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
73      if [ $? -ne 0 ]; then
74        log_failure "not found"
75        fail
76 @@ -1343,21 +1327,19 @@
77  #endif
78  }
79  EOF
80 -      for q in $QT4DIR; do
81 -        INCQT4="$q/include $q/include/QtCore"
82 -        FLGQT4="-DQT_SHARED"
83 -        I_INCQT4=`prefix_I "$INCQT4"`
84 -        LIBQT4="-L$q/lib -lVBoxQtCore"
85 -        if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
86 -          foundqt4=2
87 -          break;
88 -        fi
89 -        LIBQT4="-L$q/lib -lQtCore"
90 -        if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
91 -          foundqt4=1
92 -          break;
93 -        fi
94 -      done
95 +      INCQT4="/usr/include/qt4 /usr/include/qt/QtCore"
96 +      FLGQT4="-DQT_SHARED"
97 +      I_INCQT4=`prefix_I "$INCQT4"`
98 +      LIBQT4="-L/usr/lib -L/usr/lib64 -lVBoxQtCore"
99 +      if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
100 +        foundqt4=2
101 +        break;
102 +      fi
103 +      LIBQT4="-L/usr/lib -L/usr/lib64 -lQtCore"
104 +      if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then
105 +        foundqt4=1
106 +        break;
107 +      fi
108      fi
109    fi
110    if [ -n "$foundqt4" ]; then
111 @@ -1375,7 +1375,7 @@
112              cnf_append "VBOX_WITH_QT4_SUN" "1"
113            fi
114            test_header "Qt4 devtools"
115 -          for q in $QT4DIR; do
116 +          for q in /usr/lib/qt4 /usr/lib64/qt4; do
117              if which_wrapper "$q/bin/moc" > /dev/null; then
118                moc_ver=`$q/bin/moc -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'`
119                if [ $? -ne 0 ]; then
120 @@ -1765,8 +1745,6 @@
121    --with-iasl=PATH         location of the iasl compiler [$IASL]
122    --with-linux=DIR         Linux kernel source directory [$LINUX]
123    --with-mkisofs=PATH      location of mkisofs [$MKISOFS]
124 -  --with-qt-dir=DIR        directory for Qt3 headers/libraries [$QT3DIR]
125 -  --with-qt4-dir=DIR       directory for Qt4 headers/libraries [pkgconfig]
126  
127  Build type:
128    -d, --build-debug        build with debugging symbols and assertions
129 @@ -1809,13 +1787,6 @@
130          exit 1
131        fi
132        ;;
133 -    --with-qt-dir=*)
134 -      QT3DIR=`echo $option | cut -d'=' -f2`
135 -      ;;
136 -    --with-qt4-dir=*)
137 -      QT4DIR=`echo $option | cut -d'=' -f2`
138 -      QT4DIR_PKGCONFIG=0
139 -      ;;
140      --with-iasl=*)
141        IASL=`echo $option | cut -d'=' -f2`
142        ;;
143 --- virtualbox/configure~       2008-09-05 09:37:40.842948230 +0200
144 +++ virtualbox/configure        2008-10-05 11:57:17.430201993 +0200
145 @@ -1571,7 +1571,7 @@
146  EOF
147    found=
148    for p in $PYTHONDIR; do
149 -    for d in python2.5 python2.4 python2.3; do
150 +    for d in python2.6 python2.5 python2.4 python2.3; do
151        for b in lib64 lib/64 lib; do
152          echo "compiling the following source file:" >> $LOG
153          cat .tmp_src.cc >> $LOG
This page took 0.115474 seconds and 3 git commands to generate.