Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2017 21:39:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217913] games/eduke32: Fix build, fix fetch, add option
Message-ID:  <bug-217913-13-6mBmwr4fNq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217913-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217913-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217913

--- Comment #2 from Matthew Rezny <rezny@freebsd.org> ---
(In reply to Piotr Kubaj from comment #1)

The post-patch step targets the wrong file, and neither gcc nor g++ are
installed by the gcc ports, it will be g++49, g++5, g++6, etc.

Here is a build log of the port as it currently stands without my fixes (XXX
pack was already fetched from correct URL):

=3D=3D=3D>  Found saved configuration for eduke32-20170225
=3D=3D=3D>   eduke32-20170225 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by eduke32-20170225 for building
=3D=3D=3D>  Extracting for eduke32-20170225
=3D> SHA256 Checksum OK for eduke32_src_20170225-6079.tar.xz.
=3D> SHA256 Checksum OK for duke3d_hrp.zip.
=3D> SHA256 Checksum OK for duke3d_xxx.zip.
=3D=3D=3D>  Patching for eduke32-20170225
=3D=3D=3D>   eduke32-20170225 depends on file: /usr/local/bin/sdl2-config -=
 found
=3D=3D=3D>   eduke32-20170225 depends on executable: gmake - found
=3D=3D=3D>   eduke32-20170225 depends on package: pkgconf>=3D1.3.0_1 - found
=3D=3D=3D>   eduke32-20170225 depends on executable: gcc5 - found
=3D=3D=3D>   eduke32-20170225 depends on file: /usr/local/bin/as - found
=3D=3D=3D>   eduke32-20170225 depends on package: libGL>0 - found
=3D=3D=3D>   eduke32-20170225 depends on file:
/usr/local/libdata/pkgconfig/glproto.pc - found
=3D=3D=3D>   eduke32-20170225 depends on file:
/usr/local/libdata/pkgconfig/dri2proto.pc - found
=3D=3D=3D>   eduke32-20170225 depends on file:
/usr/local/libdata/pkgconfig/glproto.pc - found
=3D=3D=3D>   eduke32-20170225 depends on file:
/usr/local/libdata/pkgconfig/dri2proto.pc - found
=3D=3D=3D>   eduke32-20170225 depends on shared library: libFLAC.so - found
(/usr/local/lib/libFLAC.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libogg.so - found
(/usr/local/lib/libogg.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libvorbis.so - fou=
nd
(/usr/local/lib/libvorbis.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libvpx.so - found
(/usr/local/lib/libvpx.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libpng16.so - found
(/usr/local/lib/libpng16.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libSDL2.so - found
(/usr/local/lib/libSDL2.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libSDL2_mixer.so -=
 found
(/usr/local/lib/libSDL2_mixer.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libatk-1.0.so - fo=
und
(/usr/local/lib/libatk-1.0.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libglib-2.0.so - f=
ound
(/usr/local/lib/libglib-2.0.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libgtk-x11-2.0.so =
- found
(/usr/local/lib/libgtk-x11-2.0.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libpango-1.0.so - =
found
(/usr/local/lib/libpango-1.0.so)
=3D=3D=3D>   eduke32-20170225 depends on shared library: libGLU.so - found
(/usr/local/lib/libGLU.so)
=3D=3D=3D>  Configuring for eduke32-20170225
=3D=3D=3D>  Building for eduke32-20170225
gmake[2]: Entering directory
'/usr/obj/usr/ports/games/eduke32/work/eduke32_20170225-6079'
gmake[2]: gcc: Command not found
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
Build started using:
compiler: "g++ -std=3Dgnu++03 -fno-exceptions -fno-rtti -O3 -pipe -march=3D=
amdfam10
-fstack-protector -Wl,-rpath=3D/usr/local/lib/gcc5 -fno-strict-aliasing=20=
=20
-Wl,-rpath=3D/usr/local/lib/gcc5  -O2   -funswitch-loops -fomit-frame-point=
er
-flto -funsigned-char -fno-strict-aliasing  -I/usr/local/include/SDL2
-I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O3 -pipe -march=3Damdfam1=
0=20
-fstack-protector -Wl,-rpath=3D/usr/local/lib/gcc5 -fno-strict-aliasing  -D=
NDEBUG
-DUSING_LTO -W -Wall -Wextra -Wpointer-arith -Wno-char-subscripts
-Wno-missing-braces -Wwrite-strings -Wuninitialized -Wno-attributes
-Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual=20
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D0 -DUSE_LIBPNG -DUSE_LIBVPX
-DSTARTUP_WINDOW -DHAVE_VORBIS -DHAVE_FLAC -I/usr/local/include -DSDL_TARGE=
T=3D2
-DHAVE_GTK2 -I/usr/local/include/gtk-2.0 -I/usr/local/include/pango-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/pixman=
-1
-I/usr/local/include/freetype2 -I/usr/local/include/libpng16
-I/usr/local/include/libdrm -I/usr/local/include/harfbuzz
-I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -D_THREAD_=
SAFE
-pthread -pthread  -DRENDERTYPESDL=3D1 -DMIXERTYPESDL=3D1 -DUSE_OPENGL -DNO=
ASM
-DPOLYMER -Isource/build/include -Isource/mact/include
-Isource/audiolib/include -Isource/enet/include"
linker: "g++ -std=3Dgnu++03 -fno-exceptions -fno-rtti -O3 -pipe -march=3Dam=
dfam10
-fstack-protector -Wl,-rpath=3D/usr/local/lib/gcc5 -fno-strict-aliasing=20=
=20
-Wl,-rpath=3D/usr/local/lib/gcc5   -O2   -funswitch-loops -fomit-frame-poin=
ter
-flto -funsigned-char -fno-strict-aliasing  -I/usr/local/include/SDL2
-I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O3 -pipe -march=3Damdfam1=
0=20
-fstack-protector -Wl,-rpath=3D/usr/local/lib/gcc5 -fno-strict-aliasing=20=
=20
-fstack-protector -Wl,-rpath=3D/usr/local/lib/gcc5 -L/usr/local/lib/gcc5  -=
lm
-lvpx -lSDL2_mixer -L/usr/local/lib -lSDL2 -pthread -lpng -lz -lFLAC
-lvorbisfile -lvorbis -logg -lexecinfo"
/bin/sh: g++: not founde3d/global.o...
Failed building obj/duke3d/game.o from source/duke3d/src/game.cpp!
gmake[2]: *** [GNUmakefile:923: obj/duke3d/game.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/bin/sh: g++: not found
Failed building obj/duke3d/global.o from source/duke3d/src/global.cpp!
gmake[2]: *** [GNUmakefile:923: obj/duke3d/global.o] Error 1
gmake[2]: Leaving directory
'/usr/obj/usr/ports/games/eduke32/work/eduke32_20170225-6079'
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/games/eduke32
*** Error code 1

Stop.
make: stopped in /usr/ports/games/eduke32

The port must respect CC and CXX, and the easiest way to do that is by pass=
ing
them as to make as arguments. That way you need not worry about chasing the
patch targets when upstream refactors their build infrastructure.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217913-13-6mBmwr4fNq>