On Fri, 28 Sep 2012, Alexander Hansen wrote:

> On 9/28/12 9:17 AM, Viv Kendon wrote:
>> On Fri, 28 Sep 2012, Alexander Hansen wrote:
>>
>>> On 9/28/12 5:58 AM, Viv Kendon wrote:
>>>> On Thu, 27 Sep 2012, Alexander Hansen wrote:
>>>>
>>>>> On 9/27/12 8:16 AM, Viv Kendon wrote:
>>>>>>
>>>>>> 10.6.8 server; update-all complains
>>>>>>
>>>>>> Can't resolve dependency "liboctave362-gcc46-dev" for package
>>>>>> "openmpi-ext-oct362-1.1.0-1" (no matching packages/versions found)
>>>>>>
>>>>>> TIA
>>>>>> -- Viv
>>>>>
>>>>> Thanks.  A fix should be available shortly via "fink selfupdate"
>>>>>
>>>>> --
>>>>> Alexander Hansen, Ph.D.
>>>>> Fink User Liaison
>>>>> My package updates: http://finkakh.wordpress.com/
>>>>
>>>> I have a slightly stranger error now:
>>>>
>>>> /sw/bin/dpkg-lockwait -i
>>>> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/ope
>>>> nmpi-ext-oct362_1.1.0-1_darwin-x86_64.deb
>>>> Selecting previously deselected package openmpi-ext-oct362.
>>>> (Reading database ... 350602 files and directories currently installed.)
>>>> Preparing to replace openmpi-ext-oct362 1.0.2-104 (using
>>>> .../openmpi-ext-oct362_
>>>> 1.1.0-1_darwin-x86_64.deb) ...
>>>> XIO:  fatal IO error 54 (Connection reset by peer) on X server
>>>> "localhost:10.0"
>>>>       after 0 requests (0 known processed) with 0 events remaining.
>>>> X connection to localhost:10.0 broken (explicit kill or server
>>>> shutdown).
>>>> dpkg: warning - old pre-removal script returned error exit status 1
>>>> dpkg - trying script from the new package instead ...
>>>> /sw/var/lib/dpkg/tmp.ci/prerm: line 6:
>>>> /sw/share/octave/3.6.2/openmpi_ext-1.1.0/
>>>> octave-forge-prerm: No such file or directory
>>>> /sw/bin/dpkg: error processing
>>>> /sw/fink/dists/stable/main/binary-darwin-x86_64/s
>>>> ci/openmpi-ext-oct362_1.1.0-1_darwin-x86_64.deb (--install):
>>>>  subprocess new pre-removal script returned error exit status 1
>>>> X connection to localhost:10.0 broken (explicit kill or server
>>>> shutdown).
>>>> X connection to localhost:10.0 broken (explicit kill or server
>>>> shutdown).
>>>> dpkg: error while cleaning up:
>>>>  subprocess post-installation script returned error exit status 1
>>>> Errors were encountered while processing:
>>>>
>>>> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/openmpi-ext-oct362_1.1.0-1_
>>>>
>>>>
>>>> darwin-x86_64.deb
>>>> ### execution of /sw/bin/dpkg-lockwait failed, exit code 1
>>>>
>>>> Now, that X error _might_ be a red herring, I was running this over an
>>>> ssh session to the server (that wasn't broken, I was still logged
>>>> in...)  I've never seen something like this find its way into the saved
>>>> log from a fink update before.  But I don't think it is the actual
>>>> problem with the package??
>>>>
>>>> TIA,
>>>> -- VIv
>>>
>>> The X error does indeed appear to be a red herring.
>>>
>>> The missing octave-forge-prerm is the problem.  This is supposed to have
>>> been copied into the package as part of the build process.  Please run
>>>
>>> dpkg -c
>>> /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/openmpi-ext-oct362_1.1.0-1_darwin-x86_64.deb
>>>
>>> | grep forge
>>>
>>> If that, in fact, does not show octave-forge-prerm then something may be
>>> amiss in how the package is getting generated for you and I'll want to
>>> see a build log from "fink rebuild openmpi-ext-oct362.
>>>
>>> The octave-forge-prerm and octave-forge-postinst scripts for the
>>> individual Octave Forge packages are generated by copying the respective
>>> template files from the Octave versioned runtime package (e.g.
>>> octave362) and editing them.
>>
>> dpkg -c etc returns
>>
>> -rwxr-xr-x root/admin      287 2012-09-28 10:46
>> ./sw/share/octave/3.6.2/openmpi_ext-1.1.0/octave-forge-postinst
>> -rwxr-xr-x root/admin      271 2012-09-28 10:46
>> ./sw/share/octave/3.6.2/openmpi_ext-1.1.0/octave-forge-prerm
>>
>> The X error is connected to whatever the problem is somehow, it
>> repeatably shows up when running
>>
>> fink reinstall openmpi-ext-oct362
>>
>> whereupon it tried to unpack the deb as above.  I checked what is in
>> that location currently, and it is:
>>
>> /sw/share/octave/3.6.2/openmpi_ext-1.0.2/octave-forge-prerm
>>
>> which contains
>>
>> #!/sw/bin/octave-3.6.2 -q
>> load /sw/var/octave/3.6.2/octave_packages
>> for i = 1:length(global_packages)
>>   if strcmp(global_packages{i}.name,'openmpi_ext')
>>     global_packages(i) = [];
>>     break
>>   endif
>> endfor
>> save -text /sw/var/octave/3.6.2/octave_packages global_packages
>>
>> So is it trying to call the old prerm script with the new name?
>> openmpi-ext-1.1.0 vs openmpi-ext-1.0.2?
>>
>> TIA,
>> -- Viv
>
> What's happening is that it's trying the old script, which is failing
> for some reason, and then trying the new one.  I had thought that maybe
> the old one wasn't present, but apparently not.
>
> The X11 error suggests a possible thing to try.  Edit
> /sw/var/lib/dpkg/info/openmpi-ext-oct362.prerm as a superuser and change
>
> /sw/share/octave/3.6.2/openmpi_ext-1.1.0/octave-forge-prerm
>
> to
>
> xvfb-run /sw/share/octave/3.6.2/openmpi_ext-1.1.0/octave-forge-prerm
>
> and then try updating openmpi-ext-oct362 again.
>
> -- 
> Alexander Hansen, Ph.D.
> Fink User Liaison
> My package updates: http://finkakh.wordpress.com/

After I installed xvfb-run, that worked :-)

openmpi-ext-oct362 installed without X errors or any other 
problems with that change -- many thanks!  And yes, that 
machine is headless, though I do have X11Forwarding set to 
yes.  Clearly that's not enough...

thanks again,
-- Viv
________________________________________________
Dr Viv Kendon    http://quantum.leeds.ac.uk/~viv
tel: +44 113 343 4864      Physics and Astronomy
Quantum Information Group    University of Leeds


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to