Opened 6 years ago
Closed 6 years ago
#56688 closed enhancement (fixed)
gtk-doc @1.28_1 requires texlive?
Reported by: | rpspringuel (Fr. Samuel Springuel) | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | neverpanic (Clemens Lang) | |
Port: | gimp |
Description (last modified by rpspringuel (Fr. Samuel Springuel))
I went to upgrade from gimp 2.8.22 to 2.10.2 today and ran into some problems. Apparently gimp now requires texlive ports? (gimp -> gimp2 -> appstream-glib -> gtk-doc -> dblatex -> texlive-latex-extra, et al.) This is a new dependency (relatively speaking) and one I really don't want to deal with as I already have MacTeX installed. Is it possible for this dependency to be removed or avoided?
Attachments (1)
Change History (13)
comment:1 Changed 6 years ago by rpspringuel (Fr. Samuel Springuel)
Description: | modified (diff) |
---|
comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | neverpanic added |
---|
comment:3 Changed 6 years ago by mf2k (Frank Schima)
Type: | request → enhancement |
---|---|
Version: | 2.5.2 |
Note that a "request" ticket type is only for requesting a new port.
comment:4 Changed 6 years ago by mf2k (Frank Schima)
Owner: | changed from devans@… to dbevans |
---|
comment:5 Changed 6 years ago by neverpanic (Clemens Lang)
dblatex has a +mactex
variant contributed by a user in #55106 that allows using MacTeX with dblatex. Have you tried that?
comment:6 follow-up: 7 Changed 6 years ago by rpspringuel (Fr. Samuel Springuel)
I just tried port install gimp +mactex
and that does indeed pass the variant down so that dblatex sees it and the texlive dependencies are not listed amongst the dependencies to be installed. However, when the installation gets to dblatex, an error is thrown. I'm attaching the log.
Changed 6 years ago by rpspringuel (Fr. Samuel Springuel)
Log with dblatex error.
comment:7 Changed 6 years ago by neverpanic (Clemens Lang)
Replying to rpspringuel:
I just tried
port install gimp +mactex
and that does indeed pass the variant down so that dblatex sees it and the texlive dependencies are not listed amongst the dependencies to be installed. However, when the installation gets to dblatex, an error is thrown. I'm attaching the log.
It seems you didn't follow the note in the description of the +mactex variant of the dblatex port:
$> port variants dblatex mactex: Allow dblatex to use a MacTeX installation instead of Macports texlive tools. To install the mactex variant /Library/TeX/texbin must be added to binpath in macports.conf
You must edit your macports.conf
to include the MacTeX versions of the mentioned tools in MacPorts' $PATH
variable, for this variant to work.
comment:8 follow-up: 9 Changed 6 years ago by rpspringuel (Fr. Samuel Springuel)
You're right, I didn't see that note. Having made that modification, dblatex installed just fine. The note then showed up as part of the post-installation notes. It seems to me that a note which indicates an installation requirement should appear as a pre-installation note, not a post-installation one.
comment:9 Changed 6 years ago by neverpanic (Clemens Lang)
Replying to rpspringuel:
The note then showed up as part of the post-installation notes. It seems to me that a note which indicates an installation requirement should appear as a pre-installation note, not a post-installation one.
There is no direct support for pre-installation notes in MacPorts. I could modify the port to always print a message during installation. Do you think that's required in addition to the description of the variant?
comment:10 Changed 6 years ago by rpspringuel (Fr. Samuel Springuel)
I think it would be useful. As is one is only going to see the note before installation if one knows to look for it with port variants
. Having the message appear during installation (either always or only upon a failed installation) would have alerted me to the needed change without having to post to this issue. Once I knew the change was needed it was fairly elementary for me to figure out how to make the change and do it. The problem was simply knowing that it needed to be done.
Another option would be to add to the information generated by port info
. This could be the full message, or simply a note to check port variants
for extra information regarding the mactex variant.
comment:11 Changed 6 years ago by dbevans (David B. Evans)
Status: | assigned → accepted |
---|---|
Summary: | gimp @2.10.2 requires texlive? → gtk-doc @1.28_1 requires texlive? |
This really is not an issue with gimp but with gtk-doc which is a build dependency of gimp2 and probably a numer of its dependencies.
dblatex (which depends on several texlive ports) is used by gtk-doc to provide API documentation in PDF format as opposed to HTML format (default). PDF output is optional (and not used by many ports if any to my knowledge) and so the dblatex dependency can probably be removed but there is no switch in configure to absolutely disable PDF output -- it just enables PDF if dblatex (or alternatively fop) is available.
I have no problem disabling PDF output by default but this will require a patch to configure. I'll see if this works.
comment:12 Changed 6 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
gtk-doc was changed to require dblatex, which requires texlive. I don't know if the parts of texlive that dblatex requires are available in mactex. If they are, dblatex's dependency on texlive should be rewritten as a
bin:
-style dependency.