Bug 187432 - games/icebreaker: broken due to incorrect paths
Summary: games/icebreaker: broken due to incorrect paths
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 21:50 UTC by Jonas Hofmann
Modified: 2014-03-11 02:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Hofmann 2014-03-10 21:50:00 UTC
After installing games/icebreaker with portmaster it doesn't start and instead prints these error messages:

--- OUTPUT START ---

.icebreaker doesn't exist.
Welcome to IceBreaker.
Icon not loaded!

*** IceBreaker probably wasn't installed properly. ***

Error loading /usr/ports/games/icebreaker/work/stage/usr/local/share/icebreaker/ouch.wav
Mix_LoadWAV_RW with NULL src
Error loading /usr/ports/games/icebreaker/work/stage/usr/local/share/icebreaker/crash.wav
Mix_LoadWAV_RW with NULL src
Warning: Can't open theme file /usr/ports/games/icebreaker/work/stage/usr/local/share/icebreaker/linux.ibt.
Using default look and sound.
Warning: Background not correctly defined in theme linux. Using default.
Warning: NormalText not correctly defined in theme linux. Using default.
Warning: BoardFillMin not correctly defined in theme linux. Using default.
Warning: BoardFillMax not correctly defined in theme linux. Using default.
Warning: Gridline not correctly defined in theme linux. Using default.
Warning: GridHighlight not correctly defined in theme linux. Using default.
Warning: Line1 not correctly defined in theme linux. Using default.
Warning: Line2 not correctly defined in theme linux. Using default.
Warning: MenuHighlight not correctly defined in theme linux. Using default.
Warning: GameoverText not correctly defined in theme linux. Using default.
Warning: ScorescrollText not correctly defined in theme linux. Using default.
Warning: BonusscrollText not correctly defined in theme linux. Using default.
Warning: TextentryBox not correctly defined in theme linux. Using default.
Warning: TextentryText not correctly defined in theme linux. Using default.
Warning: CopyrightText not correctly defined in theme linux. Using default.
Warning: SpriteTransparent not correctly defined in theme linux.
Warning: SpriteBitmap not correctly defined in theme linux. Using default.
         Also using default SpriteTransparent.
Couldn't load image /usr/ports/games/icebreaker/work/stage/usr/local/share/icebreaker/penguin.bmp.
SDL error: Couldn't open /usr/ports/games/icebreaker/work/stage/usr/local/share/icebreaker/penguin.bmp

Error: couldn't load any sprite at all!!!
zsh: segmentation fault  icebreaker

--- OUTPUT END ---

Fix: 

This got the game going:

# cd /usr/ports/games/icebreaker
# make
# cd work
# mkdir -p stage/usr/local/share
# cd stage/usr/local/share
# ln -s ../../../../icebreaker-1.9.8 icebreaker
How-To-Repeat: Try to start the game.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-03-11 00:35:44 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-11 00:36:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 Rusmir Dusko freebsd_committer freebsd_triage 2014-03-11 02:00:34 UTC
State Changed
From-To: open->closed

Please have a look at the new pkg-message
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-03-11 02:07:36 UTC
Author: nemysis
Date: Tue Mar 11 02:07:28 2014
New Revision: 347827
URL: http://svnweb.freebsd.org/changeset/ports/347827
QAT: https://qat.redports.org/buildarchive/r347827/

Log:
  - Remove TODO from DOCS
  - Change REINPLACE, cosmetical changes
  - Strip executable
  - Add pkg-message
  
  PR:		ports/187432
  Submitted by:	Jonas Hofmann <freebsd-pr@jhofmann.se>
  Reviewed by:	Horia Racoviceanu <horia@racoviceanu.com>

Added:
  head/games/icebreaker/files/pkg-message.in   (contents, props changed)
Modified:
  head/games/icebreaker/Makefile

Modified: head/games/icebreaker/Makefile
==============================================================================
--- head/games/icebreaker/Makefile	Tue Mar 11 00:10:12 2014	(r347826)
+++ head/games/icebreaker/Makefile	Tue Mar 11 02:07:28 2014	(r347827)
@@ -21,28 +21,31 @@ USES=		gmake
 USE_SDL=	mixer sdl
 
 PORTDOCS=	ChangeLog README README.SDL README.ifyoumakechanges \
-		README.themes TODO
+		README.themes
 
 OPTIONS_DEFINE=	DOCS
 
+SUB_FILES=	pkg-message
+
 post-patch:
-	@${REINPLACE_CMD} \
-	-e 's|CC=gcc|CC?=gcc| ; \
-	s|sdl-config|$(SDL_CONFIG)| ; \
-	s|prefix=/usr/local|prefix=${STAGEDIR}${PREFIX}| ; \
-	s|datadir=$$(prefix)/share|datadir=${STAGEDIR}${PREFIX}/share| ; \
-	s|mandir=$$(prefix)/share/man|mandir=${STAGEDIR}${PREFIX}/man| ; \
-	s|highscoredir=/var/local/lib/games|highscoredir=/var/games| ; \
-	s|CFLAGS=|CFLAGS+=| ; \
-	s|OPTIMIZE=-O3|OPTIMIZE=| ; \
-	s|$$(CC) $$(CFLAGS)|$$(CC) $$(LDFLAGS) $$(CFLAGS)| ; \
-	s|install -s -g games|install -g games| ; \
-	s|install -s -m 755|install -m 755| ; \
-	s|chown -f games:games|chown -f root:games| ; \
-	s|$$(SRC:.c=.d)|$$(SRC:.c)|' \
+	@${REINPLACE_CMD} -e \
+	's|CC=gcc|CC?=gcc|; \
+	 s|sdl-config|$(SDL_CONFIG)|; \
+	 s|prefix=/usr/local|prefix=${STAGEDIR}${PREFIX}|; \
+	 s|datadir=$$(prefix)/share|datadir=${STAGEDIR}${PREFIX}/share|; \
+	 s|mandir=$$(prefix)/share/man|mandir=${STAGEDIR}${PREFIX}/man|; \
+	 s|highscoredir=/var/local/lib/games|highscoredir=/var/games|; \
+	 s|CFLAGS=|CFLAGS+=|; \
+	 s|OPTIMIZE=-O3|OPTIMIZE=|; \
+	 s|$$(CC) $$(CFLAGS)|$$(CC) $$(LDFLAGS) $$(CFLAGS)|; \
+	 s|install -s -g games|install -g games|; \
+	 s|install -s -m 755|install -m 755|; \
+	 s|chown -f games:games|chown -f root:games|; \
+	 s|$$(SRC:.c=.d)|$$(SRC:.c)|' \
 		${WRKSRC}/Makefile
 
 post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps/
 	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}

Added: head/games/icebreaker/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/icebreaker/files/pkg-message.in	Tue Mar 11 02:07:28 2014	(r347827)
@@ -0,0 +1,13 @@
+===============================================================================
+
+IceBreaker has been installed.
+
+
+When you have problems with usage please reinstall
+
+cd /usr/ports/games/icebreaker ; make deinstall ; make clean ; make reinstall
+
+
+Have fun!
+
+===============================================================================
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"