No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu Precise and later

Bug #947358 reported by Le Gluon Du Net
226
This bug affects 46 people
Affects Status Importance Assigned to Milestone
smc (Ubuntu)
Fix Released
Undecided
Asier Iturralde Sarasola

Bug Description

when I launch smc, I have this error:

$ smc
Initialization: Exception raised: boost::filesystem::directory_iterator::construct: Aucun fichier ou dossier de ce type: "/usr/share/games/smc/campaign"

He can not found the "/usr/share/games/smc/campaign" folder.

I reinstalled all the paquets:

$apt-get install --reinstall smc smc-data smc-music

but this didn't change anything.

Thanks for your help.

LGDN
Workaround: Using the terminal create the "campaign" directory using sudo mkdir /usr/share/games/smc/campaign

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: smc 1.9+git20120222-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Uname: Linux 3.2.0-17-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.94-0ubuntu1
Architecture: i386
Date: Mon Mar 5 19:13:17 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110302)
SourcePackage: smc
UpgradeStatus: Upgraded to precise on 2012-02-02 (31 days ago)

Revision history for this message
Le Gluon Du Net (legluondunet) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting this issue.

I get the same error message when attempting to run smc on Ubuntu Precise:
Initialization: Exception raised: boost::filesystem::directory_iterator::construct: No such file or directory: "/usr/share/games/smc/campaign"

Changed in smc (Ubuntu):
status: New → Confirmed
summary: - "/usr/share/games/smc/campaign"
+ No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu
+ Precise
Revision history for this message
humblebee (humblebee-t) wrote : Re: No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu Precise

I've solved the problem simply creating the "campaign" folder in /usr/share/games/smc
I work on Xubuntu precise!
Hope this helps...

Revision history for this message
marianoju (marianoju) wrote :

I could reproduce humblebee's solution with Ubuntu 12.04 Precise Pangolin (thanks!)

Revision history for this message
Le Gluon Du Net (legluondunet) wrote :

thanks humblebee, but the package doesn't seem to be updated to correct this problem? If a new user want to install this game, it will be very desappointed for only a folder to add in the package...

Vibhav Pant (vibhavp)
description: updated
GlitchMr (glitchmr)
security vulnerability: no → yes
security vulnerability: yes → no
Revision history for this message
Le Gluon Du Net (legluondunet) wrote :

Bug still present in Ubuntu Quantal, it messes the /usr/share/games/smc and the game does not launch. There is no more maintener for this package?

tags: added: quantal
Revision history for this message
Beginner (tobias-haegele) wrote :

I can confirm the Bug in Quantal.
The solution is to create the directory like descriped from Humblebee

sudo mkdir /usr/share/games/smc/campaign

Revision history for this message
Israel Dahl (israeldahl) wrote :

unfortunately there doesn't seem to be a real maintainer for this package, there is also no bug supervisor. So, if one of you would like the job, that would be great, as I also used humblebee's workaround. It seems simple enough to reinclude the campaign directory when it is installed, but it would be interesting to find out if it is missing completely or installed in the wrong place.

Revision history for this message
Asier Iturralde Sarasola (asier-iturralde) wrote :

I just found out that the campaign folder is missing in the file /debian/smc-data.dirs.

usr/share/games/smc/editor
usr/share/games/smc/gui
usr/share/games/smc/icon
usr/share/games/smc/levels
usr/share/games/smc/pixmaps
usr/share/games/smc/schema
usr/share/games/smc/sounds
usr/share/games/smc/world
usr/share/games/smc/translations

Can someone check if this is the origin of the bug?

Revision history for this message
Asier Iturralde Sarasola (asier-iturralde) wrote :

The 'campaign' folder is missing in the file debian/smc-data.install too:

