Re: [Fink-devel] Text encoding for .info files?

2005-02-25 Thread Daniel Johnson
On Feb 25, 2005, at 10:15 AM, Daniel Macks wrote:
On Fri, Feb 25, 2005 at 08:33:04AM -0500, Daniel Johnson wrote:
Is there a policy about what encoding to use for .info files?
They are supposed to be "plain text files" in the traditional Unix
sense. As such, I don't think there's is any issue about encoding.
The validator emits a warning if a .info file contains characters not
part of the POSIX :ascii: class.
The fink tool (or specifically perl 5.8.x) and online package
database seem to expect Unicode while FinkCommander assumes
MacRoman. There are two files, gtktalog.info and recode.info that
use MacRoman in the Maintainer field.
Yup, 'fink validate' on those files gives:
  Warning: "maintainer" contains non-standard characters. 
(gtktalog.info)
  Warning: "maintainer" contains non-standard characters. (recode.info)
Heh. I didn't think to try 'fink validate'. Duh.
Thus they show correctly in FinkCommander but not
anywhere else. If I change those files to UTF-8, "fink info" gives the
correct result. Of course, then FinkCommander is wrong. :) I came
across this issue because I'm working on a Cocoa program that reads
package info from fink, and since Cocoa assumes text is in Unicode, 
Bad
Things were happening with those two files. As in crashing. I had to
explicitly convert the text from MacRoman first, like FinkCommander
does.
...and that kind of "how do I encode this portably?" weirdness is one
of the reasons we want everything in plain-text ASCII. So the proper
solution is to not use non-ASCII chars:) I just patched those two
.info files in 10.3/unstable.
dan
Plain ASCII works for me. But unless I missed it (which isn't outside 
the realm of possibility), it's not documented anywhere and probably 
should be.

Thanks.
--
Daniel Johnson
[EMAIL PROTECTED]
PGP public key: http://homepage.mac.com/danielj7/publickey.txt


PGP.sig
Description: This is a digitally signed message part


Re: [Fink-devel] Re: [Fink-beginners] undefined value as filehandle reference at /sw/lib/perl5/Fink/Package.pm line 36

2005-02-25 Thread Daniel Macks
On Fri, Feb 25, 2005 at 03:12:11PM -0500, Dave Vasilevsky wrote:
> 
> On Feb 25, 2005, at 10:24 AM, Daniel Macks wrote:
> > open APTDUMP, "$basepath/bin/apt-cache dump |"
> 
> Perl usually discourages this form, since if someone could convince 
> $basepath to bstart with ">" it might do bad things.

I did it that way to be consistent with all our open/read-pipe usage.

> Why not stick with this?
> 
> open APTDUMP, "-|", "$basepath/bin/apt-cache dump";
> 
> Still not super (since ugly basepaths with spaces can still fail), but 
> a bit better and it works with both perls.

