Hi Gianfranco,
Thanks for having a look at the issue.
On Thu, 14 Oct 2021 19:17:53 +0200 Gianfranco Costamagna
<locutusofb...@debian.org> wrote:
> Hello Tomasz
> […]
> can you please check if 0.7.0 in debian/experimental fixes this issue?
> The cmake scripts have been reworked, and I can't see anymore the
variable not correctly evaluated.
>
> In case please let me know if the bug is fixed
>
> thanks
>
> Gianfranco
>
I have tried to build the source package 0.7.0
(https://packages.debian.org/experimental/libyaml-cpp-dev) for my Debian
(bullseye), but unfortunately building the package fails with:
----------------
nm --dynamic --defined-only build-shared/libyaml-cpp.so | awk '$2 ~ /W/
{ print " " $3 "@Base 0.7.0" } ' > debian/weak-symbols
dh_makeshlibs -VNone
dpkg-gensymbols: warning: some new symbols appeared in the symbols file:
see diff output below
dpkg-gensymbols: error: some symbols or patterns disappeared in the
symbols file: see diff output below
dpkg-gensymbols: warning: debian/libyaml-cpp0.7/DEBIAN/symbols doesn't
match completely debian/libyaml-cpp0.7.symbols
[...]
dh_makeshlibs: error: failing due to earlier errors
make[1]: *** [debian/rules:62: override_dh_makeshlibs] Error 25
make[1]: Leaving directory '/home/debian/tmp/yaml-cpp-0.7.0+dfsg'
make: *** [debian/rules:71: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess
returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -i -b failed
----------------
It passes compilation and tests but fails on the
"Install the project..." part.
In consequence, I cannot see what would be in the built package to be
sure, but the configuration files for cmake seem to be generated. The
contents of the generated file
yaml-cpp-0.7.0+dfsg/build-shared/yaml-cpp-config.cmake
is as follows:
----------------
# - Config file for the yaml-cpp package
# It defines the following variables
# YAML_CPP_INCLUDE_DIR - include directory
# YAML_CPP_LIBRARIES - libraries to link against
# Compute paths
get_filename_component(YAML_CPP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(YAML_CPP_INCLUDE_DIR "")
# Our library dependencies (contains definitions for IMPORTED targets)
include("${YAML_CPP_CMAKE_DIR}/yaml-cpp-targets.cmake")
# These are IMPORTED targets created by yaml-cpp-targets.cmake
set(YAML_CPP_LIBRARIES "")
----------------
so it does not seem correct (both include and libs settings are empty...).
I do not know the process of fixing bugs in Debian (ie. whether you
rather backport a newer version from testing/unstable or fix current
version), but at the moment it seems to me that it would be easier to
fix the current package (0.6.3) and just make it usable with cmake than
backporting 0.7.0 (which seems to have more complex issues when building
on bullseye).
Cheers,
Tomasz