opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fink-beginners@lists.sourceforge.net 13 August 2012 • 12:41PM -0400

Re: [Fink-beginners] [fink-core] fink update is failing
by Dave Vasilevsky

REPLY TO AUTHOR
 
REPLY TO GROUP




This sounds like the finkinfo database might be somehow corrupted. Try
running 'fink index --full' to force a complete reindex. If that
doesn't work, you can also try deleting the following files and
folders from /sw/var/lib/fink to force a reindex: 'finkinfodb',
'index.db', 'proxies.db'.

-Dave

On Mon, Aug 13, 2012 at 12:28 AM, Alexander Hansen
<alexanderk.hansen@gmai...> wrote:
> On 8/12/12 12:32 PM, Noah wrote:
>>
>>>
>>> Hmm...let's try something else that touches the same area of the code, then.
>>>
>>> Edit /sw/etc/fink.conf as a superuser and add the line
>>>
>>> NoAutoIndex: true
>>>
>>> to it.  Then save and see what happens if you run e.g. 'fink selfupdate'.
>>>
>>
>>
>> MacBookPro-002332D9A480-2 12:31:45 ~/bin $ fink selfupdate
>> rsync -az -q
>> rsync://distfiles.master.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.4/'
>> --include='10.4/stable/' --include='10.4/stable/main/'
>> --include='10.4/stable/main/finkinfo/'
>> --include='10.4/stable/main/finkinfo/*/'
>> --include='10.4/stable/main/finkinfo/*'
>> --include='10.4/stable/main/finkinfo/**/*' --include='10.4/'
>> --include='10.4/stable/' --include='10.4/stable/crypto/'
>> --include='10.4/stable/crypto/finkinfo/'
>> --include='10.4/stable/crypto/finkinfo/*/'
>> --include='10.4/stable/crypto/finkinfo/*'
>> --include='10.4/stable/crypto/finkinfo/**/*' --include='VERSION'
>> --include='DISTRIBUTION' --include='README' --exclude='**'
>> 'rsync://distfiles.master.finkmirrors.net/finkinfo' '/sw/fink/'
>> The NoAutoIndex feature should only be used in special situations. You
>> can can
>> disable it by running 'fink configure'
>> Scanning package description files
>> Failed: not a reference at /sw/lib/perl5/Fink/Services.pm line 1836
>> MacBookPro-002332D9A480-2 12:32:06 ~/bin $ cat /sw/etc/fink.conf
>> # Fink configuration, initially created by bootstrap
>> Basepath: /sw
>> RootMethod: sudo
>> Trees: local/main stable/main stable/crypto local/injected
>> Distribution: 10.6
>> SelfUpdateTrees: 10.4
>> ConfFileCompatVersion: 2
>> Mirror-apache: http://www.apache.org/dist
>> Mirror-apt: http://bindist.finkmirrors.net/bindist
>> Mirror-cpan: ftp://ftp.cpan.org/pub/CPAN
>> Mirror-ctan: ftp://tug.ctan.org/tex-archive
>> Mirror-debian: ftp://ftp.debian.org/debian
>> Mirror-freebsd: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles
>> Mirror-gimp: ftp://ftp.gimp.org/pub/gimp
>> Mirror-gnome: ftp://ftp.gnome.org/pub/GNOME
>> Mirror-gnu: ftp://ftp.gnu.org/gnu
>> Mirror-kde: ftp://ftp.kde.org/pub/kde
>> Mirror-master: http://distfiles.master.finkmirrors.net/
>> Mirror-rsync: rsync://distfiles.master.finkmirrors.net/finkinfo/
>> Mirror-sourceforge: http://superb-west.dl.sourceforge.net/sourceforge/
>> MirrorContinent: nam
>> MirrorCountry: nam-us
>> MirrorOrder: MasterFirst
>> ProxyPassiveFTP: true
>> UseBinaryDist: false
>> Verbose: 1
>> SelfUpdateMethod: rsync
>> UpdateFrom: 10.5
>> NoAutoIndex: true
>> MaxBuildJobs: 4
>> MacBookPro-002332D9A480-2 12:32:10 ~/bin $
>>
>>
>>
> Well, shoot.
>
> I'll cc fink-core on this.  As best as I can tell from that somewhat
> minimal error message, the comes in from (fink-0.32.6):
>
> sub store_rename {
>         my ($ref, $file) = @_;
>         my ($dummy, $tmp) = tempfile("$file.XXXXX");
>
>         return 0 unless eval { require Storable };
>         if (Storable::store($ref, $tmp)) { # <--line 1836 in fink-0.32.6
>                 chmod 0644, $tmp; # Should be world-readable
>                 unless (rename $tmp, $file) {
>                         print_breaking_stderr("Error: could not activate temporary file $tmp:
> $!");
>                         return 0;
>                 }
>                 return 1;
>         } else {
>                 print_breaking_stderr("Error: could not write temporary file $tmp: $!");
>                 return 0;
>         }
> }
>
> And store_rename() appears to be called only in Package.pm according to
> a grep:
>
> perlmod/Fink/Package.pm:                        unless (store_rename(\%store, $fidx->{cache})) {
> perlmod/Fink/Package.pm:                        store_rename($idx, $class->db_index);
> perlmod/Fink/Package.pm:                        store_rename($packages, $class->db_proxies);
>
> I'm not sure yet which of these instances might somehow return a
> non-reference.
> --
> Alexander Hansen, Ph.D.
> Fink User Liaison
> My package updates: http://finkakh.wordpress.com/
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> fink-core mailing list
> fink-core@list...
> List archive:
> http://news.gmane.org/gmane.os.apple.fink.core
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-core

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-beginners mailing list
Fink-beginners@list...
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.