Page MenuHomeFreeBSD

science/InsightToolkit: fix build with GCC-based architectures
ClosedPublic

Authored by pkubaj on Aug 27 2019, 8:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 4, 7:50 AM
Unknown Object (File)
Sat, Sep 20, 6:22 AM
Unknown Object (File)
Sep 6 2025, 9:25 PM
Unknown Object (File)
Sep 6 2025, 9:07 PM
Unknown Object (File)
Sep 3 2025, 11:16 PM
Unknown Object (File)
Aug 4 2025, 10:19 PM
Unknown Object (File)
Jul 27 2025, 7:07 AM
Unknown Object (File)
Jul 6 2025, 1:21 PM
Subscribers
None

Details

Summary

Compiling with GCC requires changes in pkg-plist.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

science/InsightToolkit/Makefile
58 ↗(On Diff #61340)

should that be in compiler.mk ^^

science/InsightToolkit/pkg-plist
142 ↗(On Diff #61340)

you could also do something like

include/ITK-%%ITK_VER%%/compilers/ITK_COMPILER_INFO_%%CHOSEN_COMPILER_NAME%%_CXX.h

and have CHOSEN_COMPILER_NAME added to the plist.

science/InsightToolkit/Makefile
58 ↗(On Diff #61340)

Could be, but there are not many ports that need it.

science/InsightToolkit/pkg-plist
142 ↗(On Diff #61340)

It won't work. When Clang is used, CHOSEN_COMPILER_NAME is clang (but the file has capital "c"). When GCC is used, CHOSEN_COMPILER_NAME is gcc (but the file has "Gnu" instead).

science/InsightToolkit/pkg-plist
142 ↗(On Diff #61340)

I didn't mean adding the effective value to the plist, but just have a PLIST_SUB that contains either Clang or GNU depending on the chosen compiler.

Use a single PLIST_SUB.

Also remove the old patch that breaks build (even on amd64, it doesn't apply). It was introduced probably by mistake in https://svnweb.freebsd.org/ports?view=revision&revision=509864

Use a single PLIST_SUB.

Thanks, this looks much cleaner to me

Use a single PLIST_SUB.

Thanks, this looks much cleaner to me

Then is this ok?

This revision is now accepted and ready to land.Sep 29 2019, 4:57 PM