On 8/4/10 9:59 PM, David Lowe wrote: > I just experienced a buildlock problem that the wiki says fink should > be able to handle, and it didn't: > > $ fink -k build freeciv > Scanning package description files.......... > Information about 9464 packages read in 3 seconds. > The following package will be built: > freeciv > Setting runtime build-lock... > dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-freeciv-2.2.2-8 > /sw/src/fink.build > dpkg-deb: building package `fink-buildlock-freeciv-2.2.2-8' in > `/sw/src/fink.build/fink-buildlock-freeciv-2.2.2-8_2010.08.04-20.05.13_darwin-i386.deb'. > Installing build-lock package... > /sw/bin/dpkg-lockwait -i > /sw/src/fink.build/fink-buildlock-freeciv-2.2.2-8_2010.08.04-20.05.13_darwin-i386.deb > dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3240 package > `fink-buildlock-freeciv-2.2.2-8': > missing version > ### execution of /sw/bin/dpkg-lockwait failed, exit code 2 > Can't set build lock for freeciv (2.2.2-8) > > It might be worth noting that the methods listed in > http://wiki.finkproject.org/index.php/Fink:buildlocks were not able to deal > with this. 'fink cleanup' did not help, and removing the package manually > was unsuccessful: > > $ fink remove freeciv > Information about 9464 packages read in 1 seconds. > Reading buildlock packages... > All buildlocks accounted for. > /sw/bin/dpkg-lockwait --remove freeciv > dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3240 package > `fink-buildlock-freeciv-2.2.2-8': > > fink seemed unwilling to give me any more information: >
There are two levels of "installed". It's possible for Fink not to consider a package to be installed, but for dpkg still to have a record. > $ fink list -t fink-buildlock-freeciv-2.2.2-8 > Information about 9464 packages read in 1 seconds. > $ > > Curiously, line 3240 of /sw/var/lib/dpkg/status was empty, though i did > find the offending section above it. Changing that status from 'purge ok > installed' to 'purge ok not-installed' did fix the problem, but i wonder if > the wiki couldn't be updated as to how fink handles these types of problems > now. > Huh? The wiki mentions having a bad status file specifically as one of the cases. The last bullet says "Installing the buildlock package when dpkg is confused". Nothing has changed in the buildlock code since the last update to the wiki. A corrupt status file blocks dpkg, period. It's in the wiki, and it's in the FAQ. The line number calculation is hardcoded in dpkg. Blame Debian. > OSX 10.6.4 > fink 0.29.13 > > Never ask a hungry cat if it loves you for yourself. -- Alexander Hansen Fink User Liaison ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel