Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562000 - games-misc/opengfx-0.5.2 fails to build
Summary: games-misc/opengfx-0.5.2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 20:19 UTC by Joerg Schaible
Modified: 2015-10-05 10:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2015-10-01 20:19:39 UTC
Package fails to build:

================== %< =========================
INSTALL_DIR             defaults: /var/tmp/portage/portage/games-misc/opengfx-0.5.2/homedir/.openttd/baseset/opengfx
    Sets the default installation directory for Basesets
make -j4 -s bundle_tar 
[CPP] ogfx1_base.nml
[GIMP disabled]
[LNG] custom_tags.txt
[CPP] ogfxc_arctic.nml
[CPP] ogfxh_tropical.nml
[CPP] ogfxt_toyland.nml
[CPP] ogfxi_logos.nml
[CPP] ogfxe_extra.nml
[DOC] docs/readme.txt
[NML] ogfx1_base.grf
[NML] ogfxc_arctic.grf
[NML] ogfxh_tropical.grf
[NML] ogfxt_toyland.grf
 * ACCESS DENIED:  open_wr:      /usr/lib64/python2.7/site-packages/nml/parsetab.py
WARNING: Couldn't create 'parsetab'. [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/nml/parsetab.py'
 * ACCESS DENIED:  open_wr:      /usr/lib64/python2.7/site-packages/nml/parsetab.py
WARNING: Couldn't create 'parsetab'. [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/nml/parsetab.py'
 * ACCESS DENIED:  open_wr:      /usr/lib64/python2.7/site-packages/nml/parsetab.py
WARNING: Couldn't create 'parsetab'. [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/nml/parsetab.py'
 * ACCESS DENIED:  open_wr:      /usr/lib64/python2.7/site-packages/nml/parsetab.py
WARNING: Couldn't create 'parsetab'. [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/nml/parsetab.py'
[NML] ogfxi_logos.grf
 * ACCESS DENIED:  open_wr:      /usr/lib64/python2.7/site-packages/nml/parsetab.py
WARNING: Couldn't create 'parsetab'. [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/nml/parsetab.py'
[NML] ogfxe_extra.grf
 * ACCESS DENIED:  open_wr:      /usr/lib64/python2.7/site-packages/nml/parsetab.py
WARNING: Couldn't create 'parsetab'. [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/nml/parsetab.py'
nmlc ERROR: "sprites/extra/extra-openttd-recolour.pnml", line 2: OTTD_RECOLOUR is not a valid sprite replacement type
Included from: "ogfxe_extra.pnml", line 25
Makefile:330: recipe for target 'ogfxe_extra.grf' failed
make: *** [ogfxe_extra.grf] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: games-misc/opengfx-0.5.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=games-misc/opengfx-0.5.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-misc/opengfx-0.5.2::gentoo'`.
 * The complete build log is located at '/var/log/portage/games-misc:opengfx-0.5.2:20151001-182123.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/portage/games-misc/opengfx-0.5.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/portage/games-misc/opengfx-0.5.2/temp/environment'.
 * Working directory: '/var/tmp/portage/portage/games-misc/opengfx-0.5.2/work/opengfx-0.5.2-source'
 * S: '/var/tmp/portage/portage/games-misc/opengfx-0.5.2/work/opengfx-0.5.2-source'
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-15334.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/lib64/python2.7/site-packages/nml/parsetab.py
A: /usr/lib64/python2.7/site-packages/nml/parsetab.py
R: /usr/lib64/python2.7/site-packages/nml/parsetab.py
C: /usr/bin/python2.7 /usr/lib/python-exec/python2.7/nmlc -c -p DOS -M --MF=ogfxc_arctic.grf.dep --grf ogfxc_arctic.grf ogfxc_arctic.nml 

F: open_wr
S: deny
P: /usr/lib64/python2.7/site-packages/nml/parsetab.py
A: /usr/lib64/python2.7/site-packages/nml/parsetab.py
R: /usr/lib64/python2.7/site-packages/nml/parsetab.py
C: /usr/bin/python2.7 /usr/lib/python-exec/python2.7/nmlc -c -p DOS -M --MF=ogfx1_base.grf.dep --grf ogfx1_base.grf ogfx1_base.nml 

F: open_wr
S: deny
P: /usr/lib64/python2.7/site-packages/nml/parsetab.py
A: /usr/lib64/python2.7/site-packages/nml/parsetab.py
R: /usr/lib64/python2.7/site-packages/nml/parsetab.py
C: /usr/bin/python2.7 /usr/lib/python-exec/python2.7/nmlc -c -p DOS -M --MF=ogfxt_toyland.grf.dep --grf ogfxt_toyland.grf ogfxt_toyland.nml 

