Package Details: diagon-git 0-2

Git Clone URL: https://aur.archlinux.org/diagon-git.git (read-only, click to copy)
Package Base: diagon-git
Description: cli text diagram generator
Upstream URL: https://github.com/ArthurSonzogni/diagon
Keywords: cli diagrams
Licenses: custom:MIT
Submitter: HalosGhost
Maintainer: HalosGhost
Last Packager: HalosGhost
Votes: 0
Popularity: 0.000000
First Submitted: 2021-12-21 16:32 (UTC)
Last Updated: 2021-12-23 21:08 (UTC)

Latest Comments

netzego commented on 2023-06-08 07:13 (UTC) (edited on 2023-06-08 07:15 (UTC) by netzego)

antlr4 is missing as a make dependecy. See here: https://github.com/ArthurSonzogni/Diagon/issues/67

diff --git a/PKGBUILD b/PKGBUILD
index 9eb126c..1860ce0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ url='https://github.com/ArthurSonzogni/diagon'
 arch=('i686' 'x86_64')
 license=('custom:MIT')
 depends=('util-linux-libs')
-makedepends=('git' 'cmake' 'boost')
+makedepends=('git' 'cmake' 'boost' 'antlr4')

 source=("git+${url}.git")
 sha256sums=('SKIP')

blurgy commented on 2021-12-30 04:49 (UTC)

Hi there, on a machine with freshly installed Arch, I receive the following error during compilation:

[ 90%] Built target translator_grammar
[ 90%] Building CXX object src/translator/graph_dag/CMakeFiles/translator_graph_dag.dir/GraphDAG.cpp.o
[ 90%] Building CXX object src/translator/graph_dag/CMakeFiles/translator_graph_dag.dir/dag_to_graph.cpp.o
[ 92%] Linking CXX static library libtranslator_graph_dag.a
[ 92%] Built target translator_graph_dag
[ 92%] Generating GraphPlanarLexer.cpp, GraphPlanarParser.cpp, GraphPlanarLexer.h, GraphPlanarParser.h
/bin/sh: line 1: java: command not found
make[2]: *** [src/translator/graph_planar/CMakeFiles/translator_graph_planar.dir/build.make:74: src/translator/graph_planar/GraphPlanarLexer.cpp] Error 127
make[1]: *** [CMakeFiles/Makefile2:1413: src/translator/graph_planar/CMakeFiles/translator_graph_planar.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'diagon-git-0-2':

Perhaps there is some missing dependency? In my case, I installed jdk-openjdk and the issue was gone. I'm not familiar with the Java ecosystem so I'm not sure if any other package could also make this work.

HalosGhost commented on 2021-12-23 21:09 (UTC)

Update to PKGBUILD removed the explicit parallelism flag.

All the best,

blurgy commented on 2021-12-23 03:09 (UTC)

There is a -j4 passed to make in the PKGBUILD, you might want to remove it to allow MAKEFLAGS in /etc/makepkg.conf to function properly.