Re:_git:_228664f500b9_-_main_-_graphics/{,py-}f 3d: update 2.3.1 → 2.4.0

From: Vladimir Druzenko <vvd_at_freebsd.org>
Date: Fri, 05 Apr 2024 02:00:24 UTC
04.04.2024 11:05, Yuri Victorovich пишет:
> The branch main has been updated by yuri:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=228664f500b999a301ef1b271ea9f35f91288fbe
>
> commit 228664f500b999a301ef1b271ea9f35f91288fbe
> Author:     Yuri Victorovich <yuri@FreeBSD.org>
> AuthorDate: 2024-04-04 07:29:20 +0000
> Commit:     Yuri Victorovich <yuri@FreeBSD.org>
> CommitDate: 2024-04-04 08:05:05 +0000
>
>      graphics/{,py-}f3d: update 2.3.1 → 2.4.0
>      
>      Reported by:    portscout
> ---
>   graphics/f3d/Makefile                              |   8 +-
>   graphics/f3d/distinfo                              |   6 +-
>   graphics/f3d/files/patch-external_dmon_dmon.h      |  20 ++
>   .../f3d/files/patch-plugins_occt_CMakeLists.txt    |  35 --
>   .../patch-plugins_occt_module_vtkF3DOCCTReader.cxx | 381 ---------------------
>   graphics/f3d/pkg-plist                             |  34 +-
>   graphics/py-f3d/Makefile                           |   2 +-
>   graphics/py-f3d/distinfo                           |   6 +-
>   8 files changed, 52 insertions(+), 440 deletions(-)
>
> diff --git a/graphics/f3d/Makefile b/graphics/f3d/Makefile
> index c2cdec098793..bf3fc902170a 100644
> --- a/graphics/f3d/Makefile
> +++ b/graphics/f3d/Makefile
> @@ -1,6 +1,6 @@
>   PORTNAME=	f3d
>   DISTVERSIONPREFIX=	v
> -DISTVERSION=	2.3.1
> +DISTVERSION=	2.4.0
>   CATEGORIES=	graphics
>   
>   MAINTAINER=	yuri@FreeBSD.org
> @@ -16,12 +16,14 @@ LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg4 \
>   		libfreetype.so:print/freetype2 \
>   		libhdf5.so:science/hdf5 \
>   		libImath-3_1.so:math/Imath \
> +		libinotify.so:devel/libinotify \
>   		libnetcdf.so:science/netcdf \
> +		libtbb.so:devel/onetbb \
>   		libvtkCommonMisc-${VTK_VER}.so:math/vtk${VTK_VER:R}
>   
>   USES=		cmake:testing compiler:c++17-lang desktop-file-utils gl \
>   		shared-mime-info tcl tk xorg
> -USE_GL=		gl glu
> +USE_GL=		gl
>   USE_XORG=	ice sm x11 xt
>   USE_LDCONFIG=	yes
>   
> @@ -31,6 +33,8 @@ GH_ACCOUNT=	f3d-app
>   CMAKE_OFF=	F3D_STRICT_BUILD # disable -Werror
>   CMAKE_OFF+=	F3D_LINUX_APPLICATION_LINK_FILESYSTEM
>   
> +LDFLAGS+=	-linotify
> +
>   # dependency descroptions are in https://f3d.app/doc/dev/BUILD.html
>   OPTIONS_GROUP=			MODULES PLUGINS
>   OPTIONS_GROUP_MODULES=		EXTERNAL_RENDERING RAYTRACING

Hello!

Fails during configure stage after this commit on 13.3-p1 amd64.
USES+=localbase:ldflags fixed build.

Build log:

-- The C compiler identification is Clang 17.0.6
-- The CXX compiler identification is Clang 17.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at 
/usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
   The C compiler

     "/usr/bin/cc"

   is not able to compile a simple test program.

   It fails with the following output:

     Change Dir: 
'/tmp/work/usr/ports/graphics/f3d/work/.build/CMakeFiles/CMakeScratch/TryCompile-IquQV1'

     Run Build Command(s): /usr/local/bin/ninja -v cmTC_dc3d3
     [1/2] /usr/bin/cc   -O2 -pipe -march=core2 -fstack-protector-strong 
-isystem /usr/local/include -fno-strict-aliasing -MD -MT 
CMakeFiles/cmTC_dc3d3.dir/testCCompiler.c.o -MF 
CMakeFiles/cmTC_dc3d3.dir/testCCompiler.c.o.d -o 
CMakeFiles/cmTC_dc3d3.dir/testCCompiler.c.o -c 
/tmp/work/usr/ports/graphics/f3d/work/.build/CMakeFiles/CMakeScratch/TryCompile-IquQV1/testCCompiler.c
     [2/2] : && /usr/bin/cc -O2 -pipe -march=core2 
-fstack-protector-strong -isystem /usr/local/include 
-fno-strict-aliasing -linotify -fstack-protector-strong 
CMakeFiles/cmTC_dc3d3.dir/testCCompiler.c.o -o cmTC_dc3d3 && :
     FAILED: cmTC_dc3d3
     : && /usr/bin/cc -O2 -pipe -march=core2 -fstack-protector-strong 
-isystem /usr/local/include -fno-strict-aliasing -linotify 
-fstack-protector-strong CMakeFiles/cmTC_dc3d3.dir/testCCompiler.c.o -o 
cmTC_dc3d3 && :
     ld: error: unable to find library -linotify
     cc: error: linker command failed with exit code 1 (use -v to see 
invocation)
     ninja: build stopped: subcommand failed.





   CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
   CMakeLists.txt:23 (project)


-- Configuring incomplete, errors occurred!
*** Error code 1


Also pkg-plist need fix:

-lib/libvtkextAlembic.a
-lib/libvtkextAssimp.a
-lib/libvtkextDraco.a
+%%ALEMBIC%%lib/libvtkextAlembic.a
+%%ASSIMP%%lib/libvtkextAssimp.a
+%%DRACO%%lib/libvtkextDraco.a
  lib/libvtkextNative.a
-lib/libvtkextOCCT.a
+%%OCCT%%lib/libvtkextOCCT.a


-- 
Best regards,
Vladimir Druzenko