Page MenuHomeFreeBSD

games/eduke32: update to r6180, add patch to build with Clang and option to build with GCC
ClosedPublic

Authored by ultima on Jun 18 2017, 1:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 6:07 AM
Unknown Object (File)
Jan 26 2024, 7:58 PM
Unknown Object (File)
Jan 15 2024, 11:53 AM
Unknown Object (File)
Jan 7 2024, 1:32 PM
Unknown Object (File)
Dec 20 2023, 4:48 AM
Unknown Object (File)
Nov 28 2023, 7:18 PM
Unknown Object (File)
Nov 25 2023, 4:31 AM
Unknown Object (File)
Nov 23 2023, 3:25 AM
Subscribers

Details

Summary
  • Updated to 20170614 (r6180)
  • Added non-default option GCC

PR\: 220039
Sumitted by\: Piotr Kubaj <pkubaj@anongoth.pl> (maintainer)
Reviewed by\: lifanov (mentor), matthew (mentor)
Approved by\: lifanov (mentor), matthew (mentor)
Differential Revision\: https://reviews.freebsd.org/DXXXXX

Test Plan

portlint:
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy.
0 fatal errors and 1 warning found.

poudriere:
103i386
103amd64
110i386
110amd64
12i386
12amd64

Diff Detail

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

Event Timeline

ultima edited the summary of this revision. (Show Details)
ultima edited the summary of this revision. (Show Details)
games/eduke32/Makefile
54

GCC_USE= gcc=yes

55

lang/gcc does not provide libstdc++, it does not provide anything, it is a metaport, so, this feels strange, the framework should warn you this is bad.
Also, USE_GCC already sets a build and run-time depends on gcc.

Retested with poudriere +gcc option, success.

What's the purpose of the GCC option? The ports framework already allows the user to override the default compiler.

What's the purpose of the GCC option? The ports framework already allows the user to override the default compiler.

That is a great point I didn't even consider. I'll pass your query to the maintainer and reply back.

What's the purpose of the GCC option? The ports framework already allows the user to override the default compiler.

Actually it must be for ease of use. To set a different compiler in make.conf option, it would override for all ports unless adding something like
.if !empty(.CURDIR:M/usr/ports/games/eduke32/*) && exists(/usr/local/bin/gcc47)
CC=gcc47
CXX=g++47
CPP=cpp47
.endif

The option make it a simple tick.

What's the purpose of the GCC option? The ports framework already allows the user to override the default compiler.

This is the note from maintainer.
The port right now requires GCC to build. This patch makes it possible to build with Clang and also adds an option to build with GCC, for increased performance (building with Clang requires not using LTO). Building with Clang is enabled by default.

Hmm, it seems to me that we have a consistent way to select GCC, including for specific ports, as you noted earlier.
I personally think that this is not a good idea, but if the maintainer wants to keep this option around, go ahead.

This revision is now accepted and ready to land.Jun 19 2017, 1:17 PM
This revision was automatically updated to reflect the committed changes.