You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(23) |
Sep
(3) |
Oct
(28) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
(11) |
Jun
(4) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
|
Nov
(7) |
Dec
(6) |
2008 |
Jan
(8) |
Feb
(5) |
Mar
|
Apr
(5) |
May
(1) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Richard D. <ric...@us...> - 2008-02-24 10:17:46
|
Update of /cvsroot/file-extattr/File-ExtAttr/inc/Devel In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv2016/inc/Devel Added Files: CheckLib.pm Log Message: Bail more gracefully when build pre-reqs aren't present --- NEW FILE: CheckLib.pm --- # $Id: CheckLib.pm,v 1.1 2008/02/24 10:17:48 richdawe Exp $ package Devel::CheckLib; use strict; use vars qw($VERSION @ISA @EXPORT); $VERSION = '0.3'; use Config; use File::Spec; use File::Temp; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(assert_lib check_lib_or_exit); # localising prevents the warningness leaking out of this module local $^W = 1; # use warnings is a 5.6-ism _findcc(); # bomb out early if there's no compiler =head1 NAME Devel::CheckLib - check that a library is available =head1 DESCRIPTION Devel::CheckLib is a perl module that checks whether a particular C library is available, and dies if it is not. =head1 SYNOPSIS # in a Makefile.PL or Build.PL use lib qw(inc); use Devel::CheckLib; check_lib_or_exit( lib => 'jpeg' ); check_lib_or_exit( lib => [ 'iconv', 'jpeg' ] ); # or prompt for path to library and then do this: check_lib_or_exit( lib => 'jpeg', libpath => $additional_path ); =head1 HOW IT WORKS You pass named parameters to a function describing how to build and link to the library. Currently the only parameter supported is 'lib', which can be a string or an arrayref of several libraries. In the future, expect us to add something for checking that header files are available as well. It works by trying to compile this: int main(void) { return 0; } and linking it to the specified libraries. If something pops out the end which looks executable, then we know that it worked. =head1 FUNCTIONS All of these take the same named parameters and are exported by default. To avoid exporting them, C<use Devel::CheckLib ()>. =head2 assert_lib Takes several named parameters. The value of C<lib> must be either a string with the name of a single library or a reference to an array of strings of library names. Depending on the compiler found, library names will be fed to the compiler either as C<-l> arguments or as C<.lib> file names. (E.g. C<-ljpeg> or C<jpeg.lib>) Likewise, C<libpath> must if provided either be a string or an array of strings representing additional paths to search for libraries. C<LIBS> must be a C<ExtUtils::MakeMaker>-style space-seperated list of libraries (each preceded by '-l') and directories (preceded by '-L'). This will die with an error message if any of the libraries listed can not be found. B<Note>: dying in a Makefile.PL or Build.PL may provoke a 'FAIL' report from CPAN Testers' automated smoke testers. Use C<check_lib_or_exit> instead. =head2 check_lib_or_exit This behaves exactly the same as C<assert_lib()> except that instead of dieing, it warns (with exactly the same error message) and exits. This is intended for use in Makefile.PL / Build.PL when you might want to prompt the user for various paths and things before checking that what they've told you is sane. If a library isn't found, it exits with an exit value of 0 to avoid causing a CPAN Testers 'FAIL' report. CPAN Testers should ignore this result -- which is what you want if an external library dependency is not available. =cut sub check_lib_or_exit { eval 'assert_lib(@_)'; if($@) { warn $@; exit; } } sub assert_lib { my %args = @_; my (@libs, @libpaths); @libs = (ref($args{lib}) ? @{$args{lib}} : $args{lib}) if $args{lib}; @libpaths = (ref($args{libpath}) ? @{$args{libpath}} : $args{libpath}) if $args{libpath}; # work-a-like for Makefile.PL's "LIBS" argument if(defined($args{LIBS})) { foreach my $arg (split(/\s+/, $args{LIBS})) { die("LIBS argument badly-formed: $arg\n") unless($arg =~ /^-l/i); push @{$arg =~ /^-l/ ? \@libs : \@libpaths}, substr($arg, 2); } } my @cc = _findcc(); my($ch, $cfile) = File::Temp::tempfile( 'assertlibXXXXXXXX', SUFFIX => '.c', UNLINK => 1 ); print $ch "int main(void) { return 0; }\n"; close($ch); my @missing; for my $lib ( @libs ) { my $exefile = File::Temp::mktemp( 'assertlibXXXXXXXX' ) . $Config{_exe}; my @sys_cmd; if ( $Config{cc} eq 'cl' ) { # Microsoft compiler require Win32; my @libpath = map { q{/libpath:} . Win32::GetShortPathName($_) } @libpaths; @sys_cmd = (@cc, $cfile, "${lib}.lib", "/Fe$exefile", "/link", @libpath ); } elsif($Config{cc} =~ /bcc32(\.exe)?/) { # Borland my @libpath = map { "-L$_" } @libpaths; @sys_cmd = (@cc, "-o$exefile", "-l$lib", @libpath, $cfile); } else { # Unix-ish # gcc, Sun, AIX (gcc, cc) my @libpath = map { "-L$_" } @libpaths; @sys_cmd = (@cc, $cfile, "-o", "$exefile", "-l$lib", @libpath); } warn "# @sys_cmd\n" if $args{debug}; my $rv = $args{debug} ? system(@sys_cmd) : _quiet_system(@sys_cmd); push @missing, $lib if $rv != 0 || ! -x $exefile; _cleanup_exe($exefile); } unlink $cfile; my $miss_string = join( q{, }, map { qq{'$_'} } @missing ); die("Can't build and link to $miss_string\n") if @missing; } sub _cleanup_exe { my ($exefile) = @_; my $ofile = $exefile; $ofile =~ s/$Config{_exe}$/$Config{_o}/; unlink $exefile if -f $exefile; unlink $ofile if -f $ofile; unlink "$exefile\.manifest" if -f "$exefile\.manifest"; return } sub _findcc { my @paths = split(/$Config{path_sep}/, $ENV{PATH}); my @cc = split(/\s+/, $Config{cc}); return @cc if -x $cc[0]; foreach my $path (@paths) { my $compiler = File::Spec->catfile($path, $cc[0]) . $Config{_exe}; return ($compiler, @cc[1 .. $#cc]) if -x $compiler; } die("Couldn't find your C compiler\n"); } # code substantially borrowed from IPC::Run3 sub _quiet_system { my (@cmd) = @_; # save handles local *STDOUT_SAVE; local *STDERR_SAVE; open STDOUT_SAVE, ">&STDOUT" or die "CheckLib: $! saving STDOUT"; open STDERR_SAVE, ">&STDERR" or die "CheckLib: $! saving STDERR"; # redirect to nowhere local *DEV_NULL; open DEV_NULL, ">" . File::Spec->devnull or die "CheckLib: $! opening handle to null device"; open STDOUT, ">&" . fileno DEV_NULL or die "CheckLib: $! redirecting STDOUT to null handle"; open STDERR, ">&" . fileno DEV_NULL or die "CheckLib: $! redirecting STDERR to null handle"; # run system command my $rv = system(@cmd); # restore handles open STDOUT, ">&" . fileno STDOUT_SAVE or die "CheckLib: $! restoring STDOUT handle"; open STDERR, ">&" . fileno STDERR_SAVE or die "CheckLib: $! restoring STDERR handle"; return $rv; } =head1 PLATFORMS SUPPORTED You must have a C compiler installed. We check for C<$Config{cc}>, both literally as it is in Config.pm and also in the $PATH. It has been tested with varying degrees on rigourousness on: =over =item gcc (on Linux, *BSD, Solaris, Cygwin) =item Sun's compiler tools on Solaris =item IBM's tools on AIX =item Microsoft's tools on Windows =item MinGW on Windows (with Strawberry Perl) =item Borland's tools on Windows =back =head1 WARNINGS, BUGS and FEEDBACK This is a very early release intended primarily for feedback from people who have discussed it. The interface may change and it has not been adequately tested. Feedback is most welcome, including constructive criticism. Bug reports should be made using L<http://rt.cpan.org/> or by email. When submitting a bug report, please include the output from running: perl -V perl -MDevel::CheckLib =head1 SEE ALSO L<Devel::CheckOS> =head1 AUTHORS David Cantrell E<lt>da...@ca...E<gt> David Golden E<lt>dag...@cp...E<gt> Thanks to the cpan-testers-discuss mailing list for prompting us to write it in the first place; to Chris Williams for help with Borland support. =head1 COPYRIGHT and LICENCE Copyright 2007 David Cantrell. Portions copyright 2007 David Golden. This module is free-as-in-speech software, and may be used, distributed, and modified under the same conditions as perl itself. =head1 CONSPIRACY This module is also free-as-in-mason software. =cut 1; |
From: Richard D. <ric...@us...> - 2008-02-24 10:11:05
|
Update of /cvsroot/file-extattr/File-ExtAttr/inc/Devel In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv31912/Devel Log Message: Directory /cvsroot/file-extattr/File-ExtAttr/inc/Devel added to the repository |
From: Richard D. <ric...@us...> - 2008-02-24 10:10:50
|
Update of /cvsroot/file-extattr/File-ExtAttr/inc In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv31511/inc Log Message: Directory /cvsroot/file-extattr/File-ExtAttr/inc added to the repository |
From: Richard D. <ric...@us...> - 2008-02-23 07:40:38
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv22951 Modified Files: TODO Log Message: Suggested build improvement Index: TODO =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/TODO,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** TODO 26 Jan 2008 08:48:41 -0000 1.19 --- TODO 23 Feb 2008 07:40:27 -0000 1.20 *************** *** 1,3 **** --- 1,6 ---- todo: + * Detect libattr (for the header) using Devel::CheckLib + -- See <http://use.perl.org/~barbie/journal/35584?from=rss>. + -- There's no Fedora package, so package it too. * utf8 * warnings |
From: Richard D. <ric...@us...> - 2008-01-26 08:48:37
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv23881 Modified Files: TODO Log Message: User requirement on error handling Index: TODO =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/TODO,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** TODO 26 Jan 2008 08:38:11 -0000 1.18 --- TODO 26 Jan 2008 08:48:41 -0000 1.19 *************** *** 9,12 **** --- 9,13 ---- * throw exceptions rather than warnings on getxattr() failure (set $@, die => need eval to catch errors? not sure I like that) + * Set $! to errno in xattr operations, for use in FUSE filesystems. * symbolic link handling (O_NOFOLLOW on Mac OS X) * Check it can be used with Perl 5.6.x |
From: Richard D. <ric...@us...> - 2008-01-26 08:46:56
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv23050/lib/File Modified Files: ExtAttr.pm Log Message: Add man page references to docs, in addition to the URLS (suggested by Reuben Thomas) Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** ExtAttr.pm 26 Jan 2008 08:33:08 -0000 1.31 --- ExtAttr.pm 26 Jan 2008 08:46:59 -0000 1.32 *************** *** 365,368 **** --- 365,370 ---- =item Linux + getattr(2), attr(5) + L<http://www.die.net/doc/linux/man/man2/getxattr.2.html> *************** *** 386,389 **** --- 388,393 ---- FreeBSD >= 5.0 supports extended attributes. + extattr(2) + L<http://www.freebsd.org/cgi/man.cgi?query=extattr&sektion=2&apropos=0&manpath=FreeBSD+6.0-RELEASE+and+Ports> *************** *** 399,402 **** --- 403,408 ---- =item Mac OS X + getxattr(2) + L<http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/getxattr.2.html> *************** *** 405,408 **** --- 411,416 ---- =item Solaris + attropen(3C), fsattr(5) + L<http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWaman/hman3c/attropen.3c.html> |
From: Richard D. <ric...@us...> - 2008-01-26 08:38:07
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv19867 Modified Files: TODO Log Message: Reformat todo list; expand on exceptions todo; remove stuff about renaming the module Index: TODO =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/TODO,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** TODO 4 Jul 2007 10:08:29 -0000 1.17 --- TODO 26 Jan 2008 08:38:11 -0000 1.18 *************** *** 1,97 **** todo: ! utf8 ! warnings ! check that partition supports it, especially in unit test ! docs, explain user_xattr, mount -o remount ! change to use section 2 calls instead of section 3 ! for "operation not supported" note must be prefixed with "user" ! buffer size, reuse buffer? ! throw exceptions rather than warnings on getxattr() failure ! symbolic link handling (O_NOFOLLOW on Mac OS X) ! Check it can be used with Perl 5.6.x ! Test setting attributes on directories, as suggested at Brum.pm ! Factor out common code from the tests ! Refactor the buffer allocation into a common function in ExtAttr.xs ! ! Remove dependency on libattr on Linux - just define ENOATTR -> ENODATA? ! (Feels a bit evil to do that.) ! ! Unite somehow with File::Attributes (which is for file systems ! without xattrs)? ! ! Document pre-reqs for test suite: Test::Distribution, Test::Pod::Coverage, ! Test::YAML::Meta. Include these in a .spec file that we can include ! with distro ! ! Disallow nuls in the attribute names. The list handling will break ! if we allow this. (Alternative is to make the portable listxattr follow ! the BSD API, where the separator is a length byte.) ! ! Rename the module? ! ~~~~~~~~~~~~~~~~~~ ! ! Or could we just mention "metadata" in the one-line summary ! for File::ExtAttr? Then people searching for metadata, extattr, xattr ! would likely find the module. Actually, test whether those terms find ! the module /already/. ! ! My reply to brian d foy's mail: ! ! "brian d foy wrote: ! ! > [[ This message was both posted and mailed: see ! > the "To," "Cc," and "Newsgroups" headers for details. ]] ! > ! > In article <200...@pa...>, Perl Authors ! > Upload Server <up...@pa...> wrote: ! > ! > ! >> modid: File::ExtAttr ! >> DSLIP: cmcfp ! >> description: Access extended attributes of files ! > ! > ! > ! > How about File::Attributes::Extended or something like that? The "Ext" ! > abbreviation is vague. ! ! ! What else would go under File::Attributes::*? I couldn't think ! of anything else that would reasonably go in that namespace. ! Is it worth creating a namespace for just this module? ! ! The original motivation for this name was that extended attributes ! are known as "extattrs" (*BSD) or "xattrs" (Linux). ! ! > You might also take a look at File::Spec to see how it handles ! > multi-platform support and names the various bits. :) ! ! Thanks. ! ! We (Kevin Goess and I) discussed having a submodule per platform, ! but we decided to do have all the cross-platform in the XS. ! Haven't /actually/ tried that yet, though. ;)" ! Steffan Mueller's mail: ! "Richard Dawe wrote: ! >> How about File::Attributes::Extended or something like that? The "Ext" ! >> abbreviation is vague. ! > ! > ! > What else would go under File::Attributes::*? I couldn't think ! > of anything else that would reasonably go in that namespace. ! > Is it worth creating a namespace for just this module? ! > ! > The original motivation for this name was that extended attributes ! > are known as "extattrs" (*BSD) or "xattrs" (Linux). ! There is File::Attribute. It does something similar ! but in a completely different way. It creates .filename.attributename files ! to store the attribute data. ! I wouldn't use the File::ExtAttr name either since it's too cryptic. ! Personally, I was well aware that different OS's and file systems support ! per-file meta data, but I didn't know what it was called. If I searched CPAN ! for that functionality, I'd look for File::MetaData or File::Atribute(s), ! but I would probably miss File::ExtAddr." --- 1,29 ---- todo: ! * utf8 ! * warnings ! * check that partition supports it, especially in unit test ! * docs, explain user_xattr, mount -o remount ! * change to use section 2 calls instead of section 3 ! * for "operation not supported" note must be prefixed with "user" ! * buffer size, reuse buffer? ! * throw exceptions rather than warnings on getxattr() failure ! (set $@, die => need eval to catch errors? not sure I like that) ! * symbolic link handling (O_NOFOLLOW on Mac OS X) ! * Check it can be used with Perl 5.6.x ! * Test setting attributes on directories, as suggested at Brum.pm ! * Factor out common code from the tests ! * Refactor the buffer allocation into a common function in ExtAttr.xs ! * Remove dependency on libattr on Linux - just define ENOATTR -> ENODATA? ! (Feels a bit evil to do that.) ! * Unite somehow with File::Attributes (which is for file systems ! without xattrs)? ! * Document pre-reqs for test suite: Test::Distribution, Test::Pod::Coverage, ! Test::YAML::Meta. Include these in a .spec file that we can include ! with distro ! * Disallow nuls in the attribute names. The list handling will break ! if we allow this. (Alternative is to make the portable listxattr follow ! the BSD API, where the separator is a length byte.) |
From: Richard D. <ric...@us...> - 2008-01-26 08:33:06
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv17805 Modified Files: Changes Log Message: Remove NetBSD 3.x from list of supported OSes, since File::ExtAttr's test suite will never pass on it. Index: Changes =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Changes,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** Changes 26 Jan 2008 08:28:33 -0000 1.37 --- Changes 26 Jan 2008 08:33:08 -0000 1.38 *************** *** 6,9 **** --- 6,12 ---- This may help fix the build with Perl 5.6.x or earlier. + - (richdawe) Remove NetBSD 3.x from list of supported OSes, + since File::ExtAttr's test suite will never pass on it. + 1.07 2007-12-15 |
From: Richard D. <ric...@us...> - 2008-01-26 08:33:05
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv17805/lib/File Modified Files: ExtAttr.pm Log Message: Remove NetBSD 3.x from list of supported OSes, since File::ExtAttr's test suite will never pass on it. Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** ExtAttr.pm 26 Jan 2008 08:28:33 -0000 1.30 --- ExtAttr.pm 26 Jan 2008 08:33:08 -0000 1.31 *************** *** 77,83 **** =item FreeBSD 5.0 and later ! =item NetBSD 3.0 and later (builds) ! ! =item NetBSD 4.0 and later (for UFS filesystem with xattr support) =item Solaris 10 and later --- 77,81 ---- =item FreeBSD 5.0 and later ! =item NetBSD 4.0 and later =item Solaris 10 and later |
From: Richard D. <ric...@us...> - 2008-01-26 08:28:30
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv15624/lib/File Modified Files: ExtAttr.pm Log Message: Add 2008 to copyright years Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** ExtAttr.pm 26 Jan 2008 08:25:32 -0000 1.29 --- ExtAttr.pm 26 Jan 2008 08:28:33 -0000 1.30 *************** *** 423,427 **** Copyright (C) 2005 by Kevin M. Goess ! Copyright (C) 2005, 2006, 2007 by Richard Dawe This library is free software; you can redistribute it and/or modify --- 423,427 ---- Copyright (C) 2005 by Kevin M. Goess ! Copyright (C) 2005, 2006, 2007, 2008 by Richard Dawe This library is free software; you can redistribute it and/or modify |
From: Richard D. <ric...@us...> - 2008-01-26 08:28:29
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv15624 Modified Files: Changes README Log Message: Add 2008 to copyright years Index: README =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/README,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** README 21 Dec 2007 16:52:12 -0000 1.15 --- README 26 Jan 2008 08:28:33 -0000 1.16 *************** *** 59,63 **** Copyright (C) 2005 by Kevin M. Goess ! Copyright (C) 2005, 2006, 2007 by Richard Dawe This library is free software; you can redistribute it and/or modify --- 59,63 ---- Copyright (C) 2005 by Kevin M. Goess ! Copyright (C) 2005, 2006, 2007, 2008 by Richard Dawe This library is free software; you can redistribute it and/or modify Index: Changes =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Changes,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** Changes 21 Dec 2007 16:49:53 -0000 1.36 --- Changes 26 Jan 2008 08:28:33 -0000 1.37 *************** *** 1,5 **** Revision history for Perl extension File::ExtAttr. ! 1.08 2007-??-?? - (richdawe) Add a typemap for usage of "const char *" in the XS. --- 1,5 ---- Revision history for Perl extension File::ExtAttr. ! 1.08 2008-??-?? - (richdawe) Add a typemap for usage of "const char *" in the XS. |
From: Richard D. <ric...@us...> - 2008-01-26 08:25:30
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv14441/lib/File Modified Files: ExtAttr.pm Log Message: Fix apostrophe escaping typo Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** ExtAttr.pm 21 Dec 2007 16:52:12 -0000 1.28 --- ExtAttr.pm 26 Jan 2008 08:25:32 -0000 1.29 *************** *** 244,248 **** C<%flags> allows control of whether the attribute should be created ! or should replace an existing attribute\'s value. If the key C<create> is true, setfattr will fail if the attribute already exists. If the key C<replace> is true, setfattr will fail if the attribute --- 244,248 ---- C<%flags> allows control of whether the attribute should be created ! or should replace an existing attribute's value. If the key C<create> is true, setfattr will fail if the attribute already exists. If the key C<replace> is true, setfattr will fail if the attribute |
From: Richard D. <ric...@us...> - 2007-12-21 16:52:59
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv18509 Added Files: typemap Log Message: Add a typemap for usage of "const char *" in the XS. This may help fix the build with Perl 5.6.x or earlier. --- NEW FILE: typemap --- # basic C types const char * T_PV |
From: Richard D. <ric...@us...> - 2007-12-21 16:52:12
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv18428/lib/File Modified Files: ExtAttr.pm Log Message: Bump version to 1.08 Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** ExtAttr.pm 30 Nov 2007 20:16:49 -0000 1.27 --- ExtAttr.pm 21 Dec 2007 16:52:12 -0000 1.28 *************** *** 181,185 **** ); ! our $VERSION = '1.07'; #this is used by getxattr(), needs documentation --- 181,185 ---- ); ! our $VERSION = '1.08'; #this is used by getxattr(), needs documentation |
From: Richard D. <ric...@us...> - 2007-12-21 16:52:12
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv18428 Modified Files: META.yml README Log Message: Bump version to 1.08 Index: README =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/README,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** README 15 Dec 2007 09:28:12 -0000 1.14 --- README 21 Dec 2007 16:52:12 -0000 1.15 *************** *** 1,3 **** ! File-ExtAttr version 1.07 ========================= --- 1,3 ---- ! File-ExtAttr version 1.08 ========================= Index: META.yml =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/META.yml,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** META.yml 15 Dec 2007 09:28:12 -0000 1.9 --- META.yml 21 Dec 2007 16:52:12 -0000 1.10 *************** *** 1,5 **** # http://module-build.sourceforge.net/META-spec.html name: File-ExtAttr ! version: 1.07 version_from: lib/File/ExtAttr.pm installdirs: site --- 1,5 ---- # http://module-build.sourceforge.net/META-spec.html name: File-ExtAttr ! version: 1.08 version_from: lib/File/ExtAttr.pm installdirs: site |
From: Richard D. <ric...@us...> - 2007-12-21 16:49:54
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv17171 Modified Files: Changes MANIFEST Log Message: Add a typemap for usage of "const char *" in the XS. This may help fix the build with Perl 5.6.x or earlier. Index: Changes =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Changes,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Changes 15 Dec 2007 09:28:12 -0000 1.35 --- Changes 21 Dec 2007 16:49:53 -0000 1.36 *************** *** 1,4 **** --- 1,9 ---- Revision history for Perl extension File::ExtAttr. + 1.08 2007-??-?? + + - (richdawe) Add a typemap for usage of "const char *" in the XS. + This may help fix the build with Perl 5.6.x or earlier. + 1.07 2007-12-15 Index: MANIFEST =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/MANIFEST,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** MANIFEST 15 Dec 2007 09:28:12 -0000 1.19 --- MANIFEST 21 Dec 2007 16:49:53 -0000 1.20 *************** *** 7,10 **** --- 7,11 ---- TODO ExtAttr.xs + typemap portable.h flags.c |
From: Richard D. <ric...@us...> - 2007-12-15 09:28:11
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv25741 Modified Files: Changes ExtAttr.xs MANIFEST META.yml README Log Message: Bugfix: Don't return garbage for empty attributes for getfattr(); bump version to 1.07 Index: README =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/README,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** README 4 Nov 2007 09:08:38 -0000 1.13 --- README 15 Dec 2007 09:28:12 -0000 1.14 *************** *** 1,3 **** ! File-ExtAttr version 1.06 ========================= --- 1,3 ---- ! File-ExtAttr version 1.07 ========================= Index: META.yml =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/META.yml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** META.yml 4 Nov 2007 09:08:38 -0000 1.8 --- META.yml 15 Dec 2007 09:28:12 -0000 1.9 *************** *** 1,5 **** # http://module-build.sourceforge.net/META-spec.html name: File-ExtAttr ! version: 1.06 version_from: lib/File/ExtAttr.pm installdirs: site --- 1,5 ---- # http://module-build.sourceforge.net/META-spec.html name: File-ExtAttr ! version: 1.07 version_from: lib/File/ExtAttr.pm installdirs: site Index: Changes =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Changes,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** Changes 30 Nov 2007 20:16:49 -0000 1.34 --- Changes 15 Dec 2007 09:28:12 -0000 1.35 *************** *** 1,5 **** Revision history for Perl extension File::ExtAttr. ! 1.07 200?-??-?? - (richdawe) Change my contact details. --- 1,9 ---- Revision history for Perl extension File::ExtAttr. ! 1.07 2007-12-15 ! ! - (richdawe) Bugfix: When the attribute value was empty, getfattr() ! returned garbage. Fixed. (Reported by Joe Stewart -- ! thanks!) - (richdawe) Change my contact details. Index: ExtAttr.xs =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/ExtAttr.xs,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** ExtAttr.xs 13 Aug 2007 12:02:28 -0000 1.22 --- ExtAttr.xs 15 Dec 2007 09:28:12 -0000 1.23 *************** *** 77,81 **** attrvalue = NULL; ! New(1, attrvalue, buflen, char); attrlen = portable_getxattr(path, attrname, attrvalue, buflen, flags); --- 77,81 ---- attrvalue = NULL; ! Newz(1, attrvalue, buflen, char); attrlen = portable_getxattr(path, attrname, attrvalue, buflen, flags); *************** *** 118,122 **** attrvalue = NULL; ! New(1, attrvalue, buflen, char); attrlen = portable_fgetxattr(fd, attrname, attrvalue, buflen, flags); --- 118,122 ---- attrvalue = NULL; ! Newz(1, attrvalue, buflen, char); attrlen = portable_fgetxattr(fd, attrname, attrvalue, buflen, flags); Index: MANIFEST =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/MANIFEST,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** MANIFEST 13 Aug 2007 12:02:28 -0000 1.18 --- MANIFEST 15 Dec 2007 09:28:12 -0000 1.19 *************** *** 28,31 **** --- 28,32 ---- t/04yaml-meta.t t/11basic.t + t/12empty.t t/13long.t t/14optional.t |
From: Richard D. <ric...@us...> - 2007-12-15 09:28:11
|
Update of /cvsroot/file-extattr/File-ExtAttr/t In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv25741/t Added Files: 12empty.t Log Message: Bugfix: Don't return garbage for empty attributes for getfattr(); bump version to 1.07 --- NEW FILE: 12empty.t --- #!perl -w # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl Linux-xattr.t' ########################## # change 'tests => 2' to 'tests => last_test_to_print'; use strict; use Test::More; BEGIN { my $tlib = $0; $tlib =~ s|/[^/]*$|/lib|; push(@INC, $tlib); } use t::Support; if (t::Support::should_skip()) { plan skip_all => 'Tests unsupported on this OS/filesystem'; } else { plan tests => 12; } use File::Temp qw(tempfile); use File::Path; use File::ExtAttr qw(setfattr getfattr delfattr); use IO::File; my $TESTDIR = ($ENV{ATTR_TEST_DIR} || '.'); my ($fh, $filename) = tempfile( DIR => $TESTDIR ); close $fh || die "can't close $filename $!"; # Create a directory. my $dirname = "$filename.dir"; eval { mkpath($dirname); }; if ($@) { warn "Couldn't create $dirname: $@"; } #todo: try wierd characters in here? # try unicode? my $key = "alskdfjadf2340zsdflksjdfa09eralsdkfjaldkjsldkfj"; my $val = ''; ########################## # Filename-based tests # ########################## foreach ( $filename, $dirname ) { print "# using $_\n"; #for (1..30000) { #checking memory leaks #will die if xattr stuff doesn't work at all setfattr($_, "$key", $val) || die "setfattr failed on filename $_: $!"; #set it is (setfattr($_, "$key", $val), 1); #read it back is (getfattr($_, "$key"), $val); #delete it ok (delfattr($_, "$key")); #check that it's gone is (getfattr($_, "$key"), undef); #} } ########################## # IO::Handle-based tests # ########################## $fh = new IO::File("<$filename") || die "Unable to open $filename"; print "# using file descriptor ".$fh->fileno()."\n"; #for (1..30000) { #checking memory leaks #will die if xattr stuff doesn't work at all setfattr($fh, "$key", $val) || die "setfattr failed on file descriptor ".$fh->fileno().": $!"; #set it is (setfattr($fh, "$key", $val), 1); #read it back is (getfattr($fh, "$key"), $val); #delete it ok (delfattr($fh, "$key")); #check that it's gone is (getfattr($fh, "$key"), undef); #} #print STDERR "done\n"; #<STDIN>; # todo: Add support for IO::Dir handles, and test here. END { unlink $filename if $filename; rmdir $dirname if $dirname; }; |
From: Richard D. <ric...@us...> - 2007-11-30 20:16:49
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv21533/lib/File/ExtAttr Modified Files: Tie.pm Log Message: Bump version number; change my contact details Index: Tie.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr/Tie.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Tie.pm 2 Oct 2006 20:55:42 -0000 1.3 --- Tie.pm 30 Nov 2007 20:16:49 -0000 1.4 *************** *** 112,116 **** David Leadbeater, L<http://dgl.cx/contact> ! Documentation by Richard Dawe, E<lt>ri...@ph...E<gt> =head1 COPYRIGHT AND LICENSE --- 112,116 ---- David Leadbeater, L<http://dgl.cx/contact> ! Documentation by Richard Dawe, E<lt>ric...@cp...E<gt> =head1 COPYRIGHT AND LICENSE |
From: Richard D. <ric...@us...> - 2007-11-30 20:16:48
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv21533/lib/File Modified Files: ExtAttr.pm Log Message: Bump version number; change my contact details Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ExtAttr.pm 4 Nov 2007 09:08:38 -0000 1.26 --- ExtAttr.pm 30 Nov 2007 20:16:49 -0000 1.27 *************** *** 181,185 **** ); ! our $VERSION = '1.06'; #this is used by getxattr(), needs documentation --- 181,185 ---- ); ! our $VERSION = '1.07'; #this is used by getxattr(), needs documentation *************** *** 417,421 **** Kevin M. Goess, E<lt>kg...@en...E<gt> ! Richard Dawe, E<lt>ri...@ph...E<gt> =head1 COPYRIGHT AND LICENSE --- 417,421 ---- Kevin M. Goess, E<lt>kg...@en...E<gt> ! Richard Dawe, E<lt>ric...@cp...E<gt> =head1 COPYRIGHT AND LICENSE |
From: Richard D. <ric...@us...> - 2007-11-30 20:16:48
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv21533 Modified Files: Changes Makefile.PL Log Message: Bump version number; change my contact details Index: Changes =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Changes,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Changes 4 Nov 2007 09:08:38 -0000 1.33 --- Changes 30 Nov 2007 20:16:49 -0000 1.34 *************** *** 1,4 **** --- 1,8 ---- Revision history for Perl extension File::ExtAttr. + 1.07 200?-??-?? + + - (richdawe) Change my contact details. + 1.06 2007-11-04 Index: Makefile.PL =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Makefile.PL,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile.PL 23 Jun 2007 11:04:30 -0000 1.8 --- Makefile.PL 30 Nov 2007 20:16:49 -0000 1.9 *************** *** 43,47 **** (ABSTRACT_FROM => 'lib/File/ExtAttr.pm', # retrieve abstract from module AUTHOR => 'Kevin M. Goess <kg...@en...>' ! .', Richard Dawe <ri...@ph...>') : ()), # Don't actually need -lattr on Linux. # LIBS => ['-lattr'], # e.g., '-lm' --- 43,47 ---- (ABSTRACT_FROM => 'lib/File/ExtAttr.pm', # retrieve abstract from module AUTHOR => 'Kevin M. Goess <kg...@en...>' ! .', Richard Dawe <ric...@cp...>') : ()), # Don't actually need -lattr on Linux. # LIBS => ['-lattr'], # e.g., '-lm' |
From: Richard D. <ric...@us...> - 2007-11-04 09:08:35
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17:/tmp/cvs-serv7897 Modified Files: Changes META.yml README Log Message: Release 1.06 Index: README =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/README,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** README 23 Jun 2007 11:04:30 -0000 1.12 --- README 4 Nov 2007 09:08:38 -0000 1.13 *************** *** 1,3 **** ! File-ExtAttr version 1.05 ========================= --- 1,3 ---- ! File-ExtAttr version 1.06 ========================= Index: META.yml =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/META.yml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** META.yml 23 Jun 2007 11:04:30 -0000 1.7 --- META.yml 4 Nov 2007 09:08:38 -0000 1.8 *************** *** 1,5 **** # http://module-build.sourceforge.net/META-spec.html name: File-ExtAttr ! version: 1.05 version_from: lib/File/ExtAttr.pm installdirs: site --- 1,5 ---- # http://module-build.sourceforge.net/META-spec.html name: File-ExtAttr ! version: 1.06 version_from: lib/File/ExtAttr.pm installdirs: site Index: Changes =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/Changes,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** Changes 13 Aug 2007 12:02:28 -0000 1.32 --- Changes 4 Nov 2007 09:08:38 -0000 1.33 *************** *** 1,4 **** --- 1,11 ---- Revision history for Perl extension File::ExtAttr. + 1.06 2007-11-04 + + - (richdawe) Bugfix: Builds and works again on Mac OS X 10.4 (Tiger). + + - (richdawe) Fix typo in t/33nslong.t, which caused it to fail + on Mac OS X. + 1.05 2007-08-13 |
From: Richard D. <ric...@us...> - 2007-11-04 09:08:35
|
Update of /cvsroot/file-extattr/File-ExtAttr/lib/File In directory sc8-pr-cvs17:/tmp/cvs-serv7897/lib/File Modified Files: ExtAttr.pm Log Message: Release 1.06 Index: ExtAttr.pm =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/lib/File/ExtAttr.pm,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** ExtAttr.pm 23 Jun 2007 11:04:31 -0000 1.25 --- ExtAttr.pm 4 Nov 2007 09:08:38 -0000 1.26 *************** *** 181,185 **** ); ! our $VERSION = '1.05'; #this is used by getxattr(), needs documentation --- 181,185 ---- ); ! our $VERSION = '1.06'; #this is used by getxattr(), needs documentation |
From: Richard D. <ric...@us...> - 2007-11-04 09:00:12
|
Update of /cvsroot/file-extattr/File-ExtAttr In directory sc8-pr-cvs17:/tmp/cvs-serv4296 Modified Files: extattr_macosx.c extattr_os.h portable.h Log Message: Fix build and tests on Mac OS X 10.4 Index: portable.h =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/portable.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** portable.h 1 Oct 2006 11:18:54 -0000 1.12 --- portable.h 4 Nov 2007 09:00:10 -0000 1.13 *************** *** 83,87 **** portable_lenxattr (const char *path, const char *attrname, struct hv *flags) { ! #ifdef BSD /* XXX: flags? Namespace? */ return extattr_get_file(path, EXTATTR_NAMESPACE_USER, attrname, NULL, 0); --- 83,87 ---- portable_lenxattr (const char *path, const char *attrname, struct hv *flags) { ! #ifdef EXTATTR_BSD /* XXX: flags? Namespace? */ return extattr_get_file(path, EXTATTR_NAMESPACE_USER, attrname, NULL, 0); *************** *** 95,99 **** portable_flenxattr (int fd, const char *attrname, struct hv *flags) { ! #ifdef BSD /* XXX: flags? Namespace? */ return extattr_get_fd(fd, EXTATTR_NAMESPACE_USER, attrname, NULL, 0); --- 95,99 ---- portable_flenxattr (int fd, const char *attrname, struct hv *flags) { ! #ifdef EXTATTR_BSD /* XXX: flags? Namespace? */ return extattr_get_fd(fd, EXTATTR_NAMESPACE_USER, attrname, NULL, 0); Index: extattr_os.h =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/extattr_os.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** extattr_os.h 19 Aug 2006 14:06:23 -0000 1.3 --- extattr_os.h 4 Nov 2007 09:00:10 -0000 1.4 *************** *** 5,14 **** #include <sys/param.h> ! #ifdef BSD ! #define EXTATTR_BSD #endif ! #ifdef __APPLE__ ! #define EXTATTR_MACOSX #endif --- 5,14 ---- #include <sys/param.h> ! #if defined(__MACH__) && defined(__APPLE__) ! #define EXTATTR_MACOSX #endif ! #if defined(BSD) && !defined(EXTATTR_MACOSX) ! #define EXTATTR_BSD #endif Index: extattr_macosx.c =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/extattr_macosx.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** extattr_macosx.c 2 Oct 2006 20:30:09 -0000 1.3 --- extattr_macosx.c 4 Nov 2007 09:00:10 -0000 1.4 *************** *** 36,40 **** if (ok) ! ret = setxattr(path, attrname, attrvalue, slen, xflags); return ok ? ret : -1; --- 36,40 ---- if (ok) ! ret = setxattr(path, attrname, attrvalue, slen, 0, xflags); return ok ? ret : -1; *************** *** 68,72 **** if (ok) ! ret = fsetxattr(fd, attrname, attrvalue, slen, xflags); return ok ? ret : -1; --- 68,72 ---- if (ok) ! ret = fsetxattr(fd, attrname, attrvalue, slen, 0, xflags); return ok ? ret : -1; |
From: Richard D. <ric...@us...> - 2007-11-04 09:00:12
|
Update of /cvsroot/file-extattr/File-ExtAttr/t In directory sc8-pr-cvs17:/tmp/cvs-serv4296/t Modified Files: 33nslong.t Log Message: Fix build and tests on Mac OS X 10.4 Index: 33nslong.t =================================================================== RCS file: /cvsroot/file-extattr/File-ExtAttr/t/33nslong.t,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** 33nslong.t 5 Jul 2007 08:36:35 -0000 1.4 --- 33nslong.t 4 Nov 2007 09:00:11 -0000 1.5 *************** *** 112,116 **** #read it back ! is (getfattr($fh, "$key"), $longval, { namespace => 'user' }); #delete it --- 112,116 ---- #read it back ! is (getfattr($fh, "$key", { namespace => 'user' }), $longval); #delete it |