Hi all,
On Thu, 4 Apr 2019 21:40:47 -0400
George Koehler <[email protected]> wrote:
> To OpenBSD ports list,
>
> I can't start OpenBSD's amd64 snapshot package of supertux-0.6.0p0.
> Are other people getting the same error? I get
>
> opa$ supertux2
> [FATAL]
> /usr/obj/ports/supertux-0.6.0/SuperTux-v0.6.0-Source/src/supertux/main.c
> pp:601 Unexpected exception: boost::filesystem::status: Permission
> denied:
> "/usr /obj/ports/supertux-0.6.0/SuperTux-v0.6.0-Source/data/credits.stxt"
> opa$ ls -ld /usr/obj drwxrwx--- 2 build wobj 512 Nov 20
> 19:58 /usr/obj
>
> I see how patch-src_supertux_main_cpp adds ${PREFIX}, but don't see
> how ${PREFIX} gets expanded. One might need to add a pre-configure
> target like in some other ports:
>
> pre-configure:
> ${SUBST_CMD} ${WRKSRC}/src/supertux/main.cpp
>
> I went to my amd64 vm to check whether the amd64 snapshot package
> gives the ${PREFIX} error, but I got the /usr/obj error. (I connected
> to my vm with ssh -Y; there's no accelerated OpenGL, so supertux would
> run slow if it did start.) Now I don't know whether we need a
> pre-configure target.
Thanks for reporting, i've the same issue on my amd64 machine.
Here is a diff that fixes it on amd64, i can't test on macppc
at the moment as it's building x11/qt4.
Charlène.
> [1]
> http://build-failures.rhaalovely.net//powerpc/2019-03-04/games/supertux.log
>
> --
> George Koehler <[email protected]>
>
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/supertux/Makefile,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 Makefile
--- Makefile 28 Feb 2019 17:42:53 -0000 1.19
+++ Makefile 5 Apr 2019 13:50:47 -0000
@@ -5,7 +5,7 @@ COMMENT = jump 'n' run game
V = 0.6.0
DISTNAME = SuperTux-v${V}-Source
PKGNAME = supertux-$V
-REVISION = 0
+REVISION = 1
CATEGORIES = games
@@ -44,5 +44,8 @@ NO_TEST = Yes
post-extract:
perl -i -pe 's/\r$$//' ${WRKDIST}/external/squirrel/CMakeLists.txt
+
+pre-configure:
+ ${SUBST_CMD} ${WRKSRC}/src/supertux/main.cpp
.include <bsd.port.mk>