Re: Safe File Update (atomic)

2010-12-30 Thread Shachar Shemesh
On 30/12/10 17:02, Olaf van der Spek wrote: Got a project page already? Watch this space. Actual code coming soon(tm). https://github.com/Shachar/safewrite Shachar -- Shachar Shemesh Lingnu Open Source Consulting Ltd. http://www.lingnu.com -- To UNSUBSCRIBE, email to debian-devel-requ.

Bug#608460: ITP: pev -- Utility to get Product Version of PE32 executables

2010-12-30 Thread Fernando Mercês
Package: wnpp Severity: wishlist Owner: "Fernando Mercês" * Package name: pev Version : 0.22 Upstream Author : Fernando Mercês * URL : http://coding40.mentebinaria.com.br * License : GPL Programming Lang: C Description : Utility to get Product Version

Re: Safe File Update (atomic)

2010-12-30 Thread Henrique de Moraes Holschuh
On Thu, 30 Dec 2010, Henrique de Moraes Holschuh wrote: > BTW: safely removing a file is also tricky. AFAIK, one must open it RW, > in exclusive mode. stat it by fd and check whether it is what one > expects (regular file, ownership). unlink it by fd. close the fd. Eh, as it was pointed to me b

Re: using perl in preinst script

2010-12-30 Thread Carsten Hey
* Philipp Kern [2010-12-29 05:38 +]: > On 2010-12-28, Carsten Hey wrote: > > ... One reason for this is that dpkg's perl scripts were rewritten > > in C. > > I know you phrased it differently but wasn't the motivation for this > rewrite to be more robust in the base system on upgrades? I.e.

Re: Static linking: pkgconfig vs libtool

2010-12-30 Thread Enrico Weigelt
* Russ Allbery schrieb: > pkg-config is much superior to libtool, since libtool includes all the > libraries on dynamic links as well, which creates unwanted shared library > dependencies and causes other problems. Because of that, the trend in > Debian is to empty that information from libtool

Re: securing/monitoring Debian devel environment

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 11:58 PM, Christian Kastner wrote: > to package-build-audit *only* is a pain. For example, it is easy to > monitor *all* access to /etc/shadow or changes to /bin/login, it is > quite hard to limit the monitoring to a *process tree* (our building > process). Does the build

Re: securing/monitoring Debian devel environment

2010-12-30 Thread Christian Kastner
On 12/22/2010 05:10 PM, Yaroslav Halchenko wrote: > May be there is a lightweight utility which could be used for > monitoring, e.g. it would report suspicious actions being taken from > within a monitored environment? e.g., it would > > * sanitize environment variables > * monitor open/socket/..

Re: Bitcoin donation

2010-12-30 Thread Petter Reinholdtsen
[Cyclonite] > Dear friends, > > I have been looking in your site for any reference to Bitcoin for > making a small donation. As far as I know, none of the organisations accepting donations on behalf of the Debian project accept bitcoin. We are considering it for the SLX Debian Labs foundation wh

Re: Bug#608395: ITP: varnisnncsa-vhost -- Wrapper around 'varnishncsa' tool to save varnish logs with virtualhost

2010-12-30 Thread Joenio Costa
On Thu, Dec 30, 2010 at 07:48:16PM +0100, Tollef Fog Heen wrote: > This is fairly pointless as 3.0 supports user-specifiable formats and > filtering and will be out in 2011Q1 so varnishncsa-vhost won't ever be > in a stable release where it makes sense to have it. I figured it out. I had packaged

Re: Bug#608377: ITP: libhtml-quoted-perl -- extract structure of quoted HTML mail message

2010-12-30 Thread Dominic Hargreaves
On Thu, Dec 30, 2010 at 11:33:10AM +, Dominic Hargreaves wrote: > NB: the current CPAN release is marked as experimental and is missing > a licence. I will clarify these points with the author before uploading. This was a mistake; this module does in fact come with a Free licence but I failed

Bug#608424: ITP: backbone -- some Backbone for JS Apps with Models, Views, Collections, and Events

