Missing PNG files cause install phase of tdeedu-trinity to fail while building on FreeBSD 13.2 #225

Open
opened 12 months ago by Lannig · 9 comments
Collaborator

Basic information

  • TDE version: R14.1.0
  • Distribution: FreeBSD 13.2-RELEASE amd64
  • Hardware: amd64

Description

Fresh install of FreeBSD 13.2 on a old but 64-bit capable machine (HP/Compaq 8510p)
Tried to build/install Trinity 14.1 as per newly updated instructions at https://wiki.trinitydesktop.org/FreeBSD_Trinity_Installation_Instructions#Spread_ports_from_GIT_folder_to_.2Fusr.2Fports
It went smooth until the install phase of tdeedu-trinity that errors out because it misses the form_X.png and form_X_dark.png (X=0...3) files as well as formula.repository from the build tree.
Doxygen is installed on the machine, but and error suggests that the build process would require LaTeX installed? Is this the cause? I hope not, installing LaTeX is like building a nuclear plant. I haven't done this in 20 years...

Steps to reproduce

  1. Install FreeBSD 13.2-RELEASE amd64
  2. Follow https://wiki.trinitydesktop.org/FreeBSD_Trinity_Installation_Instructions#Spread_ports_from_GIT_folder_to_.2Fusr.2Fports including all prerequisites (ports update, pkg manager configuration, packages to install)
  3. Wait until the error comes up

Screenshots

===>  Staging for tdeedu-trinity-14.1.0
===>   tdeedu-trinity-14.1.0 depends on file: /usr/local/bin/python3.9 - found
...
[1/2] Build Kig scripting-api documentation
warning: Tag 'USE_WINDOWS_ENCODING' at line 63 of file 'Doxyfile.scripting-api' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
...
Using the default: a4!
Doxygen version used: 1.9.6
Searching for include files...
Searching for example files...
Searching for images...
Searching for dot files...
Searching for msc files...
Searching for dia files...
Searching for files to exclude
Searching INPUT for files to process...
Reading and parsing tag files
Parsing files
Preprocessing /usr/ports/misc/tdeedu-trinity/work/tdeedu-trinity_14.1.0/kig/misc/coordinate.h...
...
Parsing file /usr/ports/misc/tdeedu-trinity/work/tdeedu-trinity_14.1.0/kig/scripting/python-scripting-api-dox-mainpage.dox...
Building macro definition list...
Building group list...
Building directory list...
...
Computing class usage relations...
Flushing cached template relations that have become invsh: latex: not found
error: Problems running latex. Check your installation or look for typos in _formulas.tex and check _formulas.log!
sh: latex: not found
error: Problems running latex. Check your installation or look for typos in _formulas_dark.tex and check _formulas_dark.log!
/usr/ports/misc/tdeedu-trinity/work/tdeedu-trinity_14.1.0/kig/objects/line_imp.h:30: warning: End of list marker found without any preceding list items
...
Computing class relations...
Add enum values to enums...
...
Generating example index...
finalizing index lists...
writing tag file...
Running plantuml with JAVA...
Running dot...
type lookup cache used 808/65536 hits=3990 misses=852
symbol lookup cache used 727/65536 hits=4872 misses=727
finished...
[1/2] Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/applnk/Edutainment/Languages/.directory
...
-- Installing: /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kwordquiz/kwq-qanda.png
-- Installing: /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kwordquiz/index.cache.bz2
====> Compressing man pages (compress-man)
===>  Installing for tdeedu-trinity-14.1.0
===>  Checking if tdeedu-trinity is already installed
===>   Registering installation for tdeedu-trinity-14.1.0 as automatic
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_0.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_0_dark.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_1.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_1_dark.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_2.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_2_dark.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_3.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_3_dark.png:No such file or directory
pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/formula.repository:No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/misc/tdeedu-trinity
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/tde-meta
<!-- This is a comment. Please fill in the required fields below. The comments provide instructions on how to do so. Note: You do not need to remove comments. --> ## Basic information - TDE version: R14.1.0 - Distribution: FreeBSD 13.2-RELEASE amd64 - Hardware: amd64 <!-- Use SL/* labels to set the severity level. Please do not set a milestone. --> ## Description Fresh install of FreeBSD 13.2 on a old but 64-bit capable machine (HP/Compaq 8510p) Tried to build/install Trinity 14.1 as per newly updated instructions at https://wiki.trinitydesktop.org/FreeBSD_Trinity_Installation_Instructions#Spread_ports_from_GIT_folder_to_.2Fusr.2Fports It went smooth until the install phase of tdeedu-trinity that errors out because it misses the form_X.png and form_X_dark.png (X=0...3) files as well as formula.repository from the build tree. Doxygen is installed on the machine, but and error suggests that the build process would require LaTeX installed? Is this the cause? I hope not, installing LaTeX is like building a nuclear plant. I haven't done this in 20 years... ## Steps to reproduce 1. Install FreeBSD 13.2-RELEASE amd64 2. Follow https://wiki.trinitydesktop.org/FreeBSD_Trinity_Installation_Instructions#Spread_ports_from_GIT_folder_to_.2Fusr.2Fports including all prerequisites (ports update, pkg manager configuration, packages to install) 3. Wait until the error comes up ## Screenshots <!-- If it seems useful, please provide provide one or more screenshots. --> ``` ===> Staging for tdeedu-trinity-14.1.0 ===> tdeedu-trinity-14.1.0 depends on file: /usr/local/bin/python3.9 - found ... [1/2] Build Kig scripting-api documentation warning: Tag 'USE_WINDOWS_ENCODING' at line 63 of file 'Doxyfile.scripting-api' has become obsolete. To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u" ... Using the default: a4! Doxygen version used: 1.9.6 Searching for include files... Searching for example files... Searching for images... Searching for dot files... Searching for msc files... Searching for dia files... Searching for files to exclude Searching INPUT for files to process... Reading and parsing tag files Parsing files Preprocessing /usr/ports/misc/tdeedu-trinity/work/tdeedu-trinity_14.1.0/kig/misc/coordinate.h... ... Parsing file /usr/ports/misc/tdeedu-trinity/work/tdeedu-trinity_14.1.0/kig/scripting/python-scripting-api-dox-mainpage.dox... Building macro definition list... Building group list... Building directory list... ... Computing class usage relations... Flushing cached template relations that have become invsh: latex: not found error: Problems running latex. Check your installation or look for typos in _formulas.tex and check _formulas.log! sh: latex: not found error: Problems running latex. Check your installation or look for typos in _formulas_dark.tex and check _formulas_dark.log! /usr/ports/misc/tdeedu-trinity/work/tdeedu-trinity_14.1.0/kig/objects/line_imp.h:30: warning: End of list marker found without any preceding list items ... Computing class relations... Add enum values to enums... ... Generating example index... finalizing index lists... writing tag file... Running plantuml with JAVA... Running dot... type lookup cache used 808/65536 hits=3990 misses=852 symbol lookup cache used 727/65536 hits=4872 misses=727 finished... [1/2] Install the project... -- Install configuration: "RelWithDebInfo" -- Installing: /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/applnk/Edutainment/Languages/.directory ... -- Installing: /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kwordquiz/kwq-qanda.png -- Installing: /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kwordquiz/index.cache.bz2 ====> Compressing man pages (compress-man) ===> Installing for tdeedu-trinity-14.1.0 ===> Checking if tdeedu-trinity is already installed ===> Registering installation for tdeedu-trinity-14.1.0 as automatic pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_0.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_0_dark.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_1.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_1_dark.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_2.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_2_dark.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_3.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/form_3_dark.png:No such file or directory pkg-static: Unable to access file /usr/ports/misc/tdeedu-trinity/work/stage/opt/trinity/share/doc/tde/HTML/en/kig/scripting-api/formula.repository:No such file or directory *** Error code 1 Stop. make[1]: stopped in /usr/ports/misc/tdeedu-trinity *** Error code 1 Stop. make: stopped in /usr/ports/x11/tde-meta ```
Poster
Collaborator

I just re-read the replies to my former issue opened here which also reported similar issues with missing PNG files, and it was said:

I assume that here is the need for dot, which was omitted in dependencies (port graphics/graphviz).

I'll go check this in more detail. Installing this port first and try again. Guess I need to restart the make at some point though, not sure how.

I just re-read the replies to my former issue opened here which also reported similar issues with missing PNG files, and it was said: > I assume that here is the need for dot, which was omitted in dependencies (port graphics/graphviz). I'll go check this in more detail. Installing this port first and try again. Guess I need to restart the make at some point though, not sure how.
Poster
Collaborator

