Package Details: svg2png 0.1.3-7

Git Clone URL: https://aur.archlinux.org/svg2png.git (read-only, click to copy)
Package Base: svg2png
Description: Conversion of SVGs to PNGs via cairo
Upstream URL: http://cairographics.org/
Licenses: custom
Submitter: haawda
Maintainer: aksr
Last Packager: haawda
Votes: 42
Popularity: 0.000000
First Submitted: 2008-01-18 19:51 (UTC)
Last Updated: 2021-04-22 15:36 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

dreieck commented on 2025-01-08 19:16 (UTC)

You need to make the license identifier SPDX compliant:

svg2png E: custom is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.

Regards!

dreieck commented on 2025-01-08 19:13 (UTC)

Please add to build()

  CFLAGS+=" -Wno-error=implicit-function-declaration"
  CXXFLAGS+="${_CFLAGS}"
  export CFLAGS
  export CXXFLAGS

otherwise build fails with svg2png.c:53:9: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]:

[...]
if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1 -Wall -Wpointer-arith -Wstrict-prototypes     -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -w -flto=auto -MT svg2png.o -MD -MP -MF ".deps/svg2png.Tpo" -c -o svg2png.o svg2png.c; \
then mv -f ".deps/svg2png.Tpo" ".deps/svg2png.Po"; else rm -f ".deps/svg2png.Tpo"; exit 1; fi
svg2png.c: In function ‘main’:
svg2png.c:53:9: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
   53 |     if (strcmp (args.svg_filename, "-") == 0) {
      |         ^~~~~~
svg2png.c:39:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
   38 | #include "args.h"
  +++ |+#include <string.h>
   39 | 
svg2png.c:59:50: error: implicit declaration of function ‘strerror’; did you mean ‘perror’? [-Wimplicit-function-declaration]
   59 |                      argv[0], args.svg_filename, strerror(errno));
      |                                                  ^~~~~~~~
      |                                                  perror
make[2]: *** [Makefile:222: svg2png.o] Error 1
make[2]: Leaving directory '/var/cache/makepkg/build/svg2png/src/svg2png-0.1.3/src'
make[1]: *** [Makefile:228: all-recursive] Error 1
make[1]: Leaving directory '/var/cache/makepkg/build/svg2png/src/svg2png-0.1.3'
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().

Regards and thanks for the package!

haawda commented on 2021-04-22 15:37 (UTC)

Did so (and other small changes), but without bumping pkgrel.

micwoj92 commented on 2021-04-22 12:07 (UTC)

Hello, could you update links to https?

tobias_de commented on 2012-05-15 20:23 (UTC)

Yea, this is really strange here. It builds sucessfully (with a clean src directory), but links against this old non-existant library.

haawda commented on 2012-05-09 19:38 (UTC)

ldd /usr/bin/svg2png linux-vdso.so.1 => (0x00007fffa85ff000) libsvg-cairo.so.1 => /usr/lib/libsvg-cairo.so.1 (0x00007fcd078f4000) libsvg.so.1 => /usr/lib/libsvg.so.1 (0x00007fcd076e0000) libpng15.so.15 => /usr/lib/libpng15.so.15 (0x00007fcd074b3000) try rebuilding

tobias_de commented on 2012-05-09 18:00 (UTC)

The issue is not about building it, but about running it: ldd svg2png libpng14.so.14 => not found It's funny that it successfully builds and links against a nonexistant libpng14 library

haawda commented on 2012-04-28 16:48 (UTC)

No, it does not, builds fine here without libpng14 installed.