2010-12-30 Thread Jonas Smedegaard
Package: wnpp Severity: wishlist Owner: Jonas Smedegaard * Package name: backbone Version : 0.3.3 Upstream Author : Jeremy Ashkenas * URL : http://documentcloud.github.com/backbone/ * License : Expat Programming Lang: JavaScript Description : some Back

Bitcoin donation

2010-12-30 Thread cyclonite
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear friends, I have been looking in your site for any reference to Bitcoin for making a small donation. As you probably know, Bitcoin (bitcoin.org) is a new kind of a P2P crypto-currency in which the general public can make donations, macro or mi

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 7:46 PM, Ben Hutchings wrote: >> You're kidding me. Got any source to back this up? > > http://support.microsoft.com/?kbid=172190 Interesting. Although no longer available on Vista / 7. Olaf -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subje

Re: Safe File Update (atomic)

2010-12-30 Thread Ben Hutchings
On Thu, 2010-12-30 at 19:29 +0100, Olaf van der Spek wrote: > On Thu, Dec 30, 2010 at 7:15 PM, Shachar Shemesh wrote: > > If my (extremely leaky) memory serves me right, Windows has it. It's called > > "delete and then rename". It is not atomic (since when do Windows care about > > not breaking st

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 7:20 PM, Shachar Shemesh wrote: >> Depending on /proc is probably not reasonable. >> Are you sure it will be atomic? ;) >> >> > > open old file, get fd (we'll assume it's 5). Do readlink on /proc/self/fd/5, > and get file's real path. Do everything in said path. It's atomic

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 7:15 PM, Shachar Shemesh wrote: > If my (extremely leaky) memory serves me right, Windows has it. It's called > "delete and then rename". It is not atomic (since when do Windows care about > not breaking stuff), but it does exactly that. > > If you delete a file and quickly

Re: Safe File Update (atomic)

2010-12-30 Thread Shachar Shemesh
On 30/12/10 17:17, Olaf van der Spek wrote: On Thu, Dec 30, 2010 at 4:12 PM, Shachar Shemesh wrote: No. I was doing it as code to accompany an article on my company's site about how it should be done. I was originally out to write the article, and then decided to add code. A good thing, too

Re: Safe File Update (atomic)

2010-12-30 Thread Shachar Shemesh
On 30/12/10 19:48, Henrique de Moraes Holschuh wrote: It doesn't. You need a "copy inode without the file data" filesystem interface to be able to do that in the first place. It might exist, but I never heard of it. If my (extremely leaky) memory serves me right, Windows has it. It's c

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 6:48 PM, Henrique de Moraes Holschuh wrote: >> Why not? > > You touched it, it is not the same file/inode anymore. That's again a regression from the non-atomic case. >> How does it handle meta-data you don't know about yet? > > It doesn't.  You need a "copy inode without

Re: Safe File Update (atomic)

2010-12-30 Thread Henrique de Moraes Holschuh
On Thu, 30 Dec 2010, Olaf van der Spek wrote: > On Thu, Dec 30, 2010 at 4:24 PM, Henrique de Moraes Holschuh > wrote: > > On Thu, 30 Dec 2010, Olaf van der Spek wrote: > >> The reason I asked for a kernelland solution is because it's hard if > >> not impossible to do properly in userland. But some

Bug#608410: ITP: libmodule-starter-smart-perl -- Module::Starter plugin to add new modules into existing distributions

2010-12-30 Thread Alessandro Ghedini
Package: wnpp Severity: wishlist Owner: Alessandro Ghedini * Package name: libmodule-starter-smart-perl Version : 0.0.2 Upstream Author : Ruey-Cheng Chen * URL : http://search.cpan.org/dist/Module-Starter-Smart/ * License : Artistic or GPL-1+ (same as Perl)

Bug#608409: ITP: diaspora-x2 -- web-based client for XMPP-based decentral social networking

2010-12-30 Thread Jonas Smedegaard
Package: wnpp Severity: wishlist Owner: Jonas Smedegaard * Package name: diaspora-x2 Version : 0~git20101222 Upstream Author : Ben Nolan * URL : https://github.com/bnolan/diaspora-x2 * License : Expat (maybe - still working on resolving that) Programming Lan