debian/tmp/usr/share/games/smc/editor/* usr/share/games/smc/editor
debian/tmp/usr/share/games/smc/gui/* usr/share/games/smc/gui
debian/tmp/usr/share/games/smc/icon/* usr/share/games/smc/icon
debian/tmp/usr/share/games/smc/levels/* usr/share/games/smc/levels
debian/tmp/usr/share/games/smc/pixmaps/* usr/share/games/smc/pixmaps
debian/tmp/usr/share/games/smc/schema/* usr/share/games/smc/schema
debian/tmp/usr/share/games/smc/sounds/* usr/share/games/smc/sounds
debian/tmp/usr/share/games/smc/world/* usr/share/games/smc/world
debian/tmp/usr/share/games/smc/translations/* usr/share/games/smc/translations

Apparently the installer creates empty directories for each path listed in debian/smc-data.dirs and copies the files listed in debian/smc-data.install to their respective directories.

usr/share/games/smc/campaign is missing from both files and that can be the origin of this bug.

Revision history for this message
Israel Dahl (israeldahl) wrote :

That seems reasonable to me. I found a bug in lmms because of the
debian folder and lack of upkeep. Something that used to work stopped
working because some line of code got deleted and it stopped working. I
suggest you fix the bug, and propose a merge for 13.04

Revision history for this message
Hans Joachim Desserud (hjd) wrote : Re: No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu Precise

I get the same error message attempting to start smc version 1.9+git20120222-0ubuntu2 on Ubuntu Raring. To check if this issue should be pushed upstream, I tried version 1.9+git20120222-1 in Debian unstable but that ran without any trouble. This leads me to believe this is an Ubuntu-specific issue (might be due to the delta?)

tags: added: raring
Revision history for this message
Israel Dahl (israeldahl) wrote :

You should look in the Debian folder in the source from
1.9+git20120222-1 in Debian unstable. Specifically at the *.install
files. Compare those to the Ubuntu Version's source. According to
comment #10 the campaign folder is missing from the install file. I
Agree with Asier that the origin of the bug is that exact problem.
Merging from Debian unstable will be easier than fixing it yourself. The
workaround for the current non-working version is to make that folder
manually. However it is not a bug fix, simply a workaround, as it does
not install the contents (if there are any).

Revision history for this message
Asier Iturralde Sarasola (asier-iturralde) wrote : Re: No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu Precise

I downloaded the Debian folder from 1.9+git20120222-1 in Debian unstable:
http://ftp.de.debian.org/debian/pool/main/s/smc/smc_1.9+git20120222-1.debian.tar.gz

These are the contents of the file smc-data.dirs:

usr/share/games/smc/editor
usr/share/games/smc/gui
usr/share/games/smc/icon
usr/share/games/smc/levels
usr/share/games/smc/pixmaps
usr/share/games/smc/schema
usr/share/games/smc/sounds
usr/share/games/smc/world
usr/share/games/smc/translations
usr/share/games/smc/campaign

smc-data.install:

debian/tmp/usr/share/games/smc/editor/* usr/share/games/smc/editor
debian/tmp/usr/share/games/smc/gui/* usr/share/games/smc/gui
debian/tmp/usr/share/games/smc/icon/* usr/share/games/smc/icon
debian/tmp/usr/share/games/smc/levels/* usr/share/games/smc/levels
debian/tmp/usr/share/games/smc/pixmaps/* usr/share/games/smc/pixmaps
debian/tmp/usr/share/games/smc/schema/* usr/share/games/smc/schema
debian/tmp/usr/share/games/smc/sounds/* usr/share/games/smc/sounds
debian/tmp/usr/share/games/smc/world/* usr/share/games/smc/world
debian/tmp/usr/share/games/smc/translations/* usr/share/games/smc/translations
debian/tmp/usr/share/games/smc/campaign/* usr/share/games/smc/campaign

The two lines that I suspected were missing in the Ubuntu package are present in the Debian package, so I think that this confirms the origin of the bug.

What should we do?

Revision history for this message
Israel Dahl (israeldahl) wrote :

Ok if you are ready to dive in check this first page out to get set
up.. basically you install the building tools, set up the GPG (to
authenticate your code) and launchpad... which you have already and link
them and configure Bazaar.

http://developer.ubuntu.com/packaging/html/getting-set-up.html

This page shows you how to get the source code to fix, specifically from
debian... though you can read the whole page to get an understanding of
some other ways you could do it.

http://developer.ubuntu.com/packaging/html/udd-getting-the-source.html#importing-a-debian-source-package

and finally Proposing the merge!!!

http://developer.ubuntu.com/packaging/html/udd-sponsorship.html#merge-proposal

It seems kinda hard to figure out all the in an outs of everything at
first, but it is pretty straight forward. If you need any help, e-mail
me directly to keep clutter out of the bug report.

Changed in smc (Ubuntu):
assignee: nobody → Asier Iturralde Sarasola (asier-iturralde)
Revision history for this message
Hans Joachim Desserud (hjd) wrote : Re: No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu Precise

This issue also affect downstream distributions which use the same packages, for instance Linux Mint (bug 1124241).

Any progress on this? :)

summary: No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu
- Precise
+ Precise and later
Changed in linuxmint:
status: New → Confirmed
Revision history for this message
Asier Iturralde Sarasola (asier-iturralde) wrote :

I have been very busy lately, I will try to find time on the next weekend to work on this.

Revision history for this message
Shin Darth (shin-darth) wrote : Re: [Bug 947358] Re: No such file or directory: "/usr/share/games/smc/campaign" on Ubuntu Precise and later

Keep up the good work =)

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Is there any progress on this bug?

Revision history for this message
Evgeni Golov (evgeni) wrote :

The attached (untested) patch should fix the issue.

Someone who cares (Hint: Maintainer: Ubuntu Developers <email address hidden>) should upload a fixed package, or even better: sync from Debian :)

Evgeni, with his “slightly pissed” hat on

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "smc-install-campaigns.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This bug was fixed in the package smc - 1.9+git20121121-1
Sponsored for Evgeni Golov (evgeni)

---------------
smc (1.9+git20121121-1) unstable; urgency=low

  * New upstream snapshot.
  * Bumped standards version to 3.9.1. No changes were needed.
  * Now SMC is compiled using the Hardening Options.
  * debian/control:
    + The package is built using Boost 1.53. Fixes FTBFS. (Closes: #707433)
  * debian/compat: bump to compat level 9.
  * debian/menu file was updated so that the game is referred to the section
    Games/Action instead of Games/Adventure. (Closes: #680258, #709083)
  * In this revision i18n of man page is enabled, and German translation has
    been put in place. Thanks to Helge Kreutzmann. (Closes: #640234, #709083)
  * debian/patches/01_configure.ac.patch has been deleted because the
    Debian-specific "libboost_foo-mt" libraries has been removed in Boost 1.53.
    (Closes: #710083)

 -- Muammar El Khatib <email address hidden> Sat, 11 May 2013 22:51:09 +0200

smc (1.9+git20120222-1) unstable; urgency=low

  * New upstream snapshot. Fixes FTBFS. (Closes: #646464)
  * debian/control: Add libboost-thread-dev, automake, and autoconf to
    Build-Depends field. quilt has been deleted from the Build-Depends field.
  * debian/patches/01_configure.ac.patch: Search for boost_filesystem-mt
    instead of boost_filesystem (as required by patch in previous Debian
    version of the package). Also search for boost_system so that this
    library gets added to the linker line.
  * debian/patches:
    + Remove as unnecessary 01_configure.patch, 02_binutils-gold.patch,
    03_smc_boost1.46.patch.
  * debian/rules: Add get-orig-source rule to check out smc from git.
    Add post-patches rule to run autogen.sh after applying the
    configure.ac patches.
  * Thanks to Barry Warsaw for providing a patch.
  * German description in desktop file has been added. Thanks to Helge
    Kreutzmann. (Closes: #640233)

 -- Muammar El Khatib <email address hidden> Wed, 07 Mar 2012 22:00:51 +0100

Changed in smc (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Andre (ajx) wrote :

Great! Thanks, Evgeni.

Will this fix be pushed to the regular updates for Precise?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

On 3 July 2013 04:18, Andre <email address hidden> wrote:
> Great! Thanks, Evgeni.
>
> Will this fix be pushed to the regular updates for Precise?
>
>

If only Evgeni, or anyone else:

* Updates bug description as per
https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template

* Prepares debdiff for Raring/Quantal/Precise.

Regards,

Dmitrijs.

Revision history for this message
Muhammad Bashir Al-Noimi (mbnoimi) wrote :

This bug still exists in Ubuntu 13.04!

no longer affects: linuxmint
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.