Re: Install failure for xinitrc

David Neuhaus <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>

On 08/05/2021, 02:48, "Hanspeter Niederstrasser" <[email protected]> wrote:

    On 5/6/21 8:54 PM, David Neuhaus wrote:
    > On 07/05/2021, 02:36, "Hanspeter Niederstrasser" <[email protected]> wrote:
    > 
    >      On 5/6/21 7:24 PM, David Neuhaus wrote:
    >      > Hello.
    >      >
    >      >     I am attempting to install latex2rtf on my MacBook Pro (mid-2014, 2.8GHz 15" intel Core i7), which is running OSX 10.14.6, Xcode 11.3.1, XQuartz 2.8.1, fink 0.45.3 and fink commander 0.5.5.  However, latex2rtf and all its remaining dependencies share a dependency on xinitrc, which in turn reports it cannot install because the directory /opt/X11/lib/X11/xinit is missing.  I could create the missing directory, but it seemed to me possible that this issue could be symptomatic of some deeper problem that I would potentially complicate by manually intervening in this way.  I have copied the terminal output below.
    >      >
    >      >     This is all in the context of a fresh install of fink started a few days ago, there having been no fink install on this machine previously.  Many other packages have installed successfully.  I should add that my fink install is under the /sw directory and the option to use binary downloads is disabled.  I see from the release notes for fink 0.45.3 that it is supposed to be possible to use binary downloads with fink installed under /sw for installs on OSX 10.14 and below.  However, in contradiction to this, the bootstrap program output contained a line saying that the option to use binary downloads was incompatible with a fink install under /sw, and that it had consequently been disabled.  I have not attempted to reverse this.
    >      >
    >      >     Should I simply create the missing directory (in which case with what permissions and ownerships)?  Any help would be gratefully received!
    >      >
    >      > David Neuhaus
    >      >
    >      >
    >      >
    >      >
    >      >
    >      >
    >      > fink needs help picking an alternative to satisfy a virtual dependency. The
    >      > candidates:
    >      >
    >      > (1)           texlive-base: Base programs for a TeX Live installation
    >      > (2)           texlive-nox-base: Base programs for a TeX Live installation
    >      >
    >      > Pick one: [1]
    >      > The following package will be installed or updated:
    >      > latex2rtf
    >      > The following 8 additional packages will be installed:
    >      > appleotffonts applesystemfonts gd2 texlive-base xfontpath xinitrc
    >      > zziplib13-dev zziplib13-shlibs
    >      > Default answer will be chosen in 60 seconds...
    >      > Do you want to continue? [Y/n]
    >      > Reading buildlock packages...
    >      > /sw/bin/dpkg-lockwait -i /sw/fink/dists/stable/main/binary-darwin-x86_64/graphics/gd2_2.0.35-15_darwin-x86_64.deb
    >      > Selecting previously deselected package gd2.
    >      > dpkg: considering removing gd3 in favour of gd2 ...
    >      > dpkg: yes, will remove gd3 in favour of gd2.
    >      > (Reading database ... 272016 files and directories currently installed.)
    >      > Unpacking gd2 (from .../gd2_2.0.35-15_darwin-x86_64.deb) ...
    >      > Setting up gd2 (2.0.35-15) ...
    >      > Clearing dependency_libs of .la files being installed
    >      >
    >      > Reading buildlock packages...
    >      > /sw/bin/dpkg-lockwait -i /sw/fink/dists/stable/main/binary-darwin-x86_64/x11/xinitrc_1.5-103_darwin-x86_64.deb
    >      > (Reading database ... 272016 files and directories currently installed.)
    >      > Preparing to replace xinitrc 1.5-103 (using .../xinitrc_1.5-103_darwin-x86_64.deb) ...
    >      > Unpacking replacement xinitrc ...
    >      > Setting up xinitrc (1.5-103) ...
    >      > The directory /opt/X11/lib/X11/xinit is missing.
    >      > update-sys-xinitrc can not continue without this file.
    >      > /sw/bin/dpkg: error processing xinitrc (--install):
    >      > subprocess post-installation script returned error exit status 1
    >      > Errors were encountered while processing:
    >      > xinitrc
    > 
    >      Did you previously have Xquartz installed on this machine (at most
    >      likely the previous 2.7 release)? Or is the Xquartz-2.8.1 install also a
    >      fresh install like the Fink install?
    > 
    >      Hanspeter
    > 
    >      --
    >      There three ways to get things done: Do it yourself,
    >      hire someone else to do it, or forbid your kids to do it
    > 
    > Hello Hanspeter,
    > 
    >     I think XQuartz was probably a fresh install, but I inherited the machine through my lab's IT department and I don't know its detailed history.  I am fairly sure there was no XQuartz present when I first got the machine.
    > 
    > David Neuhaus
    > 
    > Correction:  The IT department did a clean install of OSX 10.14 before I took over the machine, so I believe I can be sure there was no previous XQuartz install.  Apologies for the double post.
    > 
    > David Neuhaus.

    Confirming that Xquartz 2.8 doesn't install /opt/X11/lib/X11/xinit.
    Unfortunately, I don't know anything about how our xinitrc should work 
    or how old and current versions of X11 use xinit and xinitrc/xinitrc.d.

    Someone on IRC mentioned that /opt/X11/etc/X11/xinit might be the new 
    /opt/X11/lib/X11/xinit. If that's the case, it should be a simple fix to 
    change the pkg xinitrc to use the etc location over the lib location.

    Hanspeter




Hello Hanspeter,

   Many thanks for this.  I have to report that latex2rtf, as well as its dependency texlive-nox-base, has now successfully compiled and so far appears to be working.  However, unfortunately, I simply do not understand what has changed to allow this to happen (I should just add here that I am an end user - a structural biologist - not a programmer).  I had tried >10 times to get latex2rtf to compile before posting on the mailing list, and up until now the failure of xinitrc to compile had always blocked it.

   I note that for the successful compilation of latex2rtf (which I tried after the round of updates from you that resolved the parallel problem with pymol-py27 discussed in my post on fink-level), the number of dependencies listed was much reduced, and no longer included xinitrc.  Also, I see that xinitrc now appears as "archived" in the list of installed packages, whereas earlier (when compiling latex2rtf failed) there was no version of xinitrc either installed or archived.  I believe this is may be because I tried a separate install of xinitrc alone to see if this fixed any problems; I did not save the terminal output from this, but my memory is that it failed with exactly the same error as I reported previously concerning the missing folder /opt/X11/lib/X11/xinit, but perhaps this somehow still resulted in the archived version subsequently being present?  Other than that, my only thought is that one of the other updates in the most recent round somehow fixed the issue.  I'm sorry not to be able to give any better information.

   I've copied below the first and last parts of the terminal session that resulted in successful compilation of latex2rtf and texlive-nox-base. 

Best wishes,
David Neuhaus.



First part of terminal session:


fink needs help picking an alternative to satisfy a virtual dependency. The
candidates:

(1)	texlive-nox-base: Base programs for a TeX Live installation
(2)	texlive-base: Base programs for a TeX Live installation

Pick one: [1] 
The following package will be installed or updated:
 latex2rtf
The following 3 additional packages will be installed:
 texlive-nox-base zziplib13-dev zziplib13-shlibs
Default answer will be chosen in 60 seconds...
Do you want to continue? [Y/n] 
Setting runtime build-lock...
dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-zziplib-0.13.62-2 /sw/src/fink.build
dpkg-deb: building package `fink-buildlock-zziplib-0.13.62-2' in `/sw/src/fink.build/fink-buildlock-zziplib-0.13.62-2_2021.05.08-12.17.27_darwin-x86_64.deb'.
Installing build-lock package...
/sw/bin/dpkg-lockwait -i /sw/src/fink.build/fink-buildlock-zziplib-0.13.62-2_2021.05.08-12.17.27_darwin-x86_64.deb
Selecting previously deselected package fink-buildlock-zziplib-0.13.62-2.
(Reading database ... 273884 files and directories currently installed.)
Unpacking fink-buildlock-zziplib-0.13.62-2 (from .../fink-buildlock-zziplib-0.13.62-2_2021.05.08-12.17.27_darwin-x86_64.deb) ...
Setting up fink-buildlock-zziplib-0.13.62-2 (2021.05.08-12.17.27) ...

sudo -u fink-bld [ENV] sh -c /tmp/fink.43DHJ
env LANG=C LC_ALL=C /sw/bin/tar  --no-same-owner --no-same-permissions -xf /sw/src/zziplib-0.13.62.tar.bz2
sudo -u fink-bld [ENV] sh -c /tmp/fink.tGs6u
perl -pi -e 's/--export-dynamic/-export-dynamic/' configure
perl -pi -e 's/LD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH/g' test/Makefile.in
perl -pi.bak -e 's|10\.\[012\]\*|10.[012][,.]*|g' configure
sudo -u fink-bld [ENV] sh -c /tmp/fink.Otdyl
./configure --prefix=/sw --disable-static --disable-dependency-tracking
checking build system type... i386-apple-darwin18.7.0
checking host system type... i386-apple-darwin18.7.0
checking target system type... i386-apple-darwin18.7.0
continue configure in default builddir "./Darwin_18.7.0_x86_64.d"
....exec /bin/sh ".././configure" "--srcdir=.." "--enable-builddir=Darwin_18.7.0_x86_64.d"  '--prefix=/sw' '--disable-static' '--disable-dependency-tracking' 'LDFLAGS=-L/sw/lib' 'CPPFLAGS=-I/sw/include'
checking build system type... i386-apple-darwin18.7.0
checking host system type... i386-apple-darwin18.7.0
checking target system type... i386-apple-darwin18.7.0
checking for gsed... /sw/bin/gsed
checking default prefix system... is /local-package
...using thread-safe linkage
checking zlib install prefix... none
checking rpm spec file... ../zziplib.spec
checking for spec package... zziplib 
checking for spec version... 0.13.62 
checking for spec license type... LGPLv2.1+ 
checking for spec summary... ZZipLib - libZ-based ZIP-access Library with an Easy-to-Use API 
checking for spec category... System/Libraries 
checking for spec icon... zziplib-icon.png (fallback)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../uses/install-sh -c -d
checking for gawk... no





Last part of terminal session:


******************************************************************
mkdir -p /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/info
cp -p doc/latex2rtf.info /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/info
#install-info --info-dir=/sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/info doc/latex2rtf.info
sudo -u fink-bld [ENV] sh -c /tmp/fink.9kaF9
/usr/bin/install -d -m 700 /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf
/bin/cp -r ChangeLog /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf/
/bin/cp -r Copyright /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf/
/bin/cp -r HACKING /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf/
/bin/cp -r README /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf/
/bin/cp -r ToDo /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf/
/bin/cp -r doc/copying.txt /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf/
/bin/chmod -R go=u-w /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/doc/latex2rtf
/bin/rm -f /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/info/dir /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/info/dir.old /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/info/dir /sw/src/fink.build/root-latex2rtf-2.3.18-1/sw/share/info/dir.old
Reverting ownership of install dir to root
Writing control file...
Writing package script postinst...
Writing package script prerm...
Writing md5sums file...
env LANG=C LC_ALL=C dpkg-deb -b root-latex2rtf-2.3.18-1 /sw/fink/10.14.5/stable/main/binary-darwin-x86_64/text
dpkg-deb: building package `latex2rtf' in `/sw/fink/10.14.5/stable/main/binary-darwin-x86_64/text/latex2rtf_2.3.18-1_darwin-x86_64.deb'.
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-latex2rtf-2.3.18-1
(Reading database ... 274509 files and directories currently installed.)
Removing fink-buildlock-latex2rtf-2.3.18-1 ...
Reading buildlock packages...
/sw/bin/dpkg-lockwait -i /sw/fink/dists/stable/main/binary-darwin-x86_64/text/latex2rtf_2.3.18-1_darwin-x86_64.deb
Selecting previously deselected package latex2rtf.
(Reading database ... 274508 files and directories currently installed.)
Unpacking latex2rtf (from .../latex2rtf_2.3.18-1_darwin-x86_64.deb) ...
Setting up latex2rtf (2.3.18-1) ...
* Latex2rtf: (latex2rtf). LaTeX2RTF, a converter that translates LaTeX to RTF.
install-info(/sw/share/info/latex2rtf.info): creating new section `Document Preparation'

Updating the list of locally available binary packages.
Scanning dists/stable/main/binary-darwin-x86_64
New package: dists/stable/main/binary-darwin-x86_64/libs/zziplib_0.13.62-2_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/libs/zziplib13-dev_0.13.62-2_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/libs/zziplib13-shlibs_0.13.62-2_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/text/texlive-nox-base_0.20140523-6_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/text/latex2rtf_2.3.18-1_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/text/texlive-nox_0.20140523-6_darwin-x86_64.deb




_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
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.