Re: Safe File Update (atomic)

2010-12-30 Thread Shachar Shemesh
On 30/12/10 13:46, Henrique de Moraes Holschuh wrote: Is there a code snippet or lib function that handles this properly? I don't know. I'd be interested in the answer, though :-) I'm working on one under the MIT license. Will probably release it by the end of this week. Will a

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 4:24 PM, Henrique de Moraes Holschuh wrote: > On Thu, 30 Dec 2010, Olaf van der Spek wrote: >> The reason I asked for a kernelland solution is because it's hard if >> not impossible to do properly in userland. But some kernel devs (Ted >> and others) don't agree. They reaso

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 4:20 PM, Henrique de Moraes Holschuh wrote: >> What if the target name is actually a symlink? To a different volume? > > Indeed. You have to check that first, of course :-(  This is about safe > handling of such functions, symlinks always have to be derreferenced and > thei

Re: Safe File Update (atomic)

2010-12-30 Thread Henrique de Moraes Holschuh
On Thu, 30 Dec 2010, Olaf van der Spek wrote: > The reason I asked for a kernelland solution is because it's hard if > not impossible to do properly in userland. But some kernel devs (Ted > and others) don't agree. They reason that the desire to preserve all > meta-data isn't reasonable by itself.

Re: Safe File Update (atomic)

2010-12-30 Thread Henrique de Moraes Holschuh
On Thu, 30 Dec 2010, Olaf van der Spek wrote: > On Thu, Dec 30, 2010 at 12:46 PM, Henrique de Moraes Holschuh > wrote: > >  write temp file (in same directory as file to be replaced), fsync temp > > What if the target name is actually a symlink? To a different volume? Indeed. You have to check t

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 4:12 PM, Shachar Shemesh wrote: > No. I was doing it as code to accompany an article on my company's site > about how it should be done. I was originally out to write the article, and > then decided to add code. A good thing, too, as recursively resolving > symbolic links i

Re: Safe File Update (atomic)

2010-12-30 Thread Shachar Shemesh
On 30/12/10 17:02, Olaf van der Spek wrote: On Thu, Dec 30, 2010 at 3:51 PM, Shachar Shemesh wrote: I'm working on one under the MIT license. Will probably release it by the end of this week. Will also handle copying the permissions over and following symlinks. Sounds great! Got a pr

Re: Safe File Update (atomic)

2010-12-30 Thread Mike Hommey
On Thu, Dec 30, 2010 at 03:30:29PM +0100, Olaf van der Spek wrote: > > name the temp file properly, and teach your program to clean old ones up > > *safely* (see vim swap file handling for an example) when it starts. > > What about restoring meta-data? File-owner? owner, permissions, acl, xattrs,

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 3:51 PM, Shachar Shemesh wrote: > I'm working on one under the MIT license. Will probably release it by the > end of this week. Will also handle copying the permissions over and > following symlinks. Sounds great! Got a project page already? What aboue file owner? Meta-dat

Bug#608395: ITP: varnisnncsa-vhost -- Wrapper around 'varnishncsa' tool to save varnish logs with virtualhost

2010-12-30 Thread Joenio Costa
Package: wnpp Severity: wishlist Owner: Joenio Costa * Package name: varnisnncsa-vhost Version : 0.1 Upstream Author : Joenio Costa * URL : http://gitorious.org/varnisnncsa-vhost * License : GPL2 Programming Lang: Perl Description : Wrapper around 'va

Re: Safe File Update (atomic)

2010-12-30 Thread Shachar Shemesh
On 30/12/10 13:46, Henrique de Moraes Holschuh wrote: Is there a code snippet or lib function that handles this properly? I don't know. I'd be interested in the answer, though :-) I'm working on one under the MIT license. Will probably release it by the end of this week. Will also hand

Bug#608392: ITP: underscore -- functional programming aid for JavaScript working well with jQuery