Oh well...

===>  Installing for graphviz-7.1.0_5
===>  Checking if graphviz is already installed
===>   graphviz-7.1.0_5 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of graphviz
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/graphviz
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/graphviz

So it seems that's not the reason for the missing PNG files.

Oh well... ``` ===> Installing for graphviz-7.1.0_5 ===> Checking if graphviz is already installed ===> graphviz-7.1.0_5 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of graphviz without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/graphviz *** Error code 1 Stop. make: stopped in /usr/ports/graphics/graphviz ``` So it seems that's not the reason for the missing PNG files.
Poster
Collaborator

I have copied the missing files over from an existing (Linux) Trinity installation to move on.
Strangely the "dark" files did not exist in that installation, so as a quick and dirty fix I have duplicated the "non dark" files.

I have copied the missing files over from an existing (Linux) Trinity installation to move on. Strangely the "dark" files did not exist in that installation, so as a quick and dirty fix I have duplicated the "non dark" files.
Poster
Collaborator

Apart from the two issues reported here #225 and #226, with the workarounds mentioned in my comments, I wish to report success building and running TDE 14.1 on FreeBSD 13.2.

Apart from the two issues reported here #225 and #226, with the workarounds mentioned in my comments, I wish to report success building and running TDE 14.1 on FreeBSD 13.2.
Owner

In the Build log in the commentary above, I see:

latex: not found
error: Problems running latex.

Can you try to install latex, or add latex as a dependency to the tdeedu port?

In the Build log in the commentary above, I see: ``` latex: not found error: Problems running latex. ``` Can you try to install latex, or add latex as a dependency to the tdeedu port?
Owner

Can you test if it will be sufficient to add the following?

USE_TEX=	latex:build
Can you test if it will be sufficient to add the following? ``` USE_TEX= latex:build ```
Poster
Collaborator

In the Build log in the commentary above, I see:

latex: not found
error: Problems running latex.

Can you try to install latex, or add latex as a dependency to the tdeedu port?

Thanks for your reply but sorry, no, I won't.
LaTeX is a HUGE thing to install and AFAIK it's not really packaged, so it's a long and tedious manual process. It's a disk hog too.
I used to work in a research lab where LaTeX was used, I have very painful memories of having to install it on Sun and DEC Unix workstations.
All of this for a couple of PNG files I can get elsewhere?

Can you test if it will be sufficient to add the following?

Does this come as an alternative to the other suggestion, or is it part of the same?
Do I have to put this on the make command line or elsewhere?

> In the Build log in the commentary above, I see: > ``` > latex: not found > error: Problems running latex. > ``` > Can you try to install latex, or add latex as a dependency to the tdeedu port? Thanks for your reply but sorry, no, I won't. LaTeX is a HUGE thing to install and AFAIK it's not really packaged, so it's a long and tedious manual process. It's a disk hog too. I used to work in a research lab where LaTeX was used, I have very painful memories of having to install it on Sun and DEC Unix workstations. All of this for a couple of PNG files I can get elsewhere? > Can you test if it will be sufficient to add the following? Does this come as an alternative to the other suggestion, or is it part of the same? Do I have to put this on the make command line or elsewhere?
Owner

I suppose to install latex there should work:

pkg install texlive-base

To set dependency in tdeedu I was not sure whether it is sufficient to use USE_TEX, as I mentioned above or add print/texlive-base to BUILD_DEPENDS.

I suppose to install latex there should work: ``` pkg install texlive-base ``` To set dependency in tdeedu I was not sure whether it is sufficient to use `USE_TEX`, as I mentioned above or add `print/texlive-base` to `BUILD_DEPENDS`.

This is still an issue.
textlive-base doesn't seem to be enough, I needed to install texlive-full.
After that it builds successfully. I didn't try to add anything to the Makefile itself.

Best advice would probably be to add texlive to the dependencies that should be installed beforehand (If installed via pkg it is not a hassle to install LaTeX although it obviously is a large software collection you get.)

This is still an issue. ```textlive-base``` doesn't seem to be enough, I needed to install ```texlive-full```. After that it builds successfully. I didn't try to add anything to the Makefile itself. Best advice would probably be to add texlive to the dependencies that should be installed beforehand (If installed via pkg it is not a hassle to install LaTeX although it obviously is a large software collection you get.)
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tde-packaging#225
Loading…
There is no content yet.