Heinz Nabielek wrote:
> Hi:
>
> I have everything of the latest in Mac OS X and fink unstable on an  
> Intel Duo iMac.
>
> However, the latest "fink selfupdate" fails with (more details below)
>
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i /sw/src/fink.build/fink-buildlock- 
> fink-0.28.7-41_2009.03.03-21.01.56_darwin-i386.deb
> dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3361  
> package `automake1.9':  missing version
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 2   Can't set  
> build lock for fink (0.28.7-41)
> .....
> dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3361  
> package `automake1.9':   missing version
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 2
>
> As recommended  in the wiki "Remove the lock manually. fink list -t  
> fink-buildlock will list them, then you can use fink remove package- 
> name to remove them",
>
> XXX$ fink list -t fink-buildlock  --> Information about 7919 packages  
> read in 1 seconds.
>
> But it gives _no- result. Also fink build fink terminates with the  
> same error message (as expected).
>
> What shall I / what can I do next?
>
> Heinz
>
> ________________
> The following package will be installed or updated:
>   fink
> Setting runtime build-lock...
> dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-fink-0.28.7-41 /sw/ 
> src/fink.build
> dpkg-deb: building package `fink-buildlock-fink-0.28.7-41' in `/sw/src/ 
> fink.build/fink-buildlock-fink-0.28.7-41_2009.03.03-21.01.56_darwin- 
> i386.deb'.
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i /sw/src/fink.build/fink-buildlock- 
> fink-0.28.7-41_2009.03.03-21.01.56_darwin-i386.deb
> dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3361  
> package `automake1.9':
>   missing version
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 2
> Can't set build lock for fink (0.28.7-41)
>
> If any of the above dpkg error messages mention conflicting packages  
> or missing dependencies -- for example, telling you that the package  
> fink-buildlock-fink-0.28.7-41 conflicts with something else -- fink has
> probably gotten confused by trying  to build many packages at once.  
> Try building just this current package fink (i.e, "fink build fink").  
> When that has completed successfully,  you could retry whatever you  
> did that
> led to the present error.
>
> Regardless of the cause of the lock failure, don't worry: you have not  
> wasted compiling time! Packages that had been completely built before  
> this error occurred will not have to be recompiled.
>
> See http://wiki.finkproject.org/index.php/Fink:buildlocks for more  
> information.
> /sw/bin/dpkg-lockwait -r fink-buildlock-fink-0.28.7-41 >/dev/null
> dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3361  
> package `automake1.9':
>   missing version
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 2
> Failed: buildlock failure
> XXX:~ heinz$ 
>
> -
>   

At the bottom of the wiki page it gives you another thing to do, which
applies exactly in the situation that you have described:

    * Installing the buildlock package when |dpkg| is confused.

    Symptom: An error message like the following: 

dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 537
package `antlr-2.7.4-2':  missing version

    This error occurs if a build ends ungracefully, e.g. if the machine
    loses power in the middle of it. In such an event the buildlock
    package isn't toggled to "not-installed" in |dpkg|'s status file,
    whereas |fink| doesn't think it exists. |dpkg| expects that any
    package that shows up as "installed" needs to have a version plus
    other information. 
    To fix this you'll need to edit |/sw/var/lib/dpkg/status| as root,
    go to the line number that is complaining, and change /install ok
    installed/ to /purge ok not-installed/. 



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to