True. We already know that spaces in $basepath are a hopeless case, so
no loss. Maybe what we really need is to implement them all as a new
Services::read_pipe_cmd(($cmd) that either returns a filehandle ready
to read or prints a warning and returns an undef. That way we could
use Symbol::gensym or maybe IO::* objects with intelligent scoping and
do away from all those FILEHANDLE symbols.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread Daniel Macks
On Fri, Feb 25, 2005 at 03:00:54PM -0500, David R. Morrison wrote:
> Daniel Macks <[EMAIL PROTECTED]> wrote:
> 
> > Update of /cvsroot/fink/fink/perlmod/Fink
> > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29536
> > 
> > Modified Files:
> > Package.pm ChangeLog 
> > Log Message:
> > perl-5.6 compatibiility fix for open() syntax.
> 
> I'm thinking of back-porting this to branch_0_24 and then releasing 0.24.1
> which would be for 10.2-gcc3.3 folks only.  Good idea?  Bad idea?

Good idea. Even though I don't understand *why* it works, should we
implement Martin's work-around for the dumpinfo bug also?

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread Robert Wyatt
open APTDUMP, "$basepath/bin/apt-cache dump |"
or die "Can't run apt-cache dump: $!";
this works, sorry, must have had a typo.
Robert T Wyatt wrote:
I think it needs tweaking:
bash-2.05b$ fink selfupdate
syntax error at /sw/lib/perl5/Fink/Package.pm line 361, near "or"
Compilation failed in require at /sw/lib/perl5/Fink/Engine.pm line 34.
BEGIN failed--compilation aborted at /sw/lib/perl5/Fink/Engine.pm line 34.
Compilation failed in require at /sw/bin/fink line 167.
bash-2.05b$
This is with Package.pm lines 360, 361:
open APTDUMP, "-|", "$basepath/bin/apt-cache dump";
or die "Can't run apt-cache dump: $!";

At 1:20 PM -0700 2/25/05, TheSin wrote:
I think good.
---
TS
http://southofheaven.org
Chaos is the beginning and end, try dealing with the rest.
On 25-Feb-05, at 1:00 PM, David R. Morrison wrote:
Daniel Macks <[EMAIL PROTECTED]> wrote:
Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29536
Modified Files:
Package.pm ChangeLog
Log Message:
perl-5.6 compatibiility fix for open() syntax.
I'm thinking of back-porting this to branch_0_24 and then releasing 
0.24.1
which would be for 10.2-gcc3.3 folks only.  Good idea?  Bad idea?

  -- Dave

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.

http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread TheSin
can't have that first ;
---
TS
http://southofheaven.org
Chaos is the beginning and end, try dealing with the rest.
On 25-Feb-05, at 1:39 PM, Robert T Wyatt wrote:
I think it needs tweaking:
bash-2.05b$ fink selfupdate
syntax error at /sw/lib/perl5/Fink/Package.pm line 361, near "or"
Compilation failed in require at /sw/lib/perl5/Fink/Engine.pm line 34.
BEGIN failed--compilation aborted at /sw/lib/perl5/Fink/Engine.pm line 
34.
Compilation failed in require at /sw/bin/fink line 167.
bash-2.05b$

This is with Package.pm lines 360, 361:
open APTDUMP, "-|", "$basepath/bin/apt-cache dump";
or die "Can't run apt-cache dump: $!";

At 1:20 PM -0700 2/25/05, TheSin wrote:
I think good.
---
TS
http://southofheaven.org
Chaos is the beginning and end, try dealing with the rest.
On 25-Feb-05, at 1:00 PM, David R. Morrison wrote:
Daniel Macks <[EMAIL PROTECTED]> wrote:
Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29536
Modified Files:
Package.pm ChangeLog
Log Message:
perl-5.6 compatibiility fix for open() syntax.
I'm thinking of back-porting this to branch_0_24 and then releasing 
0.24.1
which would be for 10.2-gcc3.3 folks only.  Good idea?  Bad idea?

  -- Dave


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread Robert T Wyatt
I think it needs tweaking:
bash-2.05b$ fink selfupdate
syntax error at /sw/lib/perl5/Fink/Package.pm line 361, near "or"
Compilation failed in require at /sw/lib/perl5/Fink/Engine.pm line 34.
BEGIN failed--compilation aborted at /sw/lib/perl5/Fink/Engine.pm line 34.
Compilation failed in require at /sw/bin/fink line 167.
bash-2.05b$
This is with Package.pm lines 360, 361:
open APTDUMP, "-|", "$basepath/bin/apt-cache dump";
or die "Can't run apt-cache dump: $!";

At 1:20 PM -0700 2/25/05, TheSin wrote:
I think good.
---
TS
http://southofheaven.org
Chaos is the beginning and end, try dealing with the rest.
On 25-Feb-05, at 1:00 PM, David R. Morrison wrote:
Daniel Macks <[EMAIL PROTECTED]> wrote:
Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29536
Modified Files:
Package.pm ChangeLog
Log Message:
perl-5.6 compatibiility fix for open() syntax.
I'm thinking of back-porting this to branch_0_24 and then releasing 0.24.1
which would be for 10.2-gcc3.3 folks only.  Good idea?  Bad idea?
  -- Dave

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread Benjamin Reed
TheSin wrote:
> I think good.

yeah, but wait for me to check in some changes to make virtual failures
a bit more verbose.


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread TheSin
I think good.
---
TS
http://southofheaven.org
Chaos is the beginning and end, try dealing with the rest.
On 25-Feb-05, at 1:00 PM, David R. Morrison wrote:
Daniel Macks <[EMAIL PROTECTED]> wrote:
Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29536
Modified Files:
Package.pm ChangeLog
Log Message:
perl-5.6 compatibiility fix for open() syntax.
I'm thinking of back-porting this to branch_0_24 and then releasing 
0.24.1
which would be for 10.2-gcc3.3 folks only.  Good idea?  Bad idea?

  -- Dave

Index: Package.pm
===
RCS file: /cvsroot/fink/fink/perlmod/Fink/Package.pm,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- Package.pm  24 Feb 2005 18:19:25 -  1.93
+++ Package.pm  25 Feb 2005 18:34:47 -  1.94
@@ -357,7 +357,7 @@
my $class = shift; # class method
my $statusfile = "$basepath/var/lib/dpkg/status";

-   open APTDUMP, '-|', "$basepath/bin/apt-cache", "dump"
+   open APTDUMP, "$basepath/bin/apt-cache dump |"
or die "Can't run apt-cache dump: $!";

# Note: We assume here that the package DB exists already
Index: ChangeLog
===
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.881
retrieving revision 1.882
diff -u -d -r1.881 -r1.882
--- ChangeLog   25 Feb 2005 01:52:03 -  1.881
+++ ChangeLog   25 Feb 2005 18:34:47 -  1.882
@@ -1,3 +1,7 @@
+2004-02-24  Daniel Macks  <[EMAIL PROTECTED]>
+
+   * Package.pm: More-compatible syntax for open().
+
 2004-02-24  Dave Morrison  <[EMAIL PROTECTED]>
* PkgVersion.pm: When a compile fails, point the user at the FAQ

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real 
users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real 
users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: [Fink-beginners] undefined value as filehandle reference at /sw/lib/perl5/Fink/Package.pm line 36

2005-02-25 Thread Dave Vasilevsky
On Feb 25, 2005, at 10:24 AM, Daniel Macks wrote:
 open APTDUMP, "$basepath/bin/apt-cache dump |"
Perl usually discourages this form, since if someone could convince 
$basepath to bstart with ">" it might do bad things.

Why not stick with this?
open APTDUMP, "-|", "$basepath/bin/apt-cache dump";
Still not super (since ugly basepaths with spaces can still fail), but 
a bit better and it works with both perls.

Dave


PGP.sig
Description: This is a digitally signed message part


[Fink-devel] Re: fink/perlmod/Fink Package.pm,1.93,1.94 ChangeLog,1.881,1.882

2005-02-25 Thread David R. Morrison
Daniel Macks <[EMAIL PROTECTED]> wrote:

> Update of /cvsroot/fink/fink/perlmod/Fink
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29536
> 
> Modified Files:
>   Package.pm ChangeLog 
> Log Message:
> perl-5.6 compatibiility fix for open() syntax.
> 

I'm thinking of back-porting this to branch_0_24 and then releasing 0.24.1
which would be for 10.2-gcc3.3 folks only.  Good idea?  Bad idea?

  -- Dave



> 
> Index: Package.pm
> ===
> RCS file: /cvsroot/fink/fink/perlmod/Fink/Package.pm,v
> retrieving revision 1.93
> retrieving revision 1.94
> diff -u -d -r1.93 -r1.94
> --- Package.pm24 Feb 2005 18:19:25 -  1.93
> +++ Package.pm25 Feb 2005 18:34:47 -  1.94
> @@ -357,7 +357,7 @@
>   my $class = shift; # class method
>   my $statusfile = "$basepath/var/lib/dpkg/status";
>   
> - open APTDUMP, '-|', "$basepath/bin/apt-cache", "dump"
> + open APTDUMP, "$basepath/bin/apt-cache dump |"
>   or die "Can't run apt-cache dump: $!";
>   
>   # Note: We assume here that the package DB exists already
> 
> Index: ChangeLog
> ===
> RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
> retrieving revision 1.881
> retrieving revision 1.882
> diff -u -d -r1.881 -r1.882
> --- ChangeLog 25 Feb 2005 01:52:03 -  1.881
> +++ ChangeLog 25 Feb 2005 18:34:47 -  1.882
> @@ -1,3 +1,7 @@
> +2004-02-24  Daniel Macks  <[EMAIL PROTECTED]>
> +
> + * Package.pm: More-compatible syntax for open().
> +
>  2004-02-24  Dave Morrison  <[EMAIL PROTECTED]>
>  
>   * PkgVersion.pm: When a compile fails, point the user at the FAQ
> 
> 
> 
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> ___
> Fink-commits mailing list
> Fink-commits@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fink-commits
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Virtual package handling regression

2005-02-25 Thread Martin Costabel
Daniel Macks wrote:
[]
Failed: Can't resolve dependency "gcc3.1" for package "prcs-1.3.2-1" (no 
matching packages/versions found)
and the build process stopped right there before it even started.
 
