Hello,
I'm a very part-time Fedora packager, and am trying to update the
"puzzles" spec file to bring in a newer version of Simon Tatham's (of
Putty fame) single player puzzle collection.
This is a GTK3 or GTK2 application that uses cmake. If I perform:
cmake .
cmake --build
The application appears to build just fine. But if I try to use the
%cmake RPM macros in the spec file, as in:
%build
%cmake
%cmake_build
%install
%cmake_install
then I get errors during the build, such as:
[ 4%] Linking C executable spectre-gen
cd
/builddir/build/BUILD/puzzles-20241230.79be403-build/puzzles-20241230.79be403/redhat-linux-build/auxiliary
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/spectre-gen.dir/link.txt --verbose=1
/usr/bin/ld: ../libcore.so: undefined reference to
`spectre_tiling_params_invalid'
/usr/bin/ld: ../libcore.so: undefined reference to `g_free'
/usr/bin/ld: ../libcore.so: undefined reference to `cairo_region_destroy'
[snip]
I specify gtk3-devel as a BuildRequires, so I assumed all the GUI stuff
I need is present.
I've looked at
https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ but I'm
not a cmake user or developer...
Thanks in advance if anyone can send along pointers to help troubleshoot
this. I looked at other third-party spec files for this package, and
there's a random assortment of make being invoked directly, usage of
some (but not all) of the %cmake RPM macros, etc.
-Greg
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue