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)
Sun, Nov 3, 12:41 AM
Unknown Object (File)
Fri, Oct 18, 10:06 PM
Unknown Object (File)
Oct 2 2024, 8:05 PM
Unknown Object (File)
Oct 1 2024, 2:38 PM
Unknown Object (File)
Sep 22 2024, 12:11 AM
Unknown Object (File)
Sep 12 2024, 9:19 AM
Unknown Object (File)
Sep 12 2024, 9:19 AM
Unknown Object (File)
Sep 12 2024, 9:16 AM
Subscribers
None

Details

Summary

Compiling with GCC requires changes in pkg-plist.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 26238
Build 24730: arc lint + arc unit

Event Timeline

science/InsightToolkit/Makefile
58

should that be in compiler.mk ^^

science/InsightToolkit/pkg-plist
142

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

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

science/InsightToolkit/pkg-plist
142

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

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