...and then the user is completely stuck, as we well know from reading
the lists.
But this message can be looked up in the FAQ. On the lists, we hear only 
from those users who are unable to use the FAQ without help. These won't 
even be able to *see* your new message.

Wha? It says what's wrong in both technical and lay language:
 
Package gcc3.1 is an autogenerated virtual package.
You cannot manipulate this type of package using the usual Fink tools.
It is not the user who is manipulating the package, it is fink who tries 
to install gcc3.1 as part of some other installation procedure.

[]
Read the detailed description of this package to learn how to use it.
(and the first complaint appeared already on the users list):

If a user isn't going to read the msg and do what it says, is he
likely to figure out what to do when confronted with the old error?
The new behavior helps users help themselves. Some will be helped.
Others will just throw up their hands "I have an error!" in all cases
regardless of how explicit we make the error message.
I bet that 9 out of 10 users that get this message don't even see that 
it is there. If you want to leave the behavior as it is now, then 
*please* put some visible frame around the message so that it can be 
seen. As it is, these are 3 lines in the middle of at least 18 lines of 
text that are incomprehensible for normal users and don't contain useful 
information.

In addition, the FAQ entry #6.17 will have to be adapted.
--
Martin



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Re: [Fink-beginners] undefined value as filehandle reference at /sw/lib/perl5/Fink/Package.pm line 36

