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)
Wed, Jul 8, 10:32 AM
Unknown Object (File)
Sat, Jul 4, 6:06 PM
Unknown Object (File)
Fri, Jul 3, 3:01 AM
Unknown Object (File)
Wed, Jun 17, 1:21 AM
Unknown Object (File)
Jun 15 2026, 6:56 AM
Unknown Object (File)
Jun 14 2026, 12:32 PM
Unknown Object (File)
Jun 13 2026, 1:43 AM
Unknown Object (File)
Jun 4 2026, 10:22 AM
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