Hi Paul & Toby,
Ok, I have found the problem. It turns out, the machine I was running
on had an older Ruby installed (1.8.0). So the receipt was
ruby-1.8.0.bz2 and since the "bin:" stuff doesn't find the ruby binary,
it tried to find the receipt for the current ruby (1.8.1) and didn't
find it so it thought it needed to install it. I don't think this used
to happen, but at least I found why it is happening.
I'm hoping that the new port image stuff fixes this, as it should have
gone ahead and accepted the older Ruby install since the port
dependency checking didn't specify such a version dependency.
Are there any discussions for the future code to handle stuff like
Debian does with "version >= 1.8" type dependency checking? I can't
remember.
-Robert
On Feb 29, 2004, at 6:49 AM, Robert Shaw wrote:
Hi Paul,
Thanks for looking into this. I am using HEAD, but for some reason
it's not finding my package receipt any longer (it used to work just
fine). I really don't understand why this is not working now. From
what you said it sounds like the HEAD code was not changed, but it
apparently has in some form, someplace because it is broken for me
now.
I'll go ahead and update my ports to use "path: ..." instead since
that is apparently the new "correct" way. It bothers me why this was
changed and the list was not warned of this. We should probably locate
all the ports that have this problem and post something to the list or
Bugzilla to make port maintainers aware and have them fix their ports.
Maybe I should switch over to the port images branch instead. Do we
have a plan when that will go mainstream? I remember a lot of
discussion about that happening soon, but that was a couple weeks ago
now.
-Robert
On Feb 28, 2004, at 11:21 PM, Paul Guyot wrote:
À (At) 7:46 +0100 29/02/04, Paul Guyot écrivait (wrote) :
OK. I could reproduce some problem on my box, but it was only there
because I merged PortImages+HEAD. I'm going to see if this problem
lays in PortImages branch or is just a side effect of the merge.
It's not in HEAD.
It is a side-effect of the merge.
I cannot reproduce the problem you're having with HEAD. If ruby is
installed, port install rb-sqlite won't install ruby.
Instead, it says:
DEBUG: Found Dependency: receipt:
/opt/local/var/db/dports/receipts/ruby-1.8.1.bz2
As far as the merge of HEAD with PortImages is concerned, you may
want to do the following:
----
--- darwinports.tcl.orig Sun Feb 29 08:19:08 2004
+++ darwinports.tcl Sun Feb 29 08:19:29 2004
@@ -458,8 +458,8 @@
# Check for the presense of the port in the registry
set workername [ditem_key $dport workername]
set res [$workername eval registry_exists \${portname}
\${portversion}]
- if {$res != ""} {
- ui_debug "Found Dependency: receipt: $res"
+ if {$res != 0} {
+ ui_debug "Found Dependency: receipt: ${portname}
${portversion}"
return 1
} else {
return 0
@@ -478,7 +478,7 @@
set workername [ditem_key $dport workername]
set res [$workername eval registry_exists \${portname}
\${portversion}]
if {$res != 0} {
- ui_debug "Found Dependency: receipt: $res"
+ ui_debug "Found Dependency: receipt: ${portname}
${portversion}"
return 1
} else {
# The receipt test failed, use one of the depspec
regex mechanisms
----
Paul
--
Philosophie de baignoire - consultations sur rendez-vous.
NPDS/NewtonOS: http://newton.kallisys.net:8080/
Apache/FreeBSD: http://www.kallisys.com/
_______________________________________________
Darwinports mailing list
Darwinports@xxxxxxxxxxxxxx
http://www.opendarwin.org/mailman/listinfo/darwinports
|