Hi everyone, I got an email telling me my ‘dwarffortress’ snap contained outdated packages so I decided to manually rebuild. Today I ran through this same process and received an error on build.snapcraft.io
and I’ve narrowed my issue down to these lines in the build log:
Failed to stage: Parts 'deps' and 'desktop-gtk2' have the following files, but with different contents:
usr/sbin/update-icon-caches
Snapcraft offers some capabilities to solve this by use of the following keywords:
- `filesets`
- `stage`
- `snap`
- `organize`
My git repo is at https://github.com/ultraviolet-1986/df and I think this may just be a problem with my snapcraft.yaml
but I can’t say for sure. The file built correctly not long ago so this feels out-of-the-blue. If anyone can help me to correct this, I would appreciate it. Thanks everyone!
EDIT: I have attempted to fix the problem a few times without success so I have reverted my repo to the last successful build (which still fails today) just to make the situation less complicated. Thanks again.
EDIT 2: The contents of the snapcraft.yaml
file are here for reference (so nobody has to follow links):
# -*- Mode: YAML; indent-tabs-mode: nil; tab-width: 2 -*-
name: dwarffortress
version: 0.47.04
summary: Dwarf Fortress world simulator. Forked from 'https://github.com/mikix/df'.
description: |
Dwarf Fortress is a single-player fantasy game by Bay 12 Games. You can control a dwarven outpost or an adventurer in a randomly generated, persistent world.
This is an unofficial snap, which redistributes the original binaries without modification. This version is forked from 'https://github.com/mikix/df'.
Upstream: http://www.bay12games.com/dwarves/
confinement: strict
grade: stable
architectures: [amd64]
parts:
tarball:
plugin: dump
source: http://www.bay12games.com/dwarves/df_47_04_linux.tar.bz2
source-checksum: sha512/65f6cd39187afbb7b60ba72d0caf23c39d95674615ab718ad55c25cad23c08e42c1b911cfde7015b05a280325504f3b931f2c7defb34ee2ee6b725101c536cea
override-build: |
chmod a+x df
find . -type d -exec chmod a+rx {} +
snapcraftctl build
prime:
- -g_src
- -libs/libstdc++.so.6
desktop-gtk2:
after: []
deps:
plugin: nil
stage-packages:
- freeglut3
- gtk2-engines-pixbuf
- libcanberra-gtk-module
- libglu1-mesa
- libopenal1
- libsdl-image1.2
- libsdl-ttf2.0-0
- packagekit-gtk3-module
overlay:
plugin: dump
source: overlay
apps:
dwarffortress:
command: desktop-launch $SNAP/wrapper.sh
plugs: [opengl, pulseaudio, x11, unity7]