2009/11/23 Graham Dumpleton <[email protected]>:
> 2009/11/23 Damjan <[email protected]>:
>>
>>
>>> Have fun.
>>>
>>> http://code.google.com/p/modwsgi/wiki/ChangesInVersion0207http://code.google.com/p/modwsgi/wiki/ChangesInVersion0300
>>>
>>> Version 3.0 is same as last release candidate exception for version
>>> string embedded within it.
>>
>> anyone knows of Ubuntu Karmic packages for mod_wsgi 3.0?
>> or at least a recipe for building a proper package?
>
> Build from source code yourself as per instructions on mod_wsgi site
> or in the source README.
>
> The issue being discussed here only relates to the build scripts that
> Unix distributions wrap around the mod_wsgi configure/make to package
> it up for the binary repositories.
>
> Building it yourself from source code is not affected and should work.
>
> I'll put out a patch for the CFLAGS stuff later today if get time.
For now use the following patches.
The issue of embedded spaces probably doesn't cause a problem because
both halves will be prefixed and apxs will then remove prefix from
both and pass in as originally supplied.
Also no need to worry about arguments already using -Wc, as apxs will
again strip off duplicate and original -Wc, will still get through
compiler as originally intended.
I can see now how my -Wl, problems were different as in that case apxs
wasn't just using it as magic prefix that got stripped off again
anyway.
Index: configure
===================================================================
--- configure (revision 1487)
+++ configure (working copy)
@@ -1851,16 +1851,22 @@
fi
CFLAGS1=""
+for arg in ${CFLAGS}
+do
+ CFLAGS1="${CFLAGS1} -Wc,$arg"
+done
+
+CFLAGS2=""
if test -x /usr/bin/lipo; then
LDFLAGS3=""
ARCHITECTURES=`/usr/bin/lipo -info $HTTPD | sed -e 's/.*://'`
for ARCH in $ARCHITECTURES; do
- CFLAGS1="${CFLAGS1} -Wc,'-arch ${ARCH}'"
+ CFLAGS2="${CFLAGS2} -Wc,'-arch ${ARCH}'"
LDFLAGS3="${LDFLAGS3} -arch ${ARCH}"
done
fi
-CFLAGS="${CFLAGS} ${CFLAGS1}"
+CFLAGS="${CFLAGS1} ${CFLAGS2}"
LDFLAGS="${LDFLAGS} ${LDFLAGS1} ${LDFLAGS2} ${LDFLAGS3}"
LDLIBS="${LDLIBS} ${LDLIBS1} ${LDLIBS2} ${LDLIBS3}"
Index: configure.ac
===================================================================
--- configure.ac (revision 1487)
+++ configure.ac (working copy)
@@ -141,16 +141,22 @@
fi
CFLAGS1=""
+for arg in ${CFLAGS}
+do
+ CFLAGS1="${CFLAGS1} -Wc,$arg"
+done
+
+CFLAGS2=""
if test -x /usr/bin/lipo; then
LDFLAGS3=""
ARCHITECTURES=`/usr/bin/lipo -info $HTTPD | sed -e 's/.*://'`
for ARCH in $ARCHITECTURES; do
- CFLAGS1="${CFLAGS1} -Wc,'-arch ${ARCH}'"
+ CFLAGS2="${CFLAGS2} -Wc,'-arch ${ARCH}'"
LDFLAGS3="${LDFLAGS3} -arch ${ARCH}"
done
fi
-CFLAGS="${CFLAGS} ${CFLAGS1}"
+CFLAGS="${CFLAGS1} ${CFLAGS2}"
LDFLAGS="${LDFLAGS} ${LDFLAGS1} ${LDFLAGS2} ${LDFLAGS3}"
LDLIBS="${LDLIBS} ${LDLIBS1} ${LDLIBS2} ${LDLIBS3}"
Committed in subversion trunk at revision 1488. The trunk commit also
updates version string in mod_wsgi.c as well to 3.1-TRUNK.
Graham
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=.