Braid is a puzzle-platformer, drawn in a painterly style, where the player manipulates the flow of time in strange and unusual ways. Reproducible: Always Steps to Reproduce:
Created attachment 257586 [details] games-puzzle/braid-1.0.2 - ebuild
Created attachment 257587 [details] License
Created attachment 257588 [details] games-puzzle/braid-1.0.2 - ebuild and files
Created attachment 257633 [details] games-puzzle/braid-1.0.2 - ebuild
Created attachment 257634 [details] games-puzzle/braid-1.0.2 - ebuild and files
Created attachment 258730 [details] games-puzzle/braid-1.0.2 - ebuild
Created attachment 258732 [details] games-puzzle/braid-1.0.2 - ebuild and files
nvidia-cg-toolkit RDEPEND is wrong. We discussed this on #gentoo-gamerlay FreeNode channel: 23:41 < lazy_bum> papillon81: http://grubelek.pl/lzb/braid-2.ebuild add your keyword and try it. *snip* 00:05 < papillon81> hmm 00:05 < papillon81> what's nvidia-cg-toolkit for? 00:06 < lazy_bum> For libCg.so and some other (libCgGL?). 00:06 < lazy_bum> Shadows? 00:06 < lazy_bum> cg_shaders. 00:07 < papillon81> lazy_bum: it runs without it here (and I also have no nvidia card, so this should be optional probably?) Where does the license come from? Didn't see any license files in braid tarball (maybe I was lame at looking, it was late at night ;). Seems that the game runs also on ATI cards without the nvidia-* stuff, so this has to be optional. No idea what'a a nice way to handle that? Package depends on VIDEO_CARDS=nvidia? P.S. Will attach my ebuild (URL above) later.
Created attachment 258765 [details] braid-2.ebuild Mentioned ebuild.
@games can suggest some way to make the nvidia-cg-toolkit only for nvidia cards? IUSE="nvidia" or something else (what if someone has nvidia card, but doesn't use nvidia USE flag — only VIDEO_CARDS)?
_Maybe_ nvidia-cg-toolkit is useless for Ati users, but it's a small packet, with only one dependency and braid's main executable is linked to libCg.so and libCgGL.so (they are also shipped with the installer, with libsdl, libgcc and libstdc++). Did you test it with every combination of hardware and driver (open / closed)?
(In reply to comment #11) > _Maybe_ nvidia-cg-toolkit is useless for Ati users, but it's a small packet, It's in „top 20” of my packages by size (out of 781 installed). I wouldn't call it _small_… > Did you test it with every combination of hardware and driver (open / closed)? And you test your packages on every combination of hardware? Put the flamewar away. It's not in portage (yet?) and everyone who is interested in this can test the ebuild and complain here. I would still like to see some opinion from @games team about how to resolve that dep.
We are talking about a 10/15 mb package, full of man pages and documentation. And no flame war at all: you want to exclude a dependency, which in some cases is useless. It isn't a light thing. I'll repeat: do you know how every video driver behave without it (if it is related)? I don't. Let's rather talk about keeping bundled libs.
Created attachment 258796 [details] braid-1.0.2.ebuild Updated ebuild. Merged some solutions (rdepends, $S) from Luca ebuild and added IUSE="video_cards_nvidia" to solve the nvidia-cg-toolkit depend.
Some other solutions: 1 - Keep the iuse and add a warn if it is disabled and "/proc/driver/nvidia" exists. 2 - Add a "doc" USE to nvidia-cg-toolkit which avoid 1839 doc, examples and man files. Actually this package installs 1851 files. 3 - Keep bundled libs (only in certain cases?): nvidia-cg-toolkit isn't compiled too. I can implement any of these quickly. 2 can be useful also for other packages.
Firts: >>> Install braid-1.0.2 into /var/tmp/portage/games-puzzle/braid-1.0.2/image/ category games-puzzle /var/tmp/portage/games-puzzle/braid-1.0.2/temp/environment: Zeile 2491: x86: Kommando nicht gefunden. /var/tmp/portage/games-puzzle/braid-1.0.2/temp/environment: Zeile 2494: amd64: Kommando nicht gefunden. And couse of that I had no /opt/braid/braid. After a workaround (I won't publish couse it restricts the ebuild or x86 or amd64) I get: ./braid: error while loading shared libraries: libCg.so: cannot open shared object file: No such file or directory This is on a amd64 no-multilib system with a radeon HD 4670 using xf86-video-ati (~amd64), mesa-9999 and the newest drm-radeon-testing kernel.
I installed media-gfx/nvidia-cg-toolkit now. New error: Game Startup Error: Unable to set up graphics. Reason: Failed to initialize OpenGL display. To help fix this problem make sure you are running the newest version of your video drivers. Lastly, you could try running this game with the -windowed command-line option. -windowed works but I don't like it. -.-
One more thing: Windowed mode is bigger than my screen! Is 1024x768 to small fot that game? Also I can't change the resolution in game options. "Bildschirmgröße" (german for Screensize) is greyed out.
braid -heigt 1024 -width 768 works. I have a fullscreen braid now. :)
(In reply to comment #16) > (I won't publish couse it restricts the ebuild or x86 or amd64) Publish it anyway. I've updated the ebuild some time ago in roslin overlay, but can't upload it right now. You can try to emerge braid with the following patch (only changes nvidia-cg-toolkit to be installed with whatever graphics card you have): # -- @@ -13,7 +13,9 @@ SRC_URI="${PN}-linux-build${PV/1.0./}.run.bin" LICENSE="Arphic CCPL-Attribution-ShareAlike-NonCommercial-1.0 MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="video_cards_nvidia" + +#IUSE="video_cards_nvidia" +IUSE="" RESTRICT="strip fetch" DEPEND="app-arch/unzip" @@ -24,7 +26,8 @@ RDEPEND="media-libs/libsdl[audio,joystick,video] x11-libs/libXdmcp x11-libs/libXext virtual/opengl - video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )" + media-gfx/nvidia-cg-toolkit" +# video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )" S=${WORKDIR}/data # --
Created attachment 269633 [details] nvidia-cg-toolkit-2.1.0017.ebuild with -doc and -examples USE flags added (In reply to comment #15) Well, I'm not sure this is the right place to post it, but anyway this is not unrelated. I've added two USE flags (doc examples), making two simple checks, which allow not to install all those unnecessary examples and doc files. One may say that it's not so critical, but as for me (using a netbook with small and cheap SSD) bunch of small (useless as well) files is just a headache.
There's a small error in the 1.0.2 ebuild from 2011-01-04. Lines 52 and 53 should be this: if use x86; then doexe x86/"${PN}" || die "doexe failed"; fi if use amd64; then doexe amd64/"${PN}" || die "doexe failed"; fi rather than: if x86; then doexe x86/"${PN}" || die "doexe failed"; fi if amd64; then doexe amd64/"${PN}" || die "doexe failed"; fi Otherwise, works great. Thanks.
(In reply to comment #21) > Well, I'm not sure this is the right place to post it, but anyway this is not > unrelated. Beresk, you should open a new bug report so that the nvidia-cg-toolkit maintainer finds it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6b4159a27c6db4631c97b379bbc1aea8e27ac9a commit d6b4159a27c6db4631c97b379bbc1aea8e27ac9a Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2022-02-06 14:51:23 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2022-02-06 14:52:24 +0000 games-puzzle/braid-gog: New package for the GOG version Closes: https://bugs.gentoo.org/349136 Signed-off-by: James Le Cuirot <chewi@gentoo.org> games-puzzle/braid-gog/Manifest | 1 + games-puzzle/braid-gog/braid-gog-2.0.0.3.ebuild | 55 +++++++++++++++++++++++++ games-puzzle/braid-gog/metadata.xml | 8 ++++ 3 files changed, 64 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fca8da51eb3c7c5300bdf6a762317f325217ef19 commit fca8da51eb3c7c5300bdf6a762317f325217ef19 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2022-02-06 14:51:03 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2022-02-06 14:52:21 +0000 games-puzzle/braid-hb: New package for the Humble Bundle version Closes: https://bugs.gentoo.org/349136 Signed-off-by: James Le Cuirot <chewi@gentoo.org> games-puzzle/braid-hb/Manifest | 1 + games-puzzle/braid-hb/braid-hb-20150611.ebuild | 55 ++++++++++++++++++++++++++ games-puzzle/braid-hb/metadata.xml | 8 ++++ 3 files changed, 64 insertions(+)
Well it took a while, but better late than never, eh? :) This adds both the Humble Bundle and GOG versions. It's 32-bit only. Although it did include a 64-bit build, the last release dropped that. The good news is it switched from SDL1 to SDL2, and works much better as a result.