2005-02-25 Thread Robert Wyatt
Daniel Macks wrote:
Sure 'nuf! Does:
 open APTDUMP, "$basepath/bin/apt-cache dump |"
function correctly? That's the canonical form we use elsewhere.
Yes, it does work.

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Text encoding for .info files?

2005-02-25 Thread Daniel Macks
On Fri, Feb 25, 2005 at 08:33:04AM -0500, Daniel Johnson wrote:
> Is there a policy about what encoding to use for .info files?

They are supposed to be "plain text files" in the traditional Unix
sense. As such, I don't think there's is any issue about encoding.
The validator emits a warning if a .info file contains characters not
part of the POSIX :ascii: class.

> The fink tool (or specifically perl 5.8.x) and online package
> database seem to expect Unicode while FinkCommander assumes
> MacRoman. There are two files, gtktalog.info and recode.info that
> use MacRoman in the Maintainer field.

Yup, 'fink validate' on those files gives:

  Warning: "maintainer" contains non-standard characters. (gtktalog.info)
  Warning: "maintainer" contains non-standard characters. (recode.info)

> Thus they show correctly in FinkCommander but not 
> anywhere else. If I change those files to UTF-8, "fink info" gives the 
> correct result. Of course, then FinkCommander is wrong. :) I came 
> across this issue because I'm working on a Cocoa program that reads 
> package info from fink, and since Cocoa assumes text is in Unicode, Bad 
> Things were happening with those two files. As in crashing. I had to 
> explicitly convert the text from MacRoman first, like FinkCommander 
> does.