2010-12-30 Thread Jonas Smedegaard
Package: wnpp Severity: wishlist Owner: Jonas Smedegaard * Package name: underscore Version : 1.1.3 Upstream Author : Jeremy Ashkenas * URL : http://documentcloud.github.com/underscore/ * License : Expat Programming Lang: JavaScript Description : funct

Re: Safe File Update (atomic)

2010-12-30 Thread Olaf van der Spek
On Thu, Dec 30, 2010 at 12:46 PM, Henrique de Moraes Holschuh wrote: >  write temp file (in same directory as file to be replaced), fsync temp What if the target name is actually a symlink? To a different volume? What if you're not allowed to create a file in that dir. > If we could use some sys

Bug#608380: ITP: libregexp-common-net-cidr-perl -- provide patterns for CIDR blocks

2010-12-30 Thread Dominic Hargreaves
Package: wnpp Severity: wishlist Owner: Dominic Hargreaves * Package name: libregexp-common-net-cidr-perl Version : 0.02 Upstream Author : Ruslan U. Zakirov * URL : http://search.cpan.org/dist/Regexp-Common-net-CIDR/ * License : not yet determined Programmin

Bug#608377: ITP: libhtml-quoted-perl -- extract structure of quoted HTML mail message

2010-12-30 Thread Dominic Hargreaves
Package: wnpp Severity: wishlist Owner: Dominic Hargreaves * Package name: libhtml-quoted-perl Version : 0.02 Upstream Author : Ruslan Zakirov * URL : http://search.cpan.org/dist/HTML-Quoted/ * License : not yet determined Programming Lang: Perl Descriptio

Re: Safe File Update (atomic)

2010-12-30 Thread Henrique de Moraes Holschuh
On Wed, 29 Dec 2010, Olaf van der Spek wrote: > Writing a temp file, fsync, rename is often proposed. However, the It is: write temp file (in same directory as file to be replaced), fsync temp file[1], rename (atomic), fsync directory[2]. [1] Makes sure file data has been commited to backend

Bug#608375: ITP: libserver-starter-perl -- a superdaemon for hot-deploying server programs

2010-12-30 Thread Dominic Hargreaves
Package: wnpp Severity: wishlist Owner: Dominic Hargreaves * Package name: libserver-starter-perl Version : 0.09 Upstream Author : Kazuho Oku * URL : http://search.cpan.org/dist/Server-Starter/ * License : Perl Programming Lang: Perl Description : a su

Bug#608371: ITP: libparallel-prefork-perl -- A simple prefork server framework

2010-12-30 Thread Dominic Hargreaves
Package: wnpp Severity: wishlist Owner: Dominic Hargreaves * Package name: libparallel-prefork-perl Version : 0.11 Upstream Author : Kazuho Oku * URL : http://search.cpan.org/dist/Parallel-Prefork/ * License : Perl Programming Lang: Perl Description :

Bug#608364: ITP: dmedia -- A simple distributed media library

2010-12-30 Thread Bilal Akhtar
Package: wnpp Severity: wishlist Owner: Bilal Akhtar * Package name: dmedia Version : 0.2-1 Upstream Author : Jason Gerard DeRose * URL : http://launchpad.net/dmedia * License : AGPL Programming Lang: Python Description : A simple distributed media li

[vu...@gnome.org: Cross-distro meeting about application installer]

2010-12-30 Thread Stefano Zacchiroli
- Forwarded message from Vincent Untz - Date: Wed, 29 Dec 2010 18:49:48 +0100 From: Vincent Untz To: distributi...@lists.freedesktop.org Subject: Cross-distro meeting about application installer Hi all, We're organizing a cross-distro meeting in January to discuss the "application inst

Re: using perl in preinst script

2010-12-30 Thread Philipp Kern
On 2010-12-30, Peter Samuelson wrote: >> On 2010-12-28, Carsten Hey wrote: >> > system. The remaining perl library packages could be removed after >> > installing debconf-english. > [Philipp Kern] >> "You don't care about non-native speakers?" SCNR. > That's not how I read it at all. I think h