[MacPorts] #53202: kde4-kile wants to install macports texlive even though MacTex texlive is installed
MacPorts
noreply at macports.org
Mon Jan 23 13:47:48 UTC 2017
#53202: kde4-kile wants to install macports texlive even though MacTex texlive is
installed
---------------------------------+-------------------------
Reporter: fusionfan | Owner: NicosPavlov
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: kde4-kile, texlive |
---------------------------------+-------------------------
Comment (by NicosPavlov):
Hi, I take your comments not in the order you wrote them to answer to
them, as my answer can be made more logical in that way.
Replying to [comment:9 fusionfan]:
> Thank you for looking into the issue.
> I have explicitly added /Library/TeX/texbin to the macports binpath,
which now reads as
> {{{
> binpath
/Library/TeX/texbin:/usr/texbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
> }}}
>
> and just to be sure
>
> {{{
> bash-4.4# which latex
> /Library/TeX/texbin/latex
> }}}
Good. It is not directly related to the issue, but I would recommend to
add your paths after Macports ones (i.e.
/opt/local/bin:....:/Library/TeX/texbin). Adding paths is said to
potentially lead to unintended behaviour, and the order you are using also
potentially obfuscates Macports binaries. What matters in your case is to
find tex binaries even if they are not in /opt/local/bin.
> As for Kile working with MacTex: my installation predates my switch to
MacTex. Therefore I have not installed the +mactex variant. I have
probably changed the paths to binaries in the Kile configuration myself by
hand, but it was a long time ago and I don't remember exactly. By looking
at the portfile I have decided that the +mactex variant only changes these
path settings, and since I have already done that, I deemed it unnecessary
to reinstall that variant. [snip]
You are absolutely right. So if you did it yourself, there is no need to
use the variant. Also, your changes should be at user level, and should
not be overwritten by an upgrade, although I am not 100% sure about that.
> after doing this change to macports.conf, and rerunning
>
> {{{
> port list rdepof:kde4-kile
> }}}
>
> it now reports texlive as a dependency (it didn't before). Odd!
[snip]
>
> Which makes it even more odd. It seems to me that whatever is collecting
the dependencies for the ''port deps'' command is not the same as whatever
is collecting dependencies for the upgrade. Any way to tell what the
latter is? I would like to debug the issue but I just cannot figure out
why macports still thinks that this is a dependency.
>
I am not sure about the use of rdepof, but please not that kde4-kile
should list a dependency to texlive anyway. The point is that it is
declared as a binary dependency, so that if Macports finds the binaries,
it will not install the required ports.
> I have attached the output of port -dy upgrade kdelibs4. Can somebody
tell me why would an update of kdelibs4 want to install latex packages?
It appears that you do not have libnunistring installed, which itself
declared texlive as a port dependency. I changed it to a binary dependency
(see comment above) which should avoid the forced installation of texlive.
--
Ticket URL: <https://trac.macports.org/ticket/53202#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list