Package Details: lua52-cd 5.14-4

Git Clone URL: https://aur.archlinux.org/libcd.git (read-only, click to copy)
Package Base: libcd
Description: Lua (5.2) bindings for Canvas Draw library
Upstream URL: https://www.tecgraf.puc-rio.br/cd/
Licenses: MIT
Submitter: None
Maintainer: blueowl
Last Packager: blueowl
Votes: 6
Popularity: 0.041023
First Submitted: 2010-07-22 08:52 (UTC)
Last Updated: 2024-07-25 08:58 (UTC)

Latest Comments

1 2 3 Next › Last »

andrewkoz commented on 2024-07-11 23:05 (UTC) (edited on 2024-07-12 02:23 (UTC) by andrewkoz)

There are some problems with this package:

  • The md5 hash for cd-5.14_Sources.tar.gz should be 7b7bc2cd0d0b598e957aaf16e8bc6884

  • If building in parallel then some targets are built at the same time as their dependencies which causes a race condition where the build fails if the targets are linked against dependencies that are still being built. To fix the build order add the following to package() in the PKGBUILD:

sed -i 's/^cd[^\(:\|lua\)].*/\0 cd/g;s/^cdlua[^5].*/\0 cdlua5/g' "$srcdir"/cd/src/Makefile

MrSoup678 commented on 2023-08-02 10:16 (UTC)

@destinghim Same error here. Reproducible with manual build (makepkg). Apparently some targets are build before other targets. In the libim repo the im_jp2 target is build BEFORE im. I had to split the make call to build only im first, then the rest. Likely the same case in this package.

desttinghim commented on 2022-02-12 06:33 (UTC)

I am getting an error when trying to build this using yay. For some reason it can't link against the libraries it just built. I managed to get around this by downloading the PKGBUILD and running makepkg multiple times, until all versions of libcd were built. Any idea why this is the case?

blueowl commented on 2021-08-06 11:15 (UTC) (edited on 2021-08-06 11:15 (UTC) by blueowl)

@mov-rax: thanks for pointing it out and the link. libcd now depends on AUR pdflib-lite package. But it provides a library named libpdf rather than libpdflib (Upstream now uses its internal copy of PDFlib-lite sources instead).

Fixed in https://aur.archlinux.org/cgit/aur.git/commit/?h=libcd&id=5bb04f6e9a4a0616b99dfee9242a7e9862bc0875

mov-rax commented on 2021-01-30 00:41 (UTC)

This package fails to link.

Tecmake: linking libcdpdf.so ...
gcc -shared -o ../lib/Linux510_64/libcdpdf.so 
../obj/cdpdf/Linux510_64/cdpdf.o ../../ftgl/lib/Linux510_64/libftgl.a - 
L../lib/Linux510_64 -L../../pdflib7/lib/Linux510_64 -lcd -lfontconfig - 
lfreetype -lpdflib -lz -lm 
/usr/bin/ld: cannot find -lpdflib
collect2: error: ld returned 1 exit status
make[1]: *** [../tecmake.mak:1669: ../lib/Linux510_64/libcdpdf.so] Error 1
make: *** [Makefile:14: cdpdf] Error 2
==> ERROR: A failure occurred in build().
Aborting...

This linking error was also referenced here.

blueowl commented on 2020-01-27 17:01 (UTC) (edited on 2020-01-27 17:02 (UTC) by blueowl)

Made an update to build with pango >= 1.44 (depending on harfbuzz).

@daurnimator: pango 1.44 and up depends on harfbuzz [1],[2]. However the upstream tecmake.mak has not been updated yet. So I have patched that in PKGBUILD for now.

[1] https://gitlab.gnome.org/GNOME/pango/blob/master/NEWS#L66
[2] https://blogs.gnome.org/mclasen/2019/07/19/pango-updates/

daurnimator commented on 2019-12-21 06:04 (UTC) (edited on 2019-12-21 06:08 (UTC) by daurnimator)

Missing harfbuzz dependency?

Tecmake: compiling cdgdk.c ...
gcc -c  -Wall -O2 -m64 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../ftgl/include -I/usr/include/gtk-unix-print-2.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include   -DGTK_DISABLE_DEPRECATED -DTEC_UNAME=Linux53_64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_64/cdgdk.o gdk/cdgdk.c
In file included from /usr/include/pango-1.0/pango/pango-font.h:25,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from gdk/cdgdk.h:10,
                 from gdk/cdgdk.c:13:
/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
   28 | #include <hb.h>
      |          ^~~~~~
compilation terminated.
make[1]: *** [../tecmake.mak:1700: ../obj/Linux53_64/cdgdk.o] Error 1
make: *** [Makefile:14: cd] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

blueowl commented on 2018-10-11 19:20 (UTC) (edited on 2018-10-11 19:26 (UTC) by blueowl)

Updated
@ktamp: added 'lua' to makedepends
@quipa: fixed ftgl checksum

Thanks for pointing out the issues.

ktamp commented on 2018-08-27 23:29 (UTC)

Please add 'lua' to makedepends. This would solve potential problems on systems where 'lua' is not already installed and pikaur AUR helper is used (possibly others too).

quipa commented on 2018-08-10 19:45 (UTC)

There seems to be an issue with the md5sums for ftgl, getting the following error:

==> Validating source files with md5sums...
    cd-5.11.1_Sources.tar.gz ... Passed
    ftgl-2.1.5_Sources.tar.gz ... FAILED
    cd-5.11.1_Docs.pdf ... Passed
==> ERROR: One or more files did not pass the validity check!