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, Apr 20, 3:56 PM
Unknown Object (File)
Mar 5 2024, 1:56 PM
Unknown Object (File)
Mar 5 2024, 1:56 PM
Unknown Object (File)
Mar 5 2024, 1:56 PM
Unknown Object (File)
Mar 5 2024, 1:51 PM
Unknown Object (File)
Mar 4 2024, 8:55 PM
Unknown Object (File)
Feb 26 2024, 8:48 AM
Unknown Object (File)
Jan 18 2024, 2:07 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