...and that kind of "how do I encode this portably?" weirdness is one
of the reasons we want everything in plain-text ASCII. So the proper
solution is to not use non-ASCII chars:) I just patched those two
.info files in 10.3/unstable.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Virtual package handling regression

2005-02-25 Thread Daniel Macks
On Fri, Feb 25, 2005 at 11:38:53AM +0100, Martin Costabel wrote:
> In fink-0.23.5-1, when the gcc3.1.pkg was not installed and a package 
> was to be built that had a BuildDepends: gcc3.1, one got the short and 
> unclear, but clearly visible error message
> 
> >Failed: Can't resolve dependency "gcc3.1" for package "prcs-1.3.2-1" (no 
> >matching packages/versions found)
> 
> and the build process stopped right there before it even started.

...and then the user is completely stuck, as we well know from reading
the lists.

> Now in fink-0.24.0, one gets a different behavior: fink pretends to
> try to install gcc3.1 which fails, of course, and there is a more
> verbose error message which, however, gets drowned in a pile of
> garbage admin messages.  The behavior is unreasonable and the
> message is no longer user-understandable

Wha? It says what's wrong in both technical and lay language:

> >Package gcc3.1 is an autogenerated virtual package.
> >You cannot manipulate this type of package using the usual Fink tools.

and where to go to learn how to solve the problem:

> >Read the detailed description of this package to learn how to use it.
> (and the first complaint appeared already on the users list):

If a user isn't going to read the msg and do what it says, is he
likely to figure out what to do when confronted with the old error?
The new behavior helps users help themselves. Some will be helped.
Others will just throw up their hands "I have an error!" in all cases
regardless of how explicit we make the error message.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Text encoding for .info files?

2005-02-25 Thread Peter O'Gorman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Daniel Johnson wrote:
|
| I couldn't find anything in the Packaging Manual about this. Perhaps a
| good policy would be to require all .info files to use UTF-8 and
| document this?
|
As far as I am aware, any package not using plain old ascii is in violation
of one of the unwritten rules.
No chars with codes > 127 should appear in .info files, at least not until
after we drop support for Mac OS X 10.2, which has a perl that has little or
no support for utf-8.
Peter
- --
Peter O'Gorman - http://www.pogma.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (Darwin)
iQCVAwUBQh8zpLiDAg3OZTLPAQLoxQQAsxC2k9YB5WCT4BAdZzZEu3cbldcvewKx
9+tr0cg7Dggi4MLekNqPMRzgsbfn7ejmRtw3ppd8kDcEK91UVOlDT9kaxrYwkDLg
Ocrnf/NF5hB6iPnWM2UHVYrEreaKUBZubheR2Iosr8FR6czLBIy4ZrRU6HTbgfV6
Ibdg64MH/XE=
=U/OD
-END PGP SIGNATURE-
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Re: [Fink-beginners] undefined value as filehandle reference at /sw/lib/perl5/Fink/Package.pm line 36

2005-02-25 Thread Daniel Macks
On Fri, Feb 25, 2005 at 10:21:46AM +0100, Martin Costabel wrote:
> Robert Wyatt wrote:
> >Howdy,
> >
> >I updated my 10.2-gcc3.3 to 0.24.0 today and something didn't work out 
> >quite right. How do I proceed with this one?
> []
> >Failed: Can't use an undefined value as filehandle reference at 
> >/sw/lib/perl5/Fink/Package.pm line 360.
> 
> Do you have UseBinaryDist: true in your /sw/etc/fink.conf? If yes, set 
> it to false while this bug is being fixed.
> 
> Or, if you feel more adventurous, you can also try to fix it yourself 
> (no guarantee!):
> 
> Edit the line in question, for example by running
> 
>   sudo vi +360 /sw/lib/perl5/Fink/Package.pm
> 
> and change it from
> 
> open APTDUMP, '-|', "$basepath/bin/apt-cache", "dump"
> to
> open APTDUMP, '-|', "$basepath/bin/apt-cache dump"
> 
> I am CCing this to fink-devel so that it gets fixed soon.
> (Explanation: perl-5.6.x doesn't seem to understand the open command 
> with more than 3 arguments.)