F: open_wr
S: deny
P: /usr/lib64/python2.7/site-packages/nml/parsetab.py
A: /usr/lib64/python2.7/site-packages/nml/parsetab.py
R: /usr/lib64/python2.7/site-packages/nml/parsetab.py
C: /usr/bin/python2.7 /usr/lib/python-exec/python2.7/nmlc -c -p DOS -M --MF=ogfxh_tropical.grf.dep --grf ogfxh_tropical.grf ogfxh_tropical.nml 

F: open_wr
S: deny
P: /usr/lib64/python2.7/site-packages/nml/parsetab.py
A: /usr/lib64/python2.7/site-packages/nml/parsetab.py
R: /usr/lib64/python2.7/site-packages/nml/parsetab.py
C: /usr/bin/python2.7 /usr/lib/python-exec/python2.7/nmlc -c -p DOS -M --MF=ogfxi_logos.grf.dep --grf ogfxi_logos.grf ogfxi_logos.nml 

F: open_wr
S: deny
P: /usr/lib64/python2.7/site-packages/nml/parsetab.py
A: /usr/lib64/python2.7/site-packages/nml/parsetab.py
R: /usr/lib64/python2.7/site-packages/nml/parsetab.py
C: /usr/bin/python2.7 /usr/lib/python-exec/python2.7/nmlc -c -p DOS -M --MF=ogfxe_extra.grf.dep --grf ogfxe_extra.grf ogfxe_extra.nml 
 * --------------------------------------------------------------------------------

>>> Failed to emerge games-misc/opengfx-0.5.2, Log file:
================== %< =========================

Reproducible: Always

Steps to Reproduce:
1. emerge opengfx-0.5.2
2.
3.
Actual Results:  
emerge fails

Expected Results:  
emerge succeeds

$ emerge --info
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:     6106044 total,    476028 free
KiB Swap:   16383996 total,  15586940 free
Timestamp of repository gentoo: Thu, 01 Oct 2015 16:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /mnt/portage/tree/central
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /mnt/portage/local
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -Os -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.0/conf /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.2/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -Os -pipe -ggdb -fno-default-inline"
DISTDIR="/mnt/portage/distfiles/floh"
EMERGE_DEFAULT_OPTS="--autounmask=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://sunsite.cnlab-switch.ch/mirror/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -s"
PKGDIR="/mnt/portage/packages/core-i7"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bmp branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups curl cxx dbus declarative dga dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gstreamer gtk handbook iconv icu idn jpeg jpeg2k kde kipi lcms libnotify lzma mad maildir mmap mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl odbc ogg openexr opengl openmp openssh openvg pam pango pch pcre pdf phonon plasma png policykit popcnt ppds qt qt3support qt4 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xattr xcb xcomposite xml xpm xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi fbdev v4l vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 nobody 2015-10-02 10:47:45 UTC
https://hg.openttdcoop.org/nml/files/fb36974da5c273c4b70f89e4220bacf39b41dcc6/docs/changelog.txt#L56
fix the parsetab.py should not be generate
as the file is build into the current working direction, you get sanbox error that it should not write in there. the fix is simply disabling building it.

https://hg.openttdcoop.org/nml/files/fb36974da5c273c4b70f89e4220bacf39b41dcc6/docs/changelog.txt#L17
OTTD_RECOLOUR is new from nml-0.4.0 having that error is clearly showing you have nml < 0.4.0


what it show, is that you are using a nml < 0.4.0, ottd recommand for opengfx-0.5.2 the nml 0.4.1 however it is not really your own fault as opengfx ebuild have a wrong dep over nml 0.3.0
 * dependency graph for games-misc/opengfx-0.5.2
 `--  games-misc/opengfx-0.5.2  ~x86 
   `--  games-util/nml-0.4.1  (>=games-util/nml-0.3.0) ~x86 

ebuild fix: update opengfx-0.5.2 to >=games-util/nml-0.4.0 (recommanded still 0.4.1)
Joerg fix: update nml to 0.4.0+
Comment 2 nobody 2015-10-02 10:52:50 UTC
it makes little more sense if "working direction" is read as "working directory" ; sorry ;)
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2015-10-02 16:15:46 UTC
the opengfx docs should be updated to reflect that requirement.  I don't see it mentioned anywhere.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2015-10-02 16:42:35 UTC
updated the ebuild to require >=nml-0.4.0
Comment 5 Joerg Schaible 2015-10-02 21:39:14 UTC
OK, thanks!
Comment 6 nobody 2015-10-05 10:28:05 UTC
(In reply to Mr. Bones. from comment #3)
> the opengfx docs should be updated to reflect that requirement.  I don't see
> it mentioned anywhere.

Thank for the fix Mr. Bones
I pickup the recommanded nml for 0.5.2 from there:http://dev.openttdcoop.org/news/90 (see note to package maintainers)


And you are right the doc was left behind on this release, next one has been update https://hg.openttdcoop.org/opengfx/changeset/50e3fb465ba213b0122ccbe4bc82d59232b73567