Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Anyone have a working package for DIA (Read 526 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Anyone have a working package for DIA

I tried installing both packages for Dia dai and dia-git and both failed to compile.  Dia seems to run into prblems with python2

Code: [Select]
pydia-color.c:112:5: note: (near initialization for 'PyDiaColor_Type.tp_vectorca                  ll_offset')                                                                                       
pydia-color.c:114:5: warning: initialization of 'int (*)(PyObject *, char *, PyO                  bject *)' {aka 'int (*)(struct _object *, char *, struct _object *)'} from incom                  patible pointer type 'PyObject * (*)(PyObject *, char *)' {aka 'struct _object *                   (*)(struct _object *, char *)'} [-Wincompatible-pointer-types]                                  
  114 |     (getattrfunc)PyDiaColor_GetAttr,                                                     
      |     ^                                                                                    
pydia-color.c:114:5: note: (near initialization for 'PyDiaColor_Type.tp_setattr'                  )                                                                                  
pydia-color.c:115:5: warning: initialization of 'PyAsyncMethods *' from incompat                  ible pointer type 'int (*)(PyObject *, char *, PyObject *)' {aka 'int (*)(struct                   _object *, char *, struct _object *)'} [-Wincompatible-pointer-types]                           
  115 |     (setattrfunc)0,                                                                      
      |     ^                                                                                    
pydia-color.c:115:5: note: (near initialization for 'PyDiaColor_Type.tp_as_asyn'                  )                                                                                  
pydia-color.c:116:6: error: 'cmpfunc' undeclared here (not in a function)                        
  116 |     (cmpfunc)PyDiaColor_Compare,                                                         
      |      ^~~~~~~                                                                             
pydia-color.c:116:14: error: expected '}' before 'PyDiaColor_Compare'                            
  116 |     (cmpfunc)PyDiaColor_Compare,
      |              ^~~~~~~~~~~~~~~~~~
pydia-color.c:106:32: note: to match this '{'
  106 | PyTypeObject PyDiaColor_Type = {
      |                                ^
pydia-color.c:106:32: warning: missing braces around initializer [-Wmissing-braces]
pydia-color.c:91:1: warning: 'PyDiaColor_Str' defined but not used [-Wunused-function]
   91 | PyDiaColor_Str(PyDiaColor *self)
      | ^~~~~~~~~~~~~~
pydia-color.c:63:1: warning: 'PyDiaColor_Hash' defined but not used [-Wunused-function]
   63 | PyDiaColor_Hash(PyObject *self)
      | ^~~~~~~~~~~~~~~
pydia-color.c:53:1: warning: 'PyDiaColor_Compare' defined but not used [-Wunused-function]
   53 | PyDiaColor_Compare(PyDiaColor *self,
      | ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [Makefile:613: pydia-color.lo] Error 1
make[3]: Leaving directory '/home/ruben/.cache/yay/dia/src/dia-0.97.3/plug-ins/python'
make[2]: *** [Makefile:432: all-recursive] Error 1
make[2]: Leaving directory '/home/ruben/.cache/yay/dia/src/dia-0.97.3/plug-ins'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/home/ruben/.cache/yay/dia/src/dia-0.97.3'
make: *** [Makefile:468: all] Error 2
==> ERROR: A failure occurred in build()
    Aborting...
 -> error making: dia-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
dia - exit status 4

dia-git doesn't like the existing dependencies and can't find tex packages that satisfy it

Code: [Select]
warning: removing 'texlive-core' from target list because it conflicts with 'texlive-basic'

Packages (23) cppdap-1.58.0-1  dvisvgm-3.1-2  ffcall-2.4-2  libsigsegv-2.14-2  ninja-1.11.1-3
              potrace-1.16-2.1  python-tqdm-4.65.0-3  rhash-1.4.3-1  t1lib-5.1.2-8.1
              texlive-basic-2023.66594-19  texlive-bin-2023.66984-15
              texlive-fontsrecommended-2023.66594-19  texlive-formatsextra-2023.66594-19
              texlive-latex-2023.66594-19  texlive-latexextra-2023.66594-19
              texlive-latexrecommended-2023.66594-19  texlive-pictures-2023.66594-19
              texlive-plaingeneric-2023.66594-19  texlive-science-2023.66594-7  zziplib-0.13.72-2
              cmake-3.27.1-1  dblatex-0.3.12-6  meson-1.2.1-1

Total Download Size:    47.61 MiB
Total Installed Size:  565.89 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 texlive-bin-2023.66984-15-x86_64.pkg.tar.zst failed to download
 Total ( 1/20)                  47.6 MiB  36.5 MiB/s 00:01 [################################] 100%
error: failed retrieving file 'texlive-bin-2023.66984-15-x86_64.pkg.tar.zst' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed retrieving file 'texlive-bin-2023.66984-15-x86_64.pkg.tar.zst' from artix.wheaton.edu : The requested URL returned error: 404
error: failed retrieving file 'texlive-bin-2023.66984-15-x86_64.pkg.tar.zst' from mirror.strits.dk : The requested URL returned error: 404
error: failed retrieving file 'texlive-bin-2023.66984-15-x86_64.pkg.tar.zst' from mirrors.dotsrc.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
 -> error installing repo packages
error installing repo packages

Re: Anyone have a working package for DIA

Reply #1
dia-git doesn't like the existing dependencies and can't find tex packages that satisfy it

I would first use pacman -Syy
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: Anyone have a working package for DIA

Reply #2
dia-git doesn't like the existing dependencies and can't find tex packages that satisfy it

I would first use pacman -Syy

[strikeout]You would fail, as there is no package.[/strikeout]

Actually - I take it back.  This works, although I don't know why :)

Re: Anyone have a working package for DIA

Reply #3
/usr/share/libalpm/scripts/mktexlsr: line 4: 23271 Aborted                 /usr/bin/mtxrun --generate > /dev/null
grep: /var/lib/texmf/luatex-cache/context/*/trees/*.lua: No such file or directory
(3/6) Updating TeXLive format files...
PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.3, library: 1.2.13)
PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.3, library: 1.2.13)

Re: Anyone have a working package for DIA

Reply #4
The package can be built without any problems, so I don't understand what you want to achieve with the terminal output.
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: Anyone have a working package for DIA

Reply #5
I'm not sure exact what you are refering to but the aur dia doesn't compile because of errors in python2.

the dia-git only compiled after downloading with pacman tex libraries and resources that don't exactly match the package but after downloading them with pacman, then one could compile it in yay (alas with error warnings).  So thanks to your recommendation, I got dia-git to compile.  dia-git did not compile directly in yay because of dependency mismatches.

 

Re: Anyone have a working package for DIA

Reply #6
dia-git did not compile directly in yay because of dependency mismatches.

It's very simple:

Code: [Select]
curl -O https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=dia-git
makepkg -si
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "