Fri, 16 Jan 2009 10:58:21 +0100
Correct and improve code logic, buildconf, and packaging. In particular:
1. Use descriptive variable names <var>libs instead of just <var>.
2. Although Nokia states in all Qt builds that 'NOTE: When linking
against OpenSSL, you can override the default library names
through OPENSSL_LIBS.' and even gives an example, their own
configuration logic rejects such an attempt. Correct this by
hard coding the OpenSSL library string in the configure script.
3. Consistently use the whitespace substitution [\t ] throughout.
4. Patch the buggy INCPATH of SQL plugin Qmake project files.
5. Add the 'x11' configuration variable to the qtconfig Qmake
project using the src/gui/gui.pro file as a model. This is
needed for qtconfig although not in other tools, because
the qtconfig buildconf indirectly includes qt_x11_p.h which
is dependent on X11 headers.
6. Avoid 'ld.so: fatal: hardware capability unsupported: SSE2 AMD_3DNow'
on platforms for which the config.tests/unix/[3dnow|sse2] succeed
although unsopported at run time by testing for the x86-64
instruction set at build time and regulating hardware capabilities.
7. Correctly install the desinger plugin by explicitly building it.
8. Remove custom plugin installation logic which is unnecessary.
9. Correct removal of temporary paths from shared object files.
michael@34 | 1 | Index: Configure |
michael@34 | 2 | --- Configure.orig 2008-04-15 15:24:36 +0200 |
michael@34 | 3 | +++ Configure 2008-04-16 08:19:20 +0200 |
michael@36 | 4 | @@ -417,7 +417,7 @@ |
michael@34 | 5 | fi # } |
michael@34 | 6 | fi # } |
michael@34 | 7 | LSOF_TGT="aix" |
michael@34 | 8 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 9 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 10 | if test $? -eq 0 # { |
michael@34 | 11 | then |
michael@34 | 12 | |
michael@36 | 13 | @@ -571,7 +571,7 @@ |
michael@34 | 14 | |
michael@34 | 15 | rm -f dialects/aix/aix5/j2/j2_snapshot.h |
michael@34 | 16 | fi # } |
michael@34 | 17 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 18 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 19 | if test $? -eq 0 # { |
michael@34 | 20 | then |
michael@34 | 21 | |
michael@36 | 22 | @@ -609,7 +609,7 @@ |
michael@34 | 23 | # This is AIX >= 5 on ia64. |
michael@34 | 24 | |
michael@34 | 25 | LSOF_TSTK64=1 |
michael@34 | 26 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 27 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 28 | if test $? -eq 0 # { |
michael@34 | 29 | then |
michael@34 | 30 | |
michael@36 | 31 | @@ -686,7 +686,7 @@ |
michael@34 | 32 | fi # } |
michael@34 | 33 | LSOF_TSTK64=1 |
michael@34 | 34 | LSOF_TMP1=1 |
michael@34 | 35 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 36 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 37 | if test $? -eq 0 # { |
michael@34 | 38 | then |
michael@34 | 39 | LSOF_CFGF="$LSOF_CFGF -maix64" |
michael@36 | 40 | @@ -733,7 +733,7 @@ |
michael@34 | 41 | fi #} |
michael@34 | 42 | LSOF_CFGF="$LSOF_CFGF -DAIXV=$LSOF_VERS" |
michael@34 | 43 | LSOF_DIALECT_DIR=aix |
michael@34 | 44 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 45 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 46 | if test $? -eq 0 # { |
michael@34 | 47 | then |
michael@34 | 48 | |
michael@36 | 49 | @@ -2134,7 +2134,7 @@ |
michael@34 | 50 | fi # } |
michael@34 | 51 | fi # } |
michael@34 | 52 | fi # } |
michael@34 | 53 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 54 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 55 | if test $? -eq 0 # { |
michael@34 | 56 | then |
michael@34 | 57 | LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` |
michael@36 | 58 | @@ -2188,7 +2188,7 @@ |
michael@34 | 59 | then |
michael@34 | 60 | LSOF_CFGF="$LSOF_CFGF -Ae +DD32" |
michael@34 | 61 | else |
michael@34 | 62 | - echo $LSOF_CC | grep -q gcc |
michael@34 | 63 | + $LSOF_CC --version | grep -q GCC |
michael@34 | 64 | if test $? -ne 0 # { |
michael@34 | 65 | then |
michael@34 | 66 | LSOF_CFGF="$LSOF_CFGF +DD32" |
michael@36 | 67 | @@ -2272,7 +2272,7 @@ |
michael@34 | 68 | echo "* NOTICE! Configuring for 64 bit HP-UX *" |
michael@34 | 69 | echo "* *" |
michael@34 | 70 | echo "*****************************************" |
michael@34 | 71 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 72 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 73 | if test $? -eq 0 # { |
michael@34 | 74 | then |
michael@34 | 75 | |
michael@36 | 76 | @@ -2341,7 +2341,7 @@ |
michael@34 | 77 | else |
michael@34 | 78 | LSOF_CFGF="$LSOF_CFGF -D_FILE_OFFSET_BITS=64" |
michael@34 | 79 | LSOF_CINFO="${LSOF_CINFO}, 32 bit HP-UX" |
michael@34 | 80 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 81 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 82 | if test $? -ne 0 # { |
michael@34 | 83 | then |
michael@34 | 84 | LSOF_CFGF="$LSOF_CFGF +DAportable" |
michael@36 | 85 | @@ -3550,7 +3550,7 @@ |
michael@34 | 86 | LSOF_CCV=`$LSOF_CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p'` |
michael@34 | 87 | fi # } |
michael@34 | 88 | fi # } |
michael@34 | 89 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 90 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 91 | if test $? -eq 0 # { |
michael@34 | 92 | then |
michael@34 | 93 | LSOF_CFGL="-w" |
michael@36 | 94 | @@ -4187,6 +4187,17 @@ |
michael@34 | 95 | LSOF_TSTBIGF=" " |
michael@34 | 96 | LSOF_TSTLFLG="-lsocket -lnsl" |
michael@34 | 97 | LSOF_VERS="100000" |
michael@34 | 98 | + if [ ".`isainfo -k`" = .amd64 ]; then |
michael@34 | 99 | + LSOF_CFGL="$LSOF_CFGL -lmp -lmd5 -lscf -ldoor -luutil" |
michael@34 | 100 | + fi |
michael@36 | 101 | + ;; |
michael@36 | 102 | + 5.11*) |
michael@36 | 103 | + LSOF_TSTBIGF=" " |
michael@36 | 104 | + LSOF_TSTLFLG="-lsocket -lnsl" |
michael@36 | 105 | + LSOF_VERS="110000" |
michael@36 | 106 | + if [ ".`isainfo -k`" = .amd64 ]; then |
michael@36 | 107 | + LSOF_CFGL="$LSOF_CFGL -lmp -lmd5 -lscf -ldoor -luutil" |
michael@36 | 108 | + fi |
michael@34 | 109 | ;; |
michael@34 | 110 | *) |
michael@34 | 111 | echo Unknown Solaris version: $LSOF_VSTR |
michael@36 | 112 | @@ -4264,7 +4275,7 @@ |
michael@36 | 113 | ;; |
michael@36 | 114 | 20500|20501) |
michael@36 | 115 | ;; |
michael@36 | 116 | - 20600|70000|80000|90000|100000) |
michael@36 | 117 | + 20600|70000|80000|90000|100000|110000) |
michael@36 | 118 | if test "X$SOLARIS_26PR_GWINDOWS" = "X" # { |
michael@36 | 119 | then |
michael@36 | 120 | rm -f ${LSOF_TMPC}.* |
michael@36 | 121 | @@ -4273,7 +4284,7 @@ |
michael@34 | 122 | echo "main(){" >> ${LSOF_TMPC}.c |
michael@34 | 123 | echo "enum prnodetype p=PR_GWINDOWS;}" >> ${LSOF_TMPC}.c |
michael@34 | 124 | echo "Testing prdata.h for PR_GWINDOWS, using $LSOF_CC" |
michael@34 | 125 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 126 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 127 | if test $? -eq 0 # { |
michael@34 | 128 | then |
michael@34 | 129 | $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 |
michael@36 | 130 | @@ -4298,7 +4309,7 @@ |
michael@34 | 131 | echo "main(){" >> ${LSOF_TMPC}.c |
michael@34 | 132 | echo "enum prnodetype p=PR_LDT;}" >> ${LSOF_TMPC}.c |
michael@34 | 133 | echo "Testing prdata.h for PR_LDT, using $LSOF_CC" |
michael@34 | 134 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 135 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 136 | if test $? -eq 0 # { |
michael@34 | 137 | then |
michael@34 | 138 | $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 |
michael@36 | 139 | @@ -4328,7 +4339,7 @@ |
michael@34 | 140 | echo $SOLARIS_KERNBITS | grep 64 > /dev/null |
michael@34 | 141 | if test $? -eq 0 # { |
michael@34 | 142 | then |
michael@34 | 143 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 144 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 145 | if test $? -eq 0 # { |
michael@34 | 146 | then |
michael@34 | 147 | |
michael@36 | 148 | @@ -4532,7 +4543,7 @@ |
michael@34 | 149 | |
michael@34 | 150 | # Check for Solaris 10 or higher ZFS. |
michael@34 | 151 | |
michael@34 | 152 | - if test -r ${LSOF_INCLUDE}/sys/fs/zfs.h # { |
michael@34 | 153 | + if false # { |
michael@34 | 154 | then |
michael@34 | 155 | LSOF_TMP1="dmu.h zfs_acl.h zfs_debug.h zfs_rlock.h zil.h spa.h zfs_context.h zfs_dir.h zfs_vfsops.h zio.h txg.h zfs_ctldir.h zfs_ioctl.h zfs_znode.h zio_impl.h" |
michael@34 | 156 | LSOF_TMP2="" |
michael@36 | 157 | @@ -4615,7 +4626,7 @@ |
michael@34 | 158 | echo "main(){" >> ${LSOF_TMPC}.c |
michael@34 | 159 | echo "enum vtype p=VSOCK;}" >> ${LSOF_TMPC}.c |
michael@34 | 160 | echo "Testing vnode.h for VSOCK, using $LSOF_CC" |
michael@34 | 161 | - echo $LSOF_CC | grep gcc > /dev/null |
michael@34 | 162 | + $LSOF_CC --version | grep GCC > /dev/null |
michael@34 | 163 | if test $? -eq 0 # { |
michael@34 | 164 | then |
michael@34 | 165 | $LSOF_CC ${LSOF_TMPC}.c -o ${LSOF_TMPC}.x > /dev/null 2>&1 |
michael@36 | 166 | @@ -5295,7 +5306,7 @@ |
michael@34 | 167 | echo "$i" >> $LSOF_TSTCFLG |
michael@34 | 168 | done # } |
michael@34 | 169 | fi # } |
michael@34 | 170 | -echo $LSOF_CC | grep gcc > /dev/null 2>&1 |
michael@34 | 171 | +$LSOF_CC --version | grep GCC > /dev/null 2>&1 |
michael@34 | 172 | if test $? -eq 0 # { |
michael@34 | 173 | then |
michael@34 | 174 | echo "-DLT_GCC" >> $LSOF_TSTCFLG |
michael@36 | 175 | Index: dialects/sun/dnode.c |
michael@36 | 176 | --- dialects/sun/dnode.c.orig 2008-10-21 18:16:45.000000000 +0200 |
michael@36 | 177 | +++ dialects/sun/dnode.c 2009-01-08 01:59:20.609120000 +0100 |
michael@36 | 178 | @@ -85,6 +85,8 @@ |
michael@36 | 179 | #define LOOKDEV_ALL (LOOKDEV_TAB | LOOKDEV_CLONE | LOOKDEV_PSEUDO) |
michael@36 | 180 | /* look all places */ |
michael@36 | 181 | |
michael@36 | 182 | +#define NOOP ((void)0) |
michael@36 | 183 | + |
michael@36 | 184 | |
michael@36 | 185 | /* |
michael@36 | 186 | * SAM-FS definitions |
michael@36 | 187 | @@ -2065,7 +2067,9 @@ |
michael@36 | 188 | if (kvs && kv.vfs_data |
michael@36 | 189 | && !kread((KA_T)kv.vfs_data, (char *)&pcfs, sizeof(pcfs))) { |
michael@36 | 190 | |
michael@36 | 191 | -#if solaris>=70000 |
michael@36 | 192 | +#if solaris>=110000 /* pcfs_entps doesn't exist any more */ |
michael@36 | 193 | + NOOP; |
michael@36 | 194 | +#elif solaris>=70000 |
michael@36 | 195 | Lf->inode = (INODETYPE)pc_makenodeid(pc.pc_eblkno, |
michael@36 | 196 | pc.pc_eoffset, |
michael@36 | 197 | pc.pc_entry.pcd_attr, |
michael@36 | 198 | @@ -2079,7 +2083,7 @@ |
michael@36 | 199 | pc.pc_eoffset, |
michael@36 | 200 | &pc.pc_entry, |
michael@36 | 201 | pcfs.pcfs_entps); |
michael@36 | 202 | -#endif /* solaris>=70000 */ |
michael@36 | 203 | +#endif /* solaris>=110000 */ |
michael@36 | 204 | |
michael@36 | 205 | Lf->inp_ty = 1; |
michael@36 | 206 | } |
michael@34 | 207 | Index: dialects/freebsd/machine.h |
michael@34 | 208 | --- dialects/freebsd/machine.h.orig 2006-03-28 01:29:14 +0200 |
michael@34 | 209 | +++ dialects/freebsd/machine.h 2008-04-16 08:17:46 +0200 |
michael@36 | 210 | @@ -441,6 +441,11 @@ |
michael@34 | 211 | */ |
michael@34 | 212 | |
michael@34 | 213 | /* #define HASSECURITY 1 */ |
michael@34 | 214 | +#if FREEBSDV>=6000 |
michael@34 | 215 | +#define HASSECURITY 1 |
michael@34 | 216 | +#define HAS_SI_PRIV 1 |
michael@34 | 217 | +#endif /* FREEBSDV>=6000 */ |
michael@34 | 218 | + |
michael@34 | 219 | |
michael@34 | 220 | |
michael@34 | 221 | /* |
michael@34 | 222 | Index: dialects/sun/machine.h |
michael@34 | 223 | --- dialects/sun/machine.h.orig 2007-04-24 18:23:25 +0200 |
michael@34 | 224 | +++ dialects/sun/machine.h 2008-04-16 08:17:46 +0200 |
michael@34 | 225 | @@ -75,6 +75,7 @@ |
michael@34 | 226 | #include <sys/poll.h> |
michael@34 | 227 | |
michael@34 | 228 | # if solaris>=80000 |
michael@34 | 229 | +#include <sys/types32.h> |
michael@34 | 230 | #include <sys/wait.h> |
michael@34 | 231 | #include <sys/types32.h> |
michael@34 | 232 | #define _KERNEL 1 |
michael@36 | 233 | Index: proc.c |
michael@36 | 234 | --- proc.c.orig 2008-10-21 18:22:05.000000000 +0200 |
michael@36 | 235 | +++ proc.c 2009-01-08 01:13:31.388963909 +0100 |
michael@36 | 236 | @@ -841,8 +841,6 @@ |
michael@36 | 237 | { |
michael@36 | 238 | if (Lf->sf & SELEXCLF) |
michael@36 | 239 | return; |
michael@36 | 240 | - if (((Selflags & SELNET) == SELNET) && !(Lf->sf & SELNET)) |
michael@36 | 241 | - return; |
michael@36 | 242 | Lp->pss |= PS_SEC; |
michael@36 | 243 | if (Plf) |
michael@36 | 244 | Plf->next = Lf; |