Sure 'nuf! Does:

 open APTDUMP, "$basepath/bin/apt-cache dump |"

function correctly? That's the canonical form we use elsewhere.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Text encoding for .info files?

2005-02-25 Thread Martin Costabel
Daniel Johnson wrote:
I couldn't find anything in the Packaging Manual about this. Perhaps a 
good policy would be to require all .info files to use UTF-8 and 
document this?
I would vote for 7-bit ASCII, if possible. Everything else gives 
trouble. Just look at the package database and try to find the packages 
maintained by the maintainers of gtktalog or recode: 0 packages found. I 
doubt that recoding their names in unicode would help there, but I am 
sure they can live without the accents on their names in the info files.

One of the main advantages of the Fink info format is that it can be 
handled by a wide variety of tools from different backgrounds and with 
different purposes.

--
Martin


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Virtual package handling regression

2005-02-25 Thread Martin Costabel
In fink-0.23.5-1, when the gcc3.1.pkg was not installed and a package 
was to be built that had a BuildDepends: gcc3.1, one got the short and 
unclear, but clearly visible error message

Failed: Can't resolve dependency "gcc3.1" for package "prcs-1.3.2-1" (no matching packages/versions found)
and the build process stopped right there before it even started.
Now in fink-0.24.0, one gets a different behavior: fink pretends to try 
to install gcc3.1 which fails, of course, and there is a more verbose 
error message which, however, gets drowned in a pile of garbage admin 
messages. The behavior is unreasonable and the message is no longer 
user-understandable (and the first complaint appeared already on the 
users list):

dpkg-deb -b /sw/src/root-fink-buildlock-gcc3.1-3.1-0 /sw/src
dpkg-deb: building package `fink-buildlock-gcc3.1-3.1-0' in 
`/sw/src/fink-buildlock-gcc3.1-3.1-0_2005.02.25-11.19.18_darwin-powerpc.deb'.
Setting build lock...
dpkg -i 
/sw/src/fink-buildlock-gcc3.1-3.1-0_2005.02.25-11.19.18_darwin-powerpc.deb
Selecting previously deselected package fink-buildlock-gcc3.1-3.1-0.
(Reading database ... 178295 files and directories currently installed.)
Unpacking fink-buildlock-gcc3.1-3.1-0 (from 
.../fink-buildlock-gcc3.1-3.1-0_2005.02.25-11.19.18_darwin-powerpc.deb) ...
Setting up fink-buildlock-gcc3.1-3.1-0 (2005.02.25-11.19.18) ...
/var/tmp/tmp.1.a8G3jN
Package gcc3.1 is an autogenerated virtual package.
You cannot manipulate this type of package using the usual Fink tools.
Read the detailed description of this package to learn how to use it.
### execution of /var/tmp/tmp.1.a8G3jN failed, exit code 1
Removing build lock...
dpkg -r fink-buildlock-gcc3.1-3.1-0
(Reading database ... 178295 files and directories currently installed.)
Removing fink-buildlock-gcc3.1-3.1-0 ...
Failed: phase compiling: gcc3.1-3.1-0 failed
--
Martin

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Re: [Fink-beginners] undefined value as filehandle reference at /sw/lib/perl5/Fink/Package.pm line 36

2005-02-25 Thread Robert T Wyatt
Martin,
Yes, I have UseBinaryDist: true in fink.conf.
I changed the line in question per your instructions below, and 
everything is copacetic.

Thanks! --robert
At 10:21 AM +0100 2/25/05, Martin Costabel wrote:
Robert Wyatt wrote:
Do you have UseBinaryDist: true in your /sw/etc/fink.conf? If yes, 
set it to false while this bug is being fixed.

Or, if you feel more adventurous, you can also try to fix it 
yourself (no guarantee!):

Edit the line in question, for example by running
  sudo vi +360 /sw/lib/perl5/Fink/Package.pm
and change it from
open APTDUMP, '-|', "$basepath/bin/apt-cache", "dump"
to
open APTDUMP, '-|', "$basepath/bin/apt-cache dump"
I am CCing this to fink-devel so that it gets fixed soon.
(Explanation: perl-5.6.x doesn't seem to understand the open command 
with more than 3 arguments.)

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Invitation to the mediation manual

2005-02-25 Thread Robert Schuster
Dear Fink developers,

I wrote some guidelines that should help FOSS projects getting more lively and 
lowering the barrier for new developers to join. You can find them in form of a 
small manual here 
http://projects.mi.fu-berlin.de/w/bin/view/SE/ThesisFOSSIMMediationManual.

These ideas are the result of work for my bachelor thesis and have been used 
successfully at the GNU Classpath project. If the topic is of interest to you, 
I would be happy to receive criticism and comments concerning the manual or the 
general idea.

For further discussion I have set up a mailing-list (use 
http://lists.spline.inf.fu-berlin.de/mailman/listinfo/mediation_manual to 
subscribe or [EMAIL PROTECTED] to post unsubscribed). Please send your feedback 
to this list but if you have reasons to contact me directly then just reply to 
this mail. In case you answer to your project's mailing list please CC me.

Best regards
Robert Schuster



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Text encoding for .info files?

2005-02-25 Thread Daniel Johnson
Is there a policy about what encoding to use for .info files? The fink 
tool (or specifically perl 5.8.x) and online package database seem to 
expect Unicode while FinkCommander assumes MacRoman. There are two 
files, gtktalog.info and recode.info, that use MacRoman in the 
Maintainer field. Thus they show correctly in FinkCommander but not 
anywhere else. If I change those files to UTF-8, "fink info" gives the 
correct result. Of course, then FinkCommander is wrong. :) I came 
across this issue because I'm working on a Cocoa program that reads 
package info from fink, and since Cocoa assumes text is in Unicode, Bad 
Things were happening with those two files. As in crashing. I had to 
explicitly convert the text from MacRoman first, like FinkCommander 
does.

I couldn't find anything in the Packaging Manual about this. Perhaps a 
good policy would be to require all .info files to use UTF-8 and 
document this?

--
Daniel Johnson
[EMAIL PROTECTED]
PGP public key: http://homepage.mac.com/danielj7/publickey.txt


PGP.sig
Description: This is a digitally signed message part


[Fink-devel] Re: [Fink-beginners] undefined value as filehandle reference at /sw/lib/perl5/Fink/Package.pm line 36

2005-02-25 Thread Martin Costabel
Robert Wyatt wrote:
Howdy,
I updated my 10.2-gcc3.3 to 0.24.0 today and something didn't work out 
quite right. How do I proceed with this one?
[]
Failed: Can't use an undefined value as filehandle reference at 
/sw/lib/perl5/Fink/Package.pm line 360.
Do you have UseBinaryDist: true in your /sw/etc/fink.conf? If yes, set 
it to false while this bug is being fixed.

Or, if you feel more adventurous, you can also try to fix it yourself 
(no guarantee!):

Edit the line in question, for example by running
  sudo vi +360 /sw/lib/perl5/Fink/Package.pm
and change it from
open APTDUMP, '-|', "$basepath/bin/apt-cache", "dump"
to
open APTDUMP, '-|', "$basepath/bin/apt-cache dump"
I am CCing this to fink-devel so that it gets fixed soon.
(Explanation: perl-5.6.x doesn't seem to understand the open command 
with more than 3 arguments.)

