Re: [arch-general] [arch-dev-public] Ant issue after bump

2010-03-03 Thread Henning Garus
On Tue, 02.03.2010 um 16:30 +0100, Andreas Radke wrote:
 something different: you have bumped apache-ant - please look at this
 
 http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-February/008464.html
 
 Any ideas how to fix our ant pkg that I can build OpenJDK again? Run ant
 --diagnostics. Probably some stuff is missing (xerces and xalan are
 present). I'd like to call everybody with some java experience for
 help here. 

The build failure is triggered by a bug in ant 1.8.0, which is already fixed
in their SVN:

https://issues.apache.org/bugzilla/show_bug.cgi?id=48782
http://svn.apache.org/viewvc?view=revisionrevision=912258

As a workaround you can put symlinks to
/usr/share/java/{xalan.jar,serializer.jar} into
/usr/share/java/apache-ant/lib/ , which makes ant use the xslt processor
provided by xalan-java instead of the one from openjdk. As a side effect this
avoids the NullPointerException which caused ant -diagnostics to fail.


Re: [arch-general] Tired of being asked for a password for su? Arch has the solution

2010-03-03 Thread Mauro Santos
 Yes, same answer, you get owned. In fact, even with a password
 required, the 5 minute grace window for sudo does you in - some bad
 guy just keeps trying to sudo, until you do it legitimately, thereby
 allowing it freely for 5 minutes, and then he's got root.

Isn't it possible to lock that to specific consoles with
Defaults tty_tickets in /etc/sudoers ? I guess that with the 5 min.
grace window will give a good balance between annoyance and security.


Re: [arch-general] Tired of being asked for a password for su? Arch has the solution

2010-03-03 Thread Ray Kohler
On Wed, Mar 3, 2010 at 9:06 AM, Mauro Santos registo.maill...@gmail.com wrote:
 Yes, same answer, you get owned. In fact, even with a password
 required, the 5 minute grace window for sudo does you in - some bad
 guy just keeps trying to sudo, until you do it legitimately, thereby
 allowing it freely for 5 minutes, and then he's got root.

 Isn't it possible to lock that to specific consoles with
 Defaults tty_tickets in /etc/sudoers ? I guess that with the 5 min.
 grace window will give a good balance between annoyance and security.

That's a nice feature, but there's still a hole in it. Consider the
case where you run sudo, close the window, and within the next 5
minutes something else allocates a PTY. It's likely to get the one you
just closed, with your ticket still good for it.


[arch-general] Daemon No Longer Writes To Logs

2010-03-03 Thread Carlos Williams
I was looking at '/var/log/mail.log' which is the default location
Postfix MTA writes everything it does to. I was sadly in that file
using Vim and deleted the last line. I didn't restore the removed line
and simply saved the file. I noticed now that the Postfix daemon no
longer writes anything to the log file since I edited it. No
permissions have changed at all. It's still in the same location and
owned by the same UID/GID.

Code:

-rw-r- 1 root log 189 Mar  3 08:37 mail.log

I can see that Postfix is however logging everything under
'/var/log/everything.log'

Anyone know how to fix this? I am worried I broke Postfix but mail is
still flowing and I get no errors at all from Postfix. It's just not
writing to 'mail.log' any longer.


Re: [arch-general] Daemon No Longer Writes To Logs

2010-03-03 Thread Damjan Georgievski
 I was looking at '/var/log/mail.log'

always use less to view log files. vim makes a copy of the files you
open, and that could be a lot of unnecesseary IO for big log files.

 which is the default location
 Postfix MTA writes everything it does to. I was sadly in that file
 using Vim and deleted the last line. I didn't restore the removed line
 and simply saved the file. I noticed now that the Postfix daemon no
 longer writes anything to the log file since I edited it.

When vim saves a file it actually saves a new copy of the file.
But postfix kept the old file opened and is still writing to it.

You can for example compare the inode of the file you see in the filesystem
ls -i /var/log/mail.log
and the node reported by lsof -p THE PID OF POSTFIX HERE


-- 
damjan


Re: [arch-general] Daemon No Longer Writes To Logs

2010-03-03 Thread Carlos Williams
On Wed, Mar 3, 2010 at 10:03 AM, Damjan Georgievski gdam...@gmail.com wrote:
 I was looking at '/var/log/mail.log'

 always use less to view log files. vim makes a copy of the files you
 open, and that could be a lot of unnecesseary IO for big log files.

I wanted to really just clear all my log errors and mess from testing
over the night and start fresh. This is really why I opened it in Vim.
Just after I removed all the errors from the night before, it no
longer wrote to the log file and more once saved.

 You can for example compare the inode of the file you see in the filesystem
 ls -i /var/log/mail.log
 and the node reported by lsof -p THE PID OF POSTFIX HERE

Interesting!

[r...@mail postfix]# ls -i /var/log/mail.log
15828 /var/log/mail.log

[r...@mail postfix]# ps -ef | grep -i postfix
root 24030 1  0 08:37 ?00:00:00 /usr/lib/postfix/master
postfix  24298 24030  0 10:06 ?00:00:00 pickup -l -t fifo -u
postfix  24299 24030  0 10:06 ?00:00:00 qmgr -l -t fifo -u
root 24311 24270  0 10:10 pts/100:00:00 grep -i postfix

[r...@mail postfix]# lsof -p 24030

First, which is the correct PID? Is it the 'master' PID? Secondly, I
don't appear to have the command in my system for some reason. Perhaps
I need to install the utility.


Re: [arch-general] Does anybody still have kde3 running? libpng problems preventing apps from running?

2010-03-03 Thread Nicolas Bigaouette
KDE's output to terminal is new in 4.4. Before that, I could launch any kde
from the command line and continue to work from it. Since the upgrade I'm
just flooded.

Could that be a build issue? Debuging output making its way into a final
package?


Re: [arch-general] Does anybody still have kde3 running? libpng problems preventing apps from running?

2010-03-03 Thread Sébastien Leblanc
David, are you running kdemod-legacy? If not, you should try it.

Sébastien Leblanc


[arch-general] top posting

2010-03-03 Thread Juan Diego
Hello listmates,

is there any special reason of why top-posting is a bad thing?


Re: [arch-general] top posting

2010-03-03 Thread Patrick Burroughs
On Wed, Mar 3, 2010 at 23:31, Juan Diego juantas...@gmail.com wrote:
 Hello listmates,

 is there any special reason of why top-posting is a bad thing?

To be clichéd...

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

~celti


Re: [arch-general] top posting

2010-03-03 Thread Daniel J Griffiths (Ghost1227)
On 03/03/10 at 11:36pm, Patrick Burroughs wrote:
 On Wed, Mar 3, 2010 at 23:31, Juan Diego juantas...@gmail.com wrote:
  Hello listmates,
 
  is there any special reason of why top-posting is a bad thing?
 
 To be clichéd...
 
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?
 
 ~celti

I like it!
--