Package Details: apng-utils 3.1.10-3

Git Clone URL: https://aur.archlinux.org/apng-utils.git (read-only, click to copy)
Package Base: apng-utils
Description: APNG utilities
Upstream URL: https://sourceforge.net/projects/apng/
Licenses: LGPL, zlib
Conflicts: apng2gif, apngasm, apngdis, apngopt, gif2apng
Provides: apng2gif, apngasm, apngdis, apngopt, gif2apng
Submitter: haawda
Maintainer: None
Last Packager: jakka
Votes: 1
Popularity: 0.000000
First Submitted: 2021-05-05 19:51 (UTC)
Last Updated: 2025-03-06 10:30 (UTC)

Latest Comments

dreieck commented on 2025-11-25 22:07 (UTC)

Now, build fails with Could not find a package configuration file provided by "boost_system":

CMake Warning (dev) at lib/CMakeLists.txt:88 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/lib/cmake/Boost-1.89.0/BoostConfig.cmake:141 (find_package):
  Could not find a package configuration file provided by "boost_system"
  (requested version 1.89.0) with any of the following names:

    boost_systemConfig.cmake
    boost_system-config.cmake

  Add the installation prefix of "boost_system" to CMAKE_PREFIX_PATH or set
  "boost_system_DIR" to a directory containing one of the above files.  If
  "boost_system" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/lib/cmake/Boost-1.89.0/BoostConfig.cmake:262 (boost_find_component)
  /usr/share/cmake/Modules/FindBoost.cmake:610 (find_package)
  lib/CMakeLists.txt:88 (find_package)


-- Configuring incomplete, errors occurred!

Regards!

dreieck commented on 2025-03-04 20:53 (UTC) (edited on 2025-03-04 20:54 (UTC) by dreieck)

Please add -j1 to the make invocations in the PKGBUILD, otherwise build fails for me (on a system where LTO is enabled by default) while linking:

==> Starting build()...
[...]
[100%] Linking CXX executable apngasm
/usr/bin/ld: /tmp/cckVUds4.ltrans0.ltrans.o: in function `main':
<artificial>:(.text.startup+0x66): undefined reference to `apngasm::APNGAsm::APNGAsm()'
/usr/bin/ld: <artificial>:(.text.startup+0x1162): undefined reference to `apngasm::APNGAsm::APNGAsm()'
/usr/bin/ld: <artificial>:(.text.startup+0x11a1): undefined reference to `apngasm::APNGAsm::setAPNGAsmListener(apngasm::listener::IAPNGAsmListener*)'
/usr/bin/ld: <artificial>:(.text.startup+0x1344): undefined reference to `apngasm::APNGAsm::loadAnimationSpec(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
[...]
/usr/bin/ld: <artificial>:(.text+0x8e57): undefined reference to `apngasm::APNGAsm::addFrame(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
/usr/bin/ld: /tmp/cckVUds4.ltrans1.ltrans.o: in function `apngasm_cli::CLI::~CLI()':
<artificial>:(.text+0x8f93): undefined reference to `apngasm::APNGAsm::~APNGAsm()'
collect2: error: ld returned 1 exit status
make[2]: *** [cli/CMakeFiles/apngasm-cli.dir/build.make:136: cli/apngasm] Error 1
make[1]: *** [CMakeFiles/Makefile2:287: cli/CMakeFiles/apngasm-cli.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target apngasm-dynamic
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().

A patch to the PKGBUILD:

--- PKGBUILD.orig   2025-03-04 21:49:47.840616685 +0100
+++ PKGBUILD    2025-03-04 21:54:26.607295044 +0100
@@ -52,3 +52,3 @@
    cd $_builddir
-   make ${MAKEFLAGS}
+   make -j1

@@ -62,3 +62,3 @@
   cmake -D CMAKE_INSTALL_PREFIX="/usr" ../
-  make
+  make -j1
 }

Regards and thanks for the package!

frankspace commented on 2022-06-30 02:49 (UTC) (edited on 2022-06-30 02:49 (UTC) by frankspace)

FYI, the current version of apngasm is now 3.1.10, but the cli.patch fails because cli.cpp has been modified slightly, but even correcting for that, compilation then fails, saying error: 'boost::filesystem' has not been declared. Trying to omit the patch altogether also fails, with a bunch of undefined reference to 'boost::filesystem' errors. It appears that the apngasm AUR package is also encountering problems with the current version of boost. Given the above, I'm somewhat hesitant to flag this as out-of-date, but I felt it ought to be documented somewhere.

adsun commented on 2021-05-25 14:38 (UTC)

This needs a patch to succeed in building, otherwise there is an undefined "ambiguous reference to 'filesystem' error".

--- a/cli/src/cli.cpp   2021-05-25 10:30:11.939887865 -0400
+++ b/cli/src/cli.cpp   2021-05-25 10:33:19.155408076 -0400
@@ -80,7 +80,7 @@
              createParentDirs(filePath);
              return true;
          }
-         if(!filesystem::exists(filesystem::path(filePath))) {
+         if(!boost::filesystem::exists(boost::filesystem::path(filePath))) {
              createParentDirs(filePath);
              return true;
          }