Thanks,
Robert
bash-2.05b$ date; nice fink -b selfupdate; nice fink list -i; gcc 
--version | head -n 1; fink -V | head -n 2; sw_vers; uname -m; date
Thu Feb 24 21:34:59 CST 2005
rsync -az -q  rsync://msn.wi.us.finkmirrors.net/finkinfo//TIMESTAMP 
/sw/fink/TIMESTAMP.tmp
I will now run the rsync command to retrieve the latest package 
descriptions.
rsync -rtz --delete-after --delete -q   --include='10.2-gcc3.3/' 
--include='10.2-gcc3.3/stable/' --include='10.2-gcc3.3/stable/main/' 
--include='10.2-gcc3.3/stable/main/finkinfo/' 
--include='10.2-gcc3.3/stable/main/finkinfo/*/' 
--include='10.2-gcc3.3/stable/main/finkinfo/*' 
--include='10.2-gcc3.3/stable/main/finkinfo/**/*' 
--include='10.2-gcc3.3/' --include='10.2-gcc3.3/stable/' 
--include='10.2-gcc3.3/stable/crypto/' 
--include='10.2-gcc3.3/stable/crypto/finkinfo/' 
--include='10.2-gcc3.3/stable/crypto/finkinfo/*/' 
--include='10.2-gcc3.3/stable/crypto/finkinfo/*' 
--include='10.2-gcc3.3/stable/crypto/finkinfo/**/*' 
--include='10.2-gcc3.3/' --include='10.2-gcc3.3/unstable/' 
--include='10.2-gcc3.3/unstable/crypto/' 
--include='10.2-gcc3.3/unstable/crypto/finkinfo/' 
--include='10.2-gcc3.3/unstable/crypto/finkinfo/*/' 
--include='10.2-gcc3.3/unstable/crypto/finkinfo/*' 
--include='10.2-gcc3.3/unstable/crypto/finkinfo/**/*' 
--include='10.2-gcc3.3/' --include='10.2-gcc3.3/unstable/' 
--include='10.2-gcc3.3/unstable/main/' 
--include='10.2-gcc3.3/unstable/main/finkinfo/' 
--include='10.2-gcc3.3/unstable/main/finkinfo/*/' 
--include='10.2-gcc3.3/unstable/main/finkinfo/*' 
--include='10.2-gcc3.3/unstable/main/finkinfo/**/*' --include='VERSION' 
--include='DISTRIBUTION' --include='README' --exclude='**' 
'rsync://msn.wi.us.finkmirrors.net/finkinfo' '/sw/fink/'
/usr/bin/find '/sw/fink/10.2-gcc3.3/stable/main' -name CVS -type d 
-print0 | xargs -0 /bin/rm -rf
/usr/bin/find '/sw/fink/10.2-gcc3.3/stable/crypto' -name CVS -type d 
-print0 | xargs -0 /bin/rm -rf
/usr/bin/find '/sw/fink/10.2-gcc3.3/unstable/crypto' -name CVS -type d 
-print0 | xargs -0 /bin/rm -rf
/usr/bin/find '/sw/fink/10.2-gcc3.3/unstable/main' -name CVS -type d 
-print0 | xargs -0 /bin/rm -rf
Downloading the indexes of available packages in the binary distribution.
/sw/bin/apt-get -qq update
Reading package info...
Failed: Can't use an undefined value as filehandle reference at 
/sw/lib/perl5/Fink/Package.pm line 360.
Fink has detected that your package index cache is missing or out of 
date, but does not have privileges to modify it. Re-run fink as root, 
for example with a "fink index" command,
to update the cache.
Reading package info...
Failed: Can't use an undefined value as filehandle reference at 
/sw/lib/perl5/Fink/Package.pm line 360.
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1493)
Package manager version: 0.24.0
Distribution version: 0.6.3.rsync
ProductName:Mac OS X
ProductVersion: 10.2.8
BuildVersion:   6R73
Power Macintosh
Thu Feb 24 21:35:55 CST 2005
bash-2.05b$ fink index
Reading package info...
Failed: Can't use an undefined value as filehandle reference at 
/sw/lib/perl5/Fink/Package.pm line 360.
bash-2.05b$
--
Martin

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel