[Bug 211252] Re: Cannot recieve files using bluetooth

2008-05-22 Thread Jyrki Muukkonen
The CVS change mentioned in comment #51 seems to fix the problem for me.
Sending files from Nokia E65 to Ubuntu Hardy works now (on amd64, no
chance to test it on i386 right now).

http://bluez.cvs.sourceforge.net/bluez/utils/sdpd/request.c?r1=1.22&r2=1.23&view=patch

Patch is included in bluez-utils-3.32 upstream release.

-- 
Cannot recieve files using bluetooth
https://bugs.launchpad.net/bugs/211252
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 88617] Re: incremental backup does not work

2007-05-29 Thread Jyrki Muukkonen
There's something really evil going on with duplicity and python2.5.
Unfortunately the duplicity codebase seems to be a bit messy, and it was
easier to just fix the build scripts :)

Here's a fix debian/{rules,control} and friends which forces a build
against python2.4. It also uses "$(PYTHON)" instead of "python" to call
the build scripts, so it might be easier to step back and forth with
different python versions.

Works for me.

** Attachment added: "python2.4 build fix"
   
http://librarian.launchpad.net/7866321/duplicity-0.4.2-10.1ubuntu1-force_python2.4.diff

-- 
incremental backup does not work
https://bugs.launchpad.net/bugs/88617
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 109250] Re: /etc/init.d/apache2 doesn't do "chown www-data /var/lock/apache2" after directory creation

2007-05-20 Thread Jyrki Muukkonen
** Bug watch added: Debian Bug tracker #420101
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420101

** Also affects: apache2 (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420101
   Importance: Unknown
   Status: Unknown

-- 
/etc/init.d/apache2 doesn't do "chown www-data /var/lock/apache2" after 
directory creation
https://bugs.launchpad.net/bugs/109250
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 109250] /etc/init.d/apache2 doesn't do "chown www-data /var/lock/apache2" after directory creation

2007-04-23 Thread Jyrki Muukkonen
Public bug reported:

Binary package hint: apache2.2-common

It looks like /etc/init.d/apache2 has a one-liner to fix missing
/var/lock/apache2 directory. This is useful for example when /var/lock
is on tmpfs. However, the init script doesn't change the ownership of
newly created /var/lock/apache2 directory.

Here's a snippet from /var/lib/dpkg/info/apache2.2-common.postinst:
# Make sure /var/lock/apache2 has the correct permissions
if [ -d /var/lock/apache2 ]; then
chown www-data /var/lock/apache2
fi

But the /etc/init.d/apache2 does only the directory creation:
[ -d /var/lock/apache2 ] || mkdir -p /var/lock/apache2

I think copying (or even moving) the "if [ -d ..." block from the
postinst script to init.d script would be the correct fix.

For example dav_fs tries to create a lock file, but fails:
[Mon Apr 23 14:53:27 2007] [error] [client 127.0.0.1] The locks could not be 
queried for verification against a possible "If:" header.  [500, #0]
[Mon Apr 23 14:53:27 2007] [error] [client 127.0.0.1] Could not open the lock 
database.  [500, #400]
[Mon Apr 23 14:53:27 2007] [error] [client 127.0.0.1] (13)Permission denied: 
Could not open property database.  [500, #1]

I'm currently running a fresh AMD64 Kubuntu Feisty installation.

** Affects: apache2 (Ubuntu)
 Importance: Undecided
 Status: Unconfirmed

-- 
/etc/init.d/apache2 doesn't do "chown www-data /var/lock/apache2" after 
directory creation
https://bugs.launchpad.net/bugs/109250
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 68267] Re: x11-common loop asking 'Please enter an integer between -20 and 19.' at debconf medium or higher

2007-03-14 Thread Jyrki Muukkonen
My earlier patch (in this thread), replaces the contents of
validate_nice_value() function with a single line:

test "$1" -ge -20 -a "$1" -le 19 2> /dev/null

The patch I submitted was against the broken version (7.2.0ubuntu4 with
"$? -ne 1"), but the same idea works with the not-so-broken one.

BTW, the other {x11-common,xserver-xorg}.{prerm,postinst} scripts have
some evil looking expr's too.

-- 
x11-common loop asking 'Please enter an integer between -20 and 19.' at debconf 
medium or higher
https://launchpad.net/bugs/68267

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 68267] Re: x11-common have an important debconf bug

2007-03-07 Thread Jyrki Muukkonen
Something like this (install at least build-essential and fakeroot packages 
first):
apt-get source x11-common
cd xorg-7.2
patch -p1 -i /path/to/thefix.diff (or edit the debian/x11-common.config.in by 
hand)
dpkg-buildpackage -rfakeroot -uc -us -b


- install the .deb with dpkg -i x11-common-XYZ.deb
- test with dpkg-reconfigure x11-common (try inputing various strings, illegal 
numbers)

-- 
x11-common have an important debconf bug
https://launchpad.net/bugs/68267

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 68267] Re: x11-common have an important debconf bug

2007-03-07 Thread Jyrki Muukkonen
Oh my.. I just replaced that validate_nice_value() function with a one-
liner using /usr/bin/test.

Works for me on Feisty (server install, but eg. java and gd requires
x11-common).

The attached patch can also be found at
https://no.spoon.fi/~jvtm/patches/ubuntu/ubuntu-feisty-x11-common
.config-validate_nice_value-fix.diff

** Attachment added: "validate_nice_value() simplified"
   
http://librarian.launchpad.net/6652114/ubuntu-feisty-x11-common.config-validate_nice_value-fix.diff

-- 
x11-common have an important debconf bug
https://launchpad.net/bugs/68267

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 68267] Re: x11-common have an important debconf bug

2007-03-07 Thread Jyrki Muukkonen
How about just using /usr/bin/test and get rid of the expr. AFAIK, it
should whine if the input is not numeric, eg:

[EMAIL PROTECTED]:~$ i=4; test "$i" -ge -20 -a "$i" -lt 10 2> /dev/null; echo $?
0
[EMAIL PROTECTED]:~$ i=abc; test "$i" -ge -20 -a "$i" -lt 10 2> /dev/null; echo 
$?
2
[EMAIL PROTECTED]:~$ i=42; test "$i" -ge -20 -a "$i" -lt 10 2> /dev/null; echo 
$?
1

Or am I missing something here?

-- 
x11-common have an important debconf bug
https://launchpad.net/bugs/68267

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 75681] Re: boot-time race condition initializing md

2007-03-02 Thread Jyrki Muukkonen
Can confirm this with a fresh installation from daily/20070301/feisty-
server-amd64.iso.

Setup:
- only one disk
- md0 raid1 mounted as / (/dev/sda1 + other mirror missing, the installation ui 
actually permits this)
- md1 raid1 unused (/dev/sda3 + other mirror missing)

On the first boot I got to the initramfs prompt, with only md1 active:
mdadm: No devices listed in conf file were found.
stdin: error 0
Usage: modprobe 
mount: Cannot read /etc/fstab: No such file or directory
mount: Mounting /root/dev ... failed
mount: Mounting /sys ... failed
mount: Mounting /proc ...failed
Target filesystem doesn't have /sbin/init

/bin/sh: can't access tty; job control turned off
(initramfs)

Second try gave the same prompt, but now md0 was active. However, it
didn't boot:

(initramfs) cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda1[0]
  15623104 blocks [2/1] [U_]

Finally, on the third try, it booted  (well, got some warnings about
missing /dev/input/mice or something like that, but that's not the point
here).

Now I'm just sticking with / as a normal partition (+ others like /home
as raid1). I'm hoping that the migration to raid1 goes fine after this
problem has been fixed.

-- 
boot-time race condition initializing md
https://launchpad.net/bugs/75681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 76438] skin-default.html missing from ldaptor-webui

2006-12-19 Thread Jyrki Muukkonen
Public bug reported:

ldaptor-webui seems to be unusable, since it's missing /usr/lib/python
*/site-packages/ldaptor/apps/webui/skin-default.html file.

Here's the traceback from ldaptor-webui, triggered by the first http
request:

2006/12/19 16:33 EET [HTTPChannel,0,127.0.0.1] Unhandled error in Deferred:
2006/12/19 16:33 EET [HTTPChannel,0,127.0.0.1] Traceback (most recent call 
last):
  File "/var/lib/python-support/python2.4/nevow/flat/ten.py", line 62, 
in partialflatten
return flattener(obj, context)
  File "/var/lib/python-support/python2.4/nevow/flat/twist.py", line 
56, in DeferredSerializer
original.addCallback(cb)
  File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", 
line 191, in addCallback
callbackKeywords=kw)
  File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", 
line 182, in addCallbacks
self._runCallbacks()
---  ---
  File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", 
line 307, in _runCallbacks
self.result = callback(self.result, *args, **kw)
  File "/var/lib/python-support/python2.4/nevow/flat/twist.py", line 
54, in cb
d.callback(flat.serialize(result, context))
  File "/var/lib/python-support/python2.4/nevow/flat/ten.py", line 71, 
in serialize
return partialflatten(context, obj)
  File "/var/lib/python-support/python2.4/nevow/flat/ten.py", line 62, 
in partialflatten
return flattener(obj, context)
  File "/var/lib/python-support/python2.4/nevow/flat/flatstan.py", line 
252, in RendererSerializer
return FunctionSerializer(original.rend, context, nocontext)
  File "/var/lib/python-support/python2.4/nevow/flat/flatstan.py", line 
233, in FunctionSerializer
result = original(context, data)
  File "/var/lib/python-support/python2.4/nevow/rend.py", line 383, in 
rend
doc = self.docFactory.load(context)
  File "/var/lib/python-support/python2.4/nevow/loaders.py", line 239, 
in load
currentModified = os.path.getmtime(self._filename)
  File "posixpath.py", line 143, in getmtime
return os.stat(filename).st_mtime
exceptions.OSError: [Errno 2] No such file or directory: 
'/usr/lib/python2.4/site-packages/ldaptor/apps/webui/skin-default.html'

I'm currently running Edgy, but same seems to happen with package from
Feisty.

The fix is simple, just add a line for skin-default.html to source
packages setup.py's data_files array.

** Affects: ldaptor (Ubuntu)
 Importance: Undecided
 Status: Unconfirmed

-- 
skin-default.html missing from ldaptor-webui 
https://launchpad.net/bugs/76438

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71746] Re: patch for compression type priority (gz, bz2, possibly others)

2006-11-15 Thread Jyrki Muukkonen
** Also affects: apt (Debian)
   Importance: Undecided
   Status: Unconfirmed

-- 
patch for compression type priority (gz, bz2, possibly others)
https://launchpad.net/bugs/71746

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71746] patch for compression type priority (gz, bz2, possibly others)

2006-11-14 Thread Jyrki Muukkonen
Public bug reported:

The current apt version defaults to {Packages,Sources,Whatever}.bz2 and
fallbacks to .gz. The .bz2 files are around 20% smaller than .gz files, but
uncompression takes about five times longer. That's something you don't want
on slow machines with fast network connections.

This little patch adds Acquire::CompressionTypes configuration list to define
the compression extension order. Also, this patch makes any future compression
formats a little bit easier to implement.

Tagging this beast with "worksforme" and "experimental". Also, my C++ is a
little bit rusty. It might make your system unusable or send froobazillions of
requests to .deb mirror you're using.

Sample apt.conf:

Acquire::CompressionTypes {
".gz";
".bz2";
}

A patch against upstream 0.6.46.3 can be found at
https://no.spoon.fi/~jvtm/patches/apt/apt-compression-
priority-0.6.46.3_001.patch

Debug::Acquire::http is quite helpful when testing this.

Using this on Edgy/amd64 and after the compilation finishes on
Etch/ixp4xx (NSLU2).

Not sure if this qualifies as a "bug report", but didn't find any
feature request / implementation posting. I'm also too lazy to create a
Debian specific bugzilla/whatever account.

** Affects: apt (Ubuntu)
 Importance: Undecided
 Status: Unconfirmed

-- 
patch for compression type priority (gz, bz2, possibly others)
https://launchpad.net/bugs/71746

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 71746] Re: patch for compression type priority (gz, bz2, possibly others)

2006-11-14 Thread Jyrki Muukkonen
the patch as attachment

** Attachment added: "patch to add compression type priority"
   
http://librarian.launchpad.net/5067467/apt-compression-priority-0.6.46.3_001.patch

-- 
patch for compression type priority (gz, bz2, possibly others)
https://launchpad.net/bugs/71746

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs