From owner-freebsd-ports-bugs@freebsd.org Wed Oct 25 12:58:32 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D209BE49694 for ; Wed, 25 Oct 2017 12:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE6976BBA2 for ; Wed, 25 Oct 2017 12:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9PCwW5J019299 for ; Wed, 25 Oct 2017 12:58:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223139] New port: games/OpenClaw, reimplementation of Captain Claw (1997) platformer Date: Wed, 25 Oct 2017 12:58:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc flagtypes.name attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 12:58:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223139 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greg@unrelenting.technology | |, jbeich@FreeBSD.org Attachment #187461| |maintainer-approval?(greg@u Flags| |nrelenting.technology) --- Comment #1 from Jan Beich --- Created attachment 187461 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187461&action= =3Dedit simplify Some bits maybe easier to explain via patch. > +PORTNAME=3D OpenClaw [...] > +DATADIR=3D ${LOCALBASE}/share/openclaw [...] > + ${INSTALL} -s ${WRKSRC}/../Build_Release/openclaw \ CamelCase is undesirable for package names. In this case, it seems lower ca= se is more common. AUR also uses lower case. > +DISTVERSION=3D 1.0-29 > +DISTVERSIONSUFFIX=3D -g49c28d9 > +CATEGORIES=3D games This can be realigned to match indentation of the rest of the file. > +USES=3D cmake:outsource ... Why :outsource? It's neither required nor safe per CMAKE_RUNTIME_OUTPUT_DIRECTORY. > +do-install: > + ${INSTALL} -s ${WRKSRC}/../Build_Release/openclaw \ > + ${STAGEDIR}${PREFIX}/bin/openclaw ${INSTALL} -s should be spelled as either ${INSTALL_PROGRAM} or ${INSTALL_L= IB} > + ${INSTALL} ${WRKSRC}/Build_Release/ClawLauncher.exe \ > + ${STAGEDIR}${PREFIX}/bin/ClawLauncher.exe Use ${INSTALL_DATA} to drop executable bit thus avoid the clutter in shell command completion. > + ${SED} -e 's|/usr/share/openclaw|${DATADIR}|g' \ > + ${WRKSRC}/Build_Release/clawlauncher > \ > + ${WRKSRC}/Build_Release/clawlauncher_freebsd > + ${INSTALL} ${WRKSRC}/Build_Release/clawlauncher_freebsd \ > + ${STAGEDIR}${PREFIX}/bin/clawlauncher Use ${REINPLACE_CMD}. /usr/local isn't really specific to FreeBSD. > + ${INSTALL_DATA} ${WRKSRC}/Build_Release/ASSETS.ZIP \ > + ${STAGEDIR}${DATADIR}/ASSETS.ZIP > + ${INSTALL_DATA} ${WRKSRC}/Build_Release/clacon.ttf \ > + ${STAGEDIR}${DATADIR}/clacon.ttf > + ${INSTALL_DATA} ${WRKSRC}/Build_Release/console02.tga \ > + ${STAGEDIR}${DATADIR}/console02.tga > + ${INSTALL_DATA} ${WRKSRC}/Build_Release/SAVES.XML \ > + ${STAGEDIR}${DATADIR}/SAVES.XML Maybe use COPYTREE_SHARE instead. > +To complete the installation of this port you need to copy the file > +"CLAW.REZ" from the original Captain Claw distribution to > +%%DATADIR%%. Doesn't seem to work unless clawlauncher was used at least once. $ rm -rf ~/.config/openclaw/ $ openclaw INFO: Looking for: /home/luser/.config/openclaw/config.xml INFO: Expecting config.xml in path: /home/luser/.config/openclaw/config.x= ml WARN: [LoadGameOptions] Configuration file: /home/luser/.config/openclaw/config.xml not found - creating default configuration Assertion failed: (ParseValueFromXmlElem(&m_GameOptions.customArchive, assetsElem->FirstChildElement("CustomArchive"))), function LoadGameOptions, file OpenClaw/Engine/GameApp/BaseGameApp.cpp, line 429. Abort trap $ mkdir -p ~/.config/openclaw $ (cd /usr/local/share/openclaw/; cp SAVES.XML config.xml ~/.config/openclaw/) $ openclaw INFO: Looking for: /home/luser/.config/openclaw/config.xml INFO: Expecting config.xml in path: /home/luser/.config/openclaw/config.x= ml INFO: Loaded with: Config File: /home/luser/.config/openclaw/config.xml Saves File: /home/luser/.config/openclaw/SAVES.XML INFO: >>>>> Initializing display... INFO: Display successfully initialized. INFO: >>>>> Initializing audio... INFO: Audio successfully initialized. INFO: >>>>> Initializing font... INFO: Font successfully initialized... INFO: >>>>> Initializing resource cache... INFO: Resource cache successfully initialized INFO: >>>>> Loading actor prototypes... INFO: Actor prototypes loaded successfully. INFO: 1 INFO: Changing to: 3 > +To use clawlauncher (optional), install lang/mono. Looks underspecified. $ pkg install mono $ clawlauncher WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundExcepti= on: libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOu= tput&) at System.Drawing.GDIPlus..cctor () [0x000cc] in <5eb1d9ccfec943adba5ae843e256d04f>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr) at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000= ] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x0007e] in :0 at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in :0 at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in :0 at System.Windows.Forms.XplatUI..cctor () [0x0007d] in :0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in :0 at ClawLauncher.Program.Main () [0x00030] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundExcepti= on: libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOu= tput&) at System.Drawing.GDIPlus..cctor () [0x000cc] in <5eb1d9ccfec943adba5ae843e256d04f>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr) at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000= ] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x0007e] in :0 at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in :0 at System.Windows.Forms.XplatUIX11.GetInstance () [0x0001c] in :0 at System.Windows.Forms.XplatUI..cctor () [0x0007d] in :0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in :0 at ClawLauncher.Program.Main () [0x00030] in :0 $ pkg install libgdiplus $ clawlauncher WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using built-in colorscheme Unhandled Exception: System.ArgumentException: The requested FontFamily could not be found [GD= I+ status: FontFamilyNotFound] at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001e5] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFami= lies genericFamily) [0x0005b] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies) at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.Font.CreateFont (System.String familyName, System.Sin= gle emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00014] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,string) at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Windows.Forms.Theme.get_DefaultFont () [0x0000d] in :0 at System.Windows.Forms.Control.get_DefaultFont () [0x00005] in :0 at System.Windows.Forms.Control.get_Font () [0x00031] in :0 at System.Windows.Forms.Form..ctor () [0x00018] in :0 at ClawLauncher.ClawLauncherForm..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) ClawLauncher.ClawLauncherForm:.= ctor () at ClawLauncher.Program.Main () [0x0003b] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound] at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001e5] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFami= lies genericFamily) [0x0005b] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies) at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.Font.CreateFont (System.String familyName, System.Sin= gle emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00014] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,string) at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <5eb1d9ccfec943adba5ae843e256d04f>:0 at System.Windows.Forms.Theme.get_DefaultFont () [0x0000d] in :0 at System.Windows.Forms.Control.get_DefaultFont () [0x00005] in :0 at System.Windows.Forms.Control.get_Font () [0x00031] in :0 at System.Windows.Forms.Form..ctor () [0x00018] in :0 at ClawLauncher.ClawLauncherForm..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) ClawLauncher.ClawLauncherForm:.= ctor () at ClawLauncher.Program.Main () [0x0003b] in :0 $ pkg install dejavu $ clawlauncher WARNING: The runtime version supported by this application is unavailable. Using default runtime: v4.0.30319 Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using built-in colorscheme Probably no need to document dejavu as any usable font will do. --=20 You are receiving this mail because: You are the assignee for the bug.=