Re: [Fink-beginners] fink update is failing

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.core,gmane.os.apple.fink.beginners
Organization Fink Core Team
Message-ID <[email protected]>
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
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.core
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.