pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

games/flightgear build failure



Hi,

On -current at  least, games/flightgear fails build:
......
[  8%] Building C object
3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/cb_search.c.o
In file included from
/usr/pkg/include/boost/config/detail/select_stdlib_config.hpp:24,
                 from /usr/pkg/include/boost/config.hpp:44,
                 from /usr/pkg/include/boost/type_traits/intrinsics.hpp:13,
                 from /usr/pkg/include/boost/type_traits/is_enum.hpp:14,
                 from /usr/pkg/include/simgear/props/props.hxx:58,
                 from
/usr/pkgsrc/games/flightgear/work/flightgear-2019.1.1/utils/fgelev/fgelev.cxx:30:
/usr/pkgsrc/games/flightgear/work/flightgear-2019.1.1/version:1:1:
error: too many decimal points in number
 2019.1.1
 ^~~~~~~~
.....

because /usr/pkg/include/boost/config/detail/select_stdlib_config.hpp
also includes a file with the same name, there is one in the top
directory of the package and this top directory is ahead in the
include search sequence.

To get the package built, I had to rename its 'version' file to
'fgversion' and change the coresponding line in the CMakeLists.txt
file:
....

--- CMakeLists.txt.ORIG 2020-05-25 09:19:15.990384926 +0100
+++ CMakeLists.txt      2020-05-25 09:18:54.435214166 +0100
@@ -79,8 +79,8 @@
 set(CMAKE_RELWITHDEBINFO_POSTFIX ""  CACHE STRING "add a postfix,
usually empty on windows")
 set(CMAKE_MINSIZEREL_POSTFIX     ""  CACHE STRING "add a postfix,
usually empty on windows")

-# read 'version' file into a variable (stripping any newlines or spaces)
-file(READ version versionFile)
+# read 'fgversion' file into a variable (stripping any newlines or spaces)
+file(READ fgversion versionFile)
 if (NOT versionFile)
     message(FATAL_ERROR "Unable to determine FlightGear version.
Version file is missing.")
 endif()

....

Chavdar

-- 
----


Home | Main Index | Thread Index | Old Index