Latest PPA version refuse to start (could not find file or directory: /usr/games/usr/share/games/widelands)

Bug #1382832 reported by Hans Joachim Desserud
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Hans Joachim Desserud

Bug Description

Installed 1:18-ppa0-bzr7220-201410180547~ubuntu14.10.1 from the widelands-daily PPA. When attempting to run Widelands I get the following error message:

$ widelands
Set home directory: /home/ubuntu/.widelands
There's no configuration file, using default values.
Widelands executable directory: /usr/games/
full path: /usr/games/usr
Adding directory: /usr/games/usr/share/games/widelands

Caught exception (of type '17FileNotFoundError') in outermost handler!
The exception said: FileSystem::create: could not find file or directory: /usr/games/usr/share/games/widelands

This should not happen. Please file a bug report on version bzr7220-201410180547(Release).
and remember to specify your operating system.

Since the path is so weird I suspect the recent changes in bug 1342228 might be related. Since I normally build WL myself, I don't use the PPA often so I don't know whether those changes broke it or if it happened more recently with r7212.

Quite possibly the packaging needs some tweaking to set the correct paths when building. Currenly cmake is invoked with the following options (see debian/rules for details):
   dh_auto_configure -Scmake -- \
  -DWL_INSTALL_PREFIX=/usr \
  -DWL_INSTALL_DATADIR=share/games/widelands \
  -DWL_INSTALL_BINDIR=games \
  -DWL_INSTALL_LOCALEDIR=/usr/share/games/widelands/locale \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release

Anything obvious here which won't work after the latest changes?

Tags: linux

Related branches

Revision history for this message
TiborB (tiborb95) wrote :

I had similar issue, I attributed it to a custom installation script. Then I used original compile.sh script and installed ninja - and the problem was gone...

Revision history for this message
SirVer (sirver) wrote :

This broke in http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/7212. I forgot about the PPA.

I think -D WL_PATHS_ARE_ABSOLUTE="true" must be used to compile that way. Otherwise paths are interpreted from the binaries root directory.

See
http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/CMakeLists.txt#L15
and
http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/config.h.cmake

Changed in widelands:
status: New → Confirmed
milestone: none → build19-rc1
Changed in widelands:
status: Confirmed → In Progress
assignee: nobody → Hans Joachim Desserud (hjd)
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Adding WL_ABSOLUTE_PATHS worked. Merged to the daily PPA + the daily-precise PPA.

Changed in widelands:
status: In Progress → Fix Committed
GunChleoc (gunchleoc)
tags: added: linux
removed: ppa
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.