Merge branch 'master' of git://github.com/radekp/qtmoko

Conflicts:
	debian/control-src
Merge branch 'master' of git://github.com/radekp/qtmoko
oggcontentplugin - zero the vorbis struct to avoid segfault on /home/root/Documents/Alarm_Beep_01.ogg
gta04 modem - disable forced 2G, give the kernel fix for modem reenumeration try

This is the kernel fix:

https://github.com/radekp/linux-2.6/commit/217c9c92ba4ec501ff45f73ef2cd4f9a44b10166
Merge branch 'master' of github.com:radekp/qtmoko
Merge branch 'master' of git://github.com/radekp/qtmoko
Add "-release -static" to -qt-config-extra

-release gets rid of gdb related error messages
-static avoids the need for LD_LIBRARY_PATH at make install step
Update QtMoko project URL in configure

Since qtmoko.org is parked, set to qtmoko.sourceforge.net instead.
Don't hide the -sound-system=pulse choice anymore
Use pkg-config to get build flags for pulse
Workaround missing libpulsecommon-2.0.so when cross-building

This is an ugly hack to obtain target's libpulsecommon-2.0.so which is
missing from dpkg-cross packages, starting with wheezy. This library is
needed when linking with libpulse-simple and libpulse.
fix-modem-reenumerate.sh - log to root so that we know if it's fixed
Merge branch 'master' of github.com:radekp/qtmoko
Merge pull request #141 from pini-gh/master

PulseAudio pkg-config + workaround for missing libpulsecommon-2.0.so + minor fixes
gta04 doc - install also pulse audio utils
doc - enable ssh only on usb network

On Wifi and GPRS it can be dangerous. Thanks Paul Ferster and Lindi
for the iptables command:

[21:47] <PaulFertser> radekp: so here's what i suggest to add to the startup scripts: "ip6tables -A INPUT ! -i usb0 -p tcp --dport 22 -j DROP; iptables -A INPUT ! -i usb0 -p tcp --dport 22 -j DROP" I've just tested it on my up-to-date Debian unstable, works as expected.
[21:48] <lindi-> DROP is not very nice
[21:49] <lindi-> it causes long timeouts for normal users and allows fingerprinting for malicious users (since you can see which ports are firewalled and which ones aren't)
[21:55] *** ka6sox is now known as ka6sox-away.
[22:00] <radekp> lindi-: PaulFertser: hi
[22:00] <radekp> lindi-: any suggestions how to improve it?
[22:03] <PaulFertser> lindi-: REJECT then?
[22:03] <lindi-> PaulFertser: yeah that'd be nicer
[22:04] <PaulFertser> lindi-: i still fail to see when DROP is worse than REJECT and i would be grateful if you explain it.
[22:04] <lindi-> PaulFertser: well it causes long timeouts if you try to accidentally connect to it
[22:05] <PaulFertser> lindi-: btw, does your IceWM setup allow for automatic resizing of the active app to give the space to the keyboard when you want to show it and to "stretch" back when you hide it?
[22:05] <lindi-> PaulFertser: if you use "-j REJECT --reject-with tcp-reset" then malicious users can't see the difference between firewalled ports and closed ports
[22:05] <PaulFertser> lindi-: yes, it causes long timeout but i do not see any problem with that.
[22:05] <lindi-> PaulFertser: icewm doesn't but I have bound power button to toggle between maximize
[22:05] <PaulFertser> lindi-: is that considered the best practicies? Thanks a lot, noted!
[22:06] <lindi-> PaulFertser: by default REJECT will reply with icmp error message
Merge branch 'master' of github.com:radekp/qtmoko
gta04 doc - make pulseaudio default sink for gstreamer
alarm.wav phonering.wav - convert sample rate to 44100

Current gstreamer+pulseaudio have problems with playing 8khz audio.

This is just workaround, but 44100 is better anyways since we dont
have to do resampling (soundcard plays 44100 by default).
Use Debian's libvorbisfile library instead of QtMoko's bundled and old 'tremor'

This integrates better into Debian and reduces QtMoko's size.  It also
fixes segfaults (following glibc double free or corruption reports)
that are seen when scanning .ogg files since QtMoko switched to using
gstreamer as its media engine.

My guess is that the segfaults were caused by some subtle
incompatibility between the integer-based (i.e. tremor/libvorbisidec)
and the float-based (i.e. libvorbis and libvorbisfile) versions of the
Ogg Vorbis libraries.  For example, tremor/libvorbisidec and
libvorbisfile provide incompatible versions of the OggVorbis_File
type.  The cruxus media engine and oggcontentplugin (as first coded)
both used the tremor library in QtMoko's codebase, and that all
appeared to work fine.  The introduction of gstreamer and its
Ogg-support plugin pulled in the float-based Ogg libraries, and since
then (I believe) we've been seeing faults from oggcontentplugin.
Switching oggcontentplugin to use the float-based
libraries (libvorbisfile) appears to fix those faults.

I have not been able to pin down exact details of this problem.
Specifically, apart from the new build of oggcontentplugin, there are
no QtMoko executables or shared objects that link to libvorbisfile; so
I don't think we could ever have been using a float-based
implementation of the OggVorbis_File type with an integer-based header
for it.  However, it seems plausible that there are lower-level
functions or types deeper inside libogg+libvorbis and libvorbisidec,
with the same names but incompatible integer-based and float-base
implementations, and those could account for the problems that we've
observed.