Package Details: dia-git 6943.22534d16c-1

Git Clone URL: https://aur.archlinux.org/dia-git.git (read-only, click to copy)
Package Base: dia-git
Description: A GTK+ based diagram creation program
Upstream URL: https://gitlab.gnome.org/GNOME/dia
Licenses: GPL-2.0-or-later
Conflicts: dia
Provides: dia
Submitter: lilac
Maintainer: a821
Last Packager: a821
Votes: 4
Popularity: 1.33
First Submitted: 2019-05-08 01:07 (UTC)
Last Updated: 2025-09-18 12:43 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

a821 commented on 2025-09-18 12:45 (UTC)

@jahway603: thanks! I reverted the last commit which undoes the patch. I hope it is OK now.

jahway603 commented on 2025-09-16 21:28 (UTC)

@a821 the sha256sum of the patch does not match what is in the PKGBUILD, but that patch's contents are now incorporated into the upstream here https://gitlab.gnome.org/GNOME/dia/-/blob/master/plug-ins/pdf/pdf-import.cpp?ref_type=heads#L399, so the patch is no longer needed.

a821 commented on 2025-09-13 14:03 (UTC)

@Kakadus: thanks for the report and the patch. It seems to work. I have incorporated your MR in the PKGBUILD I will push an update shortly.

At the moment I'm out of town for two weeks, so keep in mind I might take some time for me to reply.

Kakadus commented on 2025-09-12 23:14 (UTC) (edited on 2025-09-12 23:14 (UTC) by Kakadus)

Currently, build fails because of change in poppler with

[526/562] Compiling C++ object plug-ins/libpdf_filter.so.p/pdf_pdf-import.cpp.o
FAILED: plug-ins/libpdf_filter.so.p/pdf_pdf-import.cpp.o
sccache c++ -Iplug-ins/libpdf_filter.so.p -Iplug-ins -I../dia/plug-ins -Ilib -I../dia/lib -I. -I../dia -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -I/usr/include/libxml2 -I/usr/include/graphene-1.0 -I/usr/lib/graphene-1.0/include -I/usr/include/poppler -I/usr/include/nss -I/usr/include/nspr -I/usr/include/openjpeg-2.5 -I/usr/include/poppler/cpp -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu++20 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_8 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_76 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_76 -DGSEAL_ENABLE -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -fPIC -pthread -mfpmath=sse -msse -msse2 -MD -MQ plug-ins/libpdf_filter.so.p/pdf_pdf-import.cpp.o -MF plug-ins/libpdf_filter.so.p/pdf_pdf-import.cpp.o.d -o plug-ins/libpdf_filter.so.p/pdf_pdf-import.cpp.o -c ../dia/plug-ins/pdf/pdf-import.cpp
../dia/plug-ins/pdf/pdf-import.cpp: In member function ‘virtual void DiaOutputDev::updateFont(GfxState*)’:
../dia/plug-ins/pdf/pdf-import.cpp:378:24: warning: bitwise operation between different enumeration types ‘DiaFontFamily’ and ‘DiaFontSlant’ is deprecated [-Wdeprecated-enum-enum-conversion]
  377 |     DiaFontStyle style = (f->isSerif() ? DIA_FONT_SERIF : DIA_FONT_SANS)
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  378 |                        | (f->isItalic() ? DIA_FONT_ITALIC : DIA_FONT_NORMAL)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../dia/plug-ins/pdf/pdf-import.cpp:399:40: error: cannot convert ‘const std::array<double, 6>’ to ‘const double*’ in initialization
  399 |     const double *fm = f->getFontMatrix();
      |                        ~~~~~~~~~~~~~~~~^~
      |                                        |
      |                                        const std::array<double, 6>
../dia/plug-ins/pdf/pdf-import.cpp: In member function ‘void DiaOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, int*, bool)’:
../dia/plug-ins/pdf/pdf-import.cpp:903:19: warning: ignoring return value of ‘bool ImageStream::reset()’, declared with attribute ‘nodiscard’ [-Wunused-result]
  903 |       imgStr.reset(); // otherwise getLine() is crashing right away
      |       ~~~~~~~~~~~~^~
In file included from /usr/include/poppler/Object.h:605,
                 from /usr/include/poppler/OutputDev.h:43,
                 from ../dia/plug-ins/pdf/pdf-import.cpp:36:
/usr/include/poppler/Stream.h:474:24: note: declared here
  474 |     [[nodiscard]] bool reset();
      |                        ^~~~~
[543/562] Merging translations for sheets/ciscotelephony.sheet
ninja: build stopped: subcommand failed.

Upstream issue: https://gitlab.gnome.org/GNOME/dia/-/issues/570.

Upstream PR: https://gitlab.gnome.org/GNOME/dia/-/merge_requests/140

Maybe you want to add it as a patch to PKGBUILD if necessary.

viachaslavic commented on 2024-06-23 15:49 (UTC)

@a821 Thanks! I recommend defining dependencies by common name that is specified in Provides instead of a specific package name.

weltall commented on 2024-06-14 06:25 (UTC) (edited on 2024-06-14 06:28 (UTC) by weltall)

It seems the package glib2-devel needs to be installed manually now in order for the package to build or i get this error:

Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Configuring dia-version-info.h using configuration
Found git repository at /home/user/.cache/aurman/dia-git/src/dia
Dependency glib-2.0 found: YES 2.80.3 (cached)
Program /usr/bin/glib-mkenums found: NO

dia/lib/meson.build:201:24: ERROR: Dependency 'glib-2.0' tool variable 'glib_mkenums' contains erroneous value: '/usr/bin/glib-mkenums'
This is a distributor issue -- please report it to your glib-2.0 provider.

A full log can be found at /home/user/.cache/aurman/dia-git/src/build/meson-logs/meson-log.txt

==> ERROR: A failure occurred in build().
Aborting...

a821 commented on 2024-06-09 06:42 (UTC)

@viachaslavic: Right, I hadn't considered that scenario given that I always build packages in a clean chroot. I pushed an update that forces the rebuild of xpm-pixbuf which should™ fix the issue...

Oops, I realize too late that you have already added xpm-pixbuf-git... I may switch to using that.

viachaslavic commented on 2024-06-08 22:26 (UTC) (edited on 2024-06-08 22:35 (UTC) by viachaslavic)

@a821 @RAMChYLD this can happen when building a new version if there is already one installed. During build, meson will detect the library in the system directory and will not build the subproject, as a result after updating the libxpm-pixbuf.so will be lost. To avoid this, I suggest using a separate package as dependency instead of building a subproject.

a821 commented on 2024-05-12 06:56 (UTC)

@RAMChYLD: it's weird because the file it's there. This is what I get:

$ pacman -Qo /usr/lib/libxpm-pixbuf.so.0 
/usr/lib/libxpm-pixbuf.so.0 is owned by dia-git 6871.4139f5aff-2

RAMChYLD commented on 2024-05-11 20:25 (UTC) (edited on 2024-05-11 20:25 (UTC) by RAMChYLD)

Latest pkgbuild seems to be missing out on the libxpm-pixbuf shared library when generating the final package file. I'm getting the following error:

dia: error while loading shared libraries: libxpm-pixbuf.so.0: cannot open shared object